blob: a8bd4ffe9d5573188b9d234f95a8c5293a977137 [file] [log] [blame]
<!-- Based on fast/repaint/resize-with-border.html -->
<!DOCTYPE html>
<script src="resources/paint-invalidation-test.js"></script>
window.expectedPaintInvalidationObjects = [
"LayoutBlockFlow (positioned) DIV id='div'",
function paintInvalidationTest()
document.getElementById('div').style.width = '400px';
window.onload = runPaintInvalidationTest;
body {
margin: 0;
#div {
position: absolute;
top: 100px;
left: 100px;
width: 200px;
height: 200px;
border: green 10px solid;
Tests repaint when a box with border is resized.
Passes if the result paint rects cover all changed part,
the new border is correctly drawn and there is no residue of the old border.
<div id="div"></div>