Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / paint / invalidation / spv2 / resize-with-border.html
bloba8bd4ffe9d5573188b9d234f95a8c5293a977137
1 <!-- Based on fast/repaint/resize-with-border.html -->
2 <!DOCTYPE html>
3 <script src="resources/paint-invalidation-test.js"></script>
4 <script>
5 window.expectedPaintInvalidationObjects = [
6 "LayoutBlockFlow (positioned) DIV id='div'",
7 ];
8 function paintInvalidationTest()
10 document.getElementById('div').style.width = '400px';
12 window.onload = runPaintInvalidationTest;
13 </script>
14 <style>
15 body {
16 margin: 0;
18 #div {
19 position: absolute;
20 top: 100px;
21 left: 100px;
22 width: 200px;
23 height: 200px;
24 border: green 10px solid;
26 </style>
27 <div>
28 Tests repaint when a box with border is resized.
29 Passes if the result paint rects cover all changed part,
30 the new border is correctly drawn and there is no residue of the old border.
31 </div>
32 <div id="div"></div>