blob: 6c8257c06d859a3ac406761a657ffeb4d755479b [file] [log] [blame]
<!-- Based on fast/repaint/repaint-on-style-change.html -->
<!DOCTYPE html>
<html>
<head>
<title>Test for repaint on style change</title>
<script src="resources/paint-invalidation-test.js" type="text/javascript"></script>
<script>
window.expectedPaintInvalidationObjects = [
"LayoutBlockFlow (positioned) DIV id='box'",
];
function paintInvalidationTest()
{
if (!window.testRunner)
return;
document.getElementById('box').style['background-color'] = 'green';
}
</script>
<style>
div {
background-color: magenta;
height: 100px;
width: 100px;
position: absolute;
top: 260px;
left: 260px;
}
</style>
</head>
<body onload="runPaintInvalidationTest()">
<div id='box'> </div>
</body>
</html>