blob: dbbcd9701c196b2cfdb11dbde5f30d1f42da85c0 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style type="text/css" media="screen">
.box {
position: relative;
width: 100px;
height: 100px;
background-color: blue;
margin: 10px;
}
.composited {
-webkit-transform: translateZ(0);
}
</style>
<script type="text/javascript" charset="utf-8">
if (window.testRunner)
testRunner.dumpAsText();
function doTest()
{
if (window.testRunner) {
document.getElementById('results').innerText = window.internals.layerTreeAsText(document);
testRunner.notifyDone();
}
}
window.addEventListener('load', doTest, false);
</script>
</head>
<body>
<div class="composited box"></div>
<!-- The second box should not be composited. -->
<div class="box"></div>
<pre id="results">Layer tree goes here in DRT.</pre>
</body>
</html>