blob: fbb03b817493887f0f89626b8927cfb1f85830c9 [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>
window.expectedPaintInvalidationObjects = [
"LayoutBlockFlow (positioned) DIV id='target'",
];
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>