15 background-color: red;
20 background-color: blue;
26 background-color: green;
33 This tests that a top layer element is not rendered if it, or an ancestor, has display: none.
34 It passes if you see a green rectangle stacked on top of a blue rectangle, and see no red rectangles.
36 <dialog id=
"hiddenDialog" class=
"red" style=
"display: none;"></dialog>
39 <dialog id=
"displayNoneChild1" class=
"red"></dialog>
40 <dialog id=
"displayNoneChild2" class=
"red"></dialog>
43 <dialog id=
"bottomDialog"></dialog>
44 <dialog id=
"topDialog"></dialog>
46 document
.getElementById('hiddenDialog').showModal();
47 document
.getElementById('displayNoneChild1').showModal();
48 document
.getElementById('container').style
.display
= 'none';
49 document
.getElementById('displayNoneChild2').showModal();
51 // Test that stacking works even if an element is added to the top layer when it has no renderer.
52 document
.getElementById('bottomDialog').showModal();
53 document
.getElementById('topDialog').showModal();
54 document
.getElementById('bottomDialog').style
.display
= 'block';