summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-contain/content-visibility/spacer-with-top-layer-ref.html
blob: e274b0fcaa1602c0528c60c1fc022cb9694b1ad4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!doctype html>
<meta charset="utf8">
<title>CSS Content Visibility: dialog shows under c-v auto (ref)</title>

<style>
.box { width: 100px; height: 100px; border: 1px solid black; }
.spacer { width: 10px; height: 3000px; background: lightblue; }
</style>

<div class=spacer></div>
<div id=container class=box>
content
<dialog id=dialog>PASS<div id=inner></div></dialog>
</div>

<script>
dialog.showModal();
</script>