blob: 1ecc6dfc709c5bf0bcd48a5669fcc4ce6bc47a54 [file] [log] [blame]
This test simply checks that when we have multiple 3d rendering contexts, that
they get separate and unique id's in the layer tree dump.
.composited {
transform: translateZ(0);
width: 100px;
height: 100px;
background-color: green;
#grandparent {
-webkit-transform-style: preserve-3d;
#child {
-webkit-transform-style: preserve-3d;
#console {
position: absolute;
left: 4000px;
if (window.testRunner)
function dumpLayerTree() {
if (window.internals)
document.getElementById("console").innerHTML = window.internals.layerTreeAsText(document);
window.onload = dumpLayerTree;
<div class="composited" id="grandparent">
<div class="composited" id="parent">
<div class="composited" id="child">
<pre id="console"></pre>