blob: 96447bdec9266c1e903923307bdd0e9175a11f92 [file] [log] [blame]
<!-- Based on fast/repaint/padding-border-keeping-border-box-and-content-box.html -->
<!DOCTYPE HTML>
<script src="resources/paint-invalidation-test.js"></script>
<script>
function paintInvalidationTest()
{
// Though neither border box nor content box changes, should full repaint
// because the border width changes.
var target = document.getElementById('target');
target.style.padding = '20px';
target.style.borderWidth = '20px';
}
window.onload = runPaintInvalidationTest;
</script>
<style>
body {
margin: 0;
}
div {
width: 100px;
height: 100px;
padding: 40px;
position: absolute;
background-color: green;
border-color: blue;
border-style: solid;
border-width: 0;
}
</style>
<div id="target"></div>