10 background-color: blue;
14 if (window
.testRunner
)
15 testRunner
.dumpAsText();
17 function dumpResults()
19 var results
= document
.getElementById('layers');
21 // Check the computed value.
22 results
.innerText
= window
.getComputedStyle(document
.getElementById('box1')).webkitTransformStyle
+ '\n';
23 results
.innerText
+= window
.getComputedStyle(document
.getElementById('box2')).webkitTransformStyle
+ '\n';
25 if (window
.testRunner
)
26 results
.innerText
+= window
.internals
.layerTreeAsText(document
);
28 window
.addEventListener('load', dumpResults
, false);
32 <div class=
"box" id=
"box1" style=
"transform: translateZ(1px); -webkit-transform-style: preserve-3d"></div>
33 <div class=
"box" id=
"box2" style=
"transform: translateZ(1px); -webkit-transform-style: preserve-3d; overflow: hidden"></div>
34 <pre id=
"layers">Layer tree goes here in DRT
</pre>