blob: e628bf690c13890cbffd68fa54bf8e7f4d29e184 [file] [log] [blame]
<!-- Based on fast/repaint/layer-visibility.html -->
<html>
<head>
<script src="resources/paint-invalidation-test.js"></script>
<script>
function test()
{
document.body.offsetTop;
var target = document.getElementById("target");
target.style.visibility = "visible";
document.body.offsetTop;
runPaintInvalidationTest();
}
function paintInvalidationTest()
{
var target = document.getElementById("target");
target.style.left = "0";
target.style.backgroundColor = "green";
}
</script>
</head>
<body onload="test()">
<div id="target" style="position: absolute; top: 0; left: 100px; width: 100px; height: 100px; background-color: red; visibility: hidden;"></div>
</body>
</html>