Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/semantics/interactive-elements/the-dialog-element/dont-share-style-to-top-layer.html - WPT Dashboard Interop Dashboard
<!doctype html>
<link rel="match" href="dont-share-style-to-top-layer-ref.html">
<style>
dialog {
position: static;
}
#modal {
outline: none;
}
</style>
<p>Test that a non-top layer element doesn't share style with a top layer
element. The test passes if you see two boxes.</p>
<dialog open></dialog>
<dialog id="modal"></dialog>
<script>
document.querySelector('#modal').showModal();
</script>