blob: fb87eca77a6ef5bfc1c6ab0a6e9ebcd474fc8a2a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<!DOCTYPE html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="resources/utils.js"></script>
<input id="first" autofocus>
<input id="second" autofocus>
<link rel="stylesheet" href="resources/erase-first.css?pipe=trickle(d1)">
<script>
'use strict';
promise_test(async () => {
await waitForLoad(window);
await waitForAnimationFrame();
assert_equals(document.activeElement.id, 'second');
}, 'Script-blocking style sheet should pause flushing autofocus candidates.');
</script>
|