65 lines
1.5 KiB
HTML
65 lines
1.5 KiB
HTML
<!DOCTYPE html>
|
|
|
|
<html>
|
|
<head>
|
|
<style>
|
|
.box {
|
|
width: 200px;
|
|
height: 100px;
|
|
background-color: blue;
|
|
margin: 82px 30px;
|
|
position: relative;
|
|
box-shadow: 0 0 10px black;
|
|
-webkit-transform-origin: 10px bottom;
|
|
transition: -webkit-transform 10s;
|
|
}
|
|
|
|
.dot {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
height: 4px;
|
|
width: 4px;
|
|
background-color: silver;
|
|
}
|
|
|
|
body.changed .box {
|
|
-webkit-transform: translateX(100px) scale(1.3);
|
|
}
|
|
</style>
|
|
<script src="../resources/compositing-test-utils.js"></script>
|
|
<script>
|
|
if (window.testRunner) {
|
|
testRunner.dumpAsText();
|
|
testRunner.waitUntilDone();
|
|
}
|
|
|
|
function dumpLayers()
|
|
{
|
|
if (window.testRunner) {
|
|
document.getElementById('layers').innerText = window.internals.layerTreeAsText(document);
|
|
testRunner.notifyDone();
|
|
}
|
|
}
|
|
|
|
function runTest()
|
|
{
|
|
makeDots(50, 23);
|
|
|
|
window.setTimeout(function() {
|
|
document.body.classList.add('changed');
|
|
window.setTimeout(dumpLayers, 0);
|
|
}, 0);
|
|
}
|
|
|
|
window.addEventListener('load', runTest, false);
|
|
</script>
|
|
</head>
|
|
<body>
|
|
|
|
<div class="box">
|
|
</div>
|
|
<pre id="layers"></pre>
|
|
</body>
|
|
</html>
|