<!DOCTYPE>
<html>
<head>
<style type="text/css" media="screen">
#background {
width: 200px;
height: 200px;
display: block;
background-color: green;
}
.blue {
width: 50px;
height: 50px;
background-color: blue;
display: block;
}
.composited {
will-change: transform;
}
</style>
<script type="text/javascript" charset="utf-8">
if (window.testRunner)
testRunner.waitUntilDone();
function doTest()
{
var bg = document.getElementById("background");
window.setTimeout(function() {
// Change the layer not to be background color layer.
bg.innerHTML = "text" + bg.innerHTML;
bg.style.backgroundColor = "red";
if (window.testRunner) {
window.setTimeout(function() {
testRunner.notifyDone();
}, 0);
}
}, 0);
}
window.addEventListener('load', doTest, false);
</script>
</head>
<body>
<div id="background" class="composited">
<div class="blue composited">
</div>
</div>
</body>
</html>