6 background-color: green;
32 <script src=
"../../../resources/check-layout.js"></script>
34 <body onload=
"checkLayout('dialog')">
35 <p>Bug
<a href=
"http://webkit.org/b/106538">106538</a>: Top layer fails for inline elements
36 <p>This tests that position 'relative' computes to 'absolute' in the top layer. The test passes if you see a single green box.
</p>
37 <div id=
"left-div" class=
"green-box"></div>
38 <dialog id=
"middle-dialog" class=
"green-box" data-offset-x=
"150" data-offset-y=
"100"></dialog>
39 <dialog id=
"right-dialog" class=
"green-box" data-offset-x=
"200" data-offset-y=
"100"></dialog>
41 document
.getElementById('middle-dialog').showModal();
42 var rightDialog
= document
.getElementById('right-dialog');
43 rightDialog
.showModal();
44 rightDialog
.style
.position
= 'absolute';