3 transform: translateZ(
0);
9 background-color: blue;
13 background-color: black;
21 body.changed img.to-visible {
28 body.changed img.to-hidden {
33 opacity:
0; /* hide from pixel result */
37 if (window
.testRunner
) {
38 testRunner
.dumpAsTextWithPixelResults();
39 testRunner
.waitUntilDone();
44 window
.setTimeout(function() {
45 document
.body
.classList
.add('changed');
46 if (window
.testRunner
) {
47 document
.getElementById('layers').innerText
= window
.internals
.layerTreeAsText(document
);
48 testRunner
.notifyDone();
52 window
.addEventListener('load', doTest
, false);
55 <div style=
"position: absolute; left: 0px; top: 0px; z-index: 106; " class=
"composited">
56 <img style=
"position: absolute; left: 10px; top: 10px; z-index: 0;">
57 <img style=
"position: absolute; left: 500px; top: 200px; z-index: 0;" class=
"to-visible">
60 <div style=
"position: absolute; left: 0px; top: 250px; z-index: 106; " class=
"composited">
61 <img style=
"position: absolute; left: 10px; top: 10px; z-index: 0;">
62 <img style=
"position: absolute; left: 500px; top: 200px; z-index: 0;" class=
"to-hidden">
64 <pre id=
"layers">Layer tree goes here in DRT
</pre>