Source code
Revision control
Copy as Markdown
Other Tools
<!doctype html>
<meta charset="utf8">
<title>CSS Content Visibility: content-visibility: auto descendant in dialog is shown on showModal"</title>
<meta name="assert" content="content-visibility: auto descendant in dialog is shown on showModal">
<div id="spacer" style="height: 100vh"></div>
<dialog id="dialog" style="display: block; position: static;">
<span>Test passes if this is visible</span>
</dialog>
<script>
dialog.showModal();
</script>