blob: a9bb71b220a7695c69b8f685a3b6e742fd6dcc72 [file] [log] [blame]
<!-- Based on fast/repaint/box-sizing.html -->
<!DOCTYPE HTML>
<script src="resources/paint-invalidation-test.js"></script>
<script>
function paintInvalidationTest()
{
document.getElementById('target1').className = 'content-box';
document.getElementById('target2').className = 'border-box';
}
window.onload = runPaintInvalidationTest;
</script>
<style>
body {
margin: 0;
}
div {
width: 50%;
height: 100px;
position: absolute;
background-color: green;
border: blue solid 20px;
}
.border-box {
box-sizing: border-box;
}
.content-box {
box-sizing: content-box;
}
</style>
<div id="target1" class="border-box" style="top: 0px"></div>
<div id="target2" class="content-box" style="top: 200px"></div>