OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="resources/text-based-repaint.js"></script> | 2 <script src="resources/text-based-repaint.js"></script> |
3 <script> | 3 <script> |
4 function repaintTest() { | 4 function repaintTest() { |
5 document.getElementById('inline-block-1').style.display = 'none'; | 5 document.getElementById('inline-block-1').style.display = 'none'; |
6 } | 6 } |
7 onload = runRepaintTest; | 7 onload = runRepaintAndPixelTest; |
8 </script> | 8 </script> |
9 <style> | 9 <style> |
10 body { | 10 body { |
11 margin : 0; | 11 margin : 0; |
12 } | 12 } |
13 .item { | 13 .item { |
14 display: inline-block; | 14 display: inline-block; |
15 height: 100px; | 15 height: 100px; |
16 width: 100px; | 16 width: 100px; |
17 } | 17 } |
18 </style> | 18 </style> |
19 Tests paint invalidation of inline blocks following an inline-block that is remo
ved. | 19 Tests paint invalidation of inline blocks following an inline-block that is remo
ved. |
20 Passes if there is only one green square at the top-left corner of the window. | 20 Passes if there is only one green square at the top-left corner of the window. |
21 <div style="display: flex; height: 300px; position: absolute; top: 100px"> | 21 <div style="display: flex; height: 300px; position: absolute; top: 100px"> |
22 <div style="display: flex"> | 22 <div style="display: flex"> |
23 <div style="width: 100px"> | 23 <div style="width: 100px"> |
24 <div id="inline-block-1" class="item" style="background-color: red"><br></
div> | 24 <div id="inline-block-1" class="item" style="background-color: red"><br></
div> |
25 <div id="inline-block-2" class="item" style="background-color: green"><br>
</div> | 25 <div id="inline-block-2" class="item" style="background-color: green"><br>
</div> |
26 </div> | 26 </div> |
27 </div> | 27 </div> |
28 </div> | 28 </div> |
OLD | NEW |