6 transform: translateZ(
0);
12 background-color: blue;
16 background-color: black;
19 border: none !important;
25 background-color: red;
30 body.changed img.to-visible {
37 body.changed img.to-hidden {
42 opacity:
0; /* hide from pixel result */
48 background-color: green;
58 if (window
.testRunner
) {
59 testRunner
.dumpAsTextWithPixelResults();
60 testRunner
.waitUntilDone();
65 window
.setTimeout(function() {
66 document
.body
.classList
.add('changed');
67 if (window
.testRunner
) {
68 document
.getElementById('layers').innerText
= window
.internals
.layerTreeAsText(document
);
69 testRunner
.notifyDone();
73 window
.addEventListener('load', doTest
, false);
76 <!-- You should see no red. -->
77 <div class=
"indicator box" style=
"top: 0px"></div>
78 <div class=
"indicator box" style=
"top: 250px"></div>
80 <div style=
"position: absolute; left: 0px; top: 0px; z-index: 0; " class=
"composited">
81 <div class=
"inline"></div>
82 <img style=
"position: absolute; left: 50px; top: 50px; z-index: -1;">
83 <img style=
"position: absolute; left: 400px; top: 150px; z-index: 0;" class=
"to-visible">
86 <div style=
"position: absolute; left: 0px; top: 250px; z-index: 0; " class=
"composited">
87 <div class=
"inline"></div>
88 <img style=
"position: absolute; left: 50px; top: 50px; z-index: -1;">
89 <img style=
"position: absolute; left: 400px; top: 150px; z-index: 0;" class=
"to-hidden">
92 <pre id=
"layers">Layer tree goes here in DRT
</pre>