Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/semantics/forms/the-select-element/select-listbox-fixed-abspos-child-dynamic-insertion-crash.html - WPT Dashboard Interop Dashboard
<!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>