1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
content / test / data / accessibility / html / focused-button-with-aria-owns.html [blame]
<!--
@BLINK-ALLOW:name=*
@BLINK-ALLOW:role*
@EXECUTE-AND-WAIT-FOR:focusButton()
-->
<style>
button::after {
content: "second";
}
</style>
<button id="button" aria-owns="popup">
first
</button>
<div id="popup">third</div>
<script>
function focusButton() {
var button = document.querySelector("#button");
button.focus();
document.title = 'done';
return 'done';
}
</script>