Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<meta charset="utf-8">
<title>Style recalculation on shadow host focus should not crash</title>
<style>
#host:not(:focus)::after {
content: 'text';
}
</style>
<div id="host" tabindex="0"></div>
<script>
host.attachShadow({mode: 'closed'});
host.focus();
</script>