Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

  • This WPT test may be referenced by the following Test IDs:
<!doctype html>
<html class="test-wait">
<link rel="author" href="mailto:xiaochengh@chromium.org">
<selectlist id="selectList" style="position: absolute;">
<div slot="button">
<button id="b1" behavior="button"></button>
</div>
<selectlist>
<div slot="button">
<button id="b2" behavior="button">x</button>
</div>
<div id="listbox" popover slot="listbox" behavior="listbox">
<option>y</option>
</div>
</selectlist>
</selectlist>
<script type="module">
const raf = () => new Promise(resolve => requestAnimationFrame(resolve));
document.querySelector('#b1').click();
document.querySelector('#b2').click();
document.querySelector('#selectList').style.top = '-25px';
await raf();
await raf();
document.querySelector('#selectList').style.top = '0px';
document.documentElement.classList.remove('test-wait');
</script>
</html>