Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-contain/content-visibility/content-visibility-with-top-layer-005.html - WPT Dashboard Interop Dashboard
<!doctype html>
<html class="reftest-wait">
<meta charset="utf8">
<title>CSS Content Visibility: dialog shows under c-v auto</title>
<link rel="author" title="Martin Robinson" href="mailto:mrobinson@igalia.com">
<link rel="match" href="spacer-with-top-layer-ref.html">
<meta name="assert" content="top layer dialogs render under c-v auto">
<script src="/common/reftest-wait.js"></script>
<style>
.box { width: 100px; height: 100px; border: 1px solid black; }
.auto { content-visibility: auto }
.spacer { width: 10px; height: 3000px; background: lightblue; }
</style>
<div class=spacer></div>
<div id=container class="box">
content
<dialog id=dialog><div id=inner class="auto">PASS</div></dialog>
</div>
<script>
function runTest() {
dialog.showModal();
takeScreenshot();
}
onload = () => requestAnimationFrame(() => requestAnimationFrame(runTest));
</script>