blob: 22a4c3573cccf909d3a5675db2aab97a4f366bc0 [file] [log] [blame]
<!DOCTYPE html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="resources/utils.js"></script>
<link rel="stylesheet" href="resources/erase-first.css?pipe=trickle(d1)">
<input id="first" autofocus>
<input id="second" autofocus>
<script>
'use strict';
promise_test(async () => {
await waitForEvent(document.body, 'focus', {capture:true});
assert_equals(document.activeElement.id, 'second');
}, 'Script-blocking style sheet should pause flushing autofocus candidates.');
</script>