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