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">
<style>
select {
position: fixed;
}
#abspos {
position: absolute;
background: green;
}
</style>
<select multiple size="1">
<option>one</option>
<option>two</option>
</select>
<script>
document.documentElement.addEventListener("TestRendered", () => {
const abspos = document.createElement("div");
abspos.id = "abspos";
abspos.textContent = "abspos";
document.querySelector("select").appendChild(abspos);
document.documentElement.classList.remove("test-wait");
});
</script>
</html>