blob: d4a6f0afc3bbdc836f39ccb9fb36b737ababf626 [file] [log] [blame]
<!DOCTYPE html>
<script src='../../resources/testharness.js'></script>
<script src='../../resources/testharnessreport.js'></script>
<html>
<body>
<style>
#host:not(:focus)::after {
content: 'text';
}
</style>
<div id="host" tabindex=0></div>
</body>
<script>
test(() => {
host.attachShadow({mode: 'closed'});
host.focus();
assert_true(true, "This test should not crash.");
}, "the style is recalculated by host.focus()");
</script>
</html>