OLD | NEW |
1 <!-- Based on fast/repaint/remove-inline-block-descendant-of-flex.html --> | 1 <!-- Based on fast/repaint/remove-inline-block-descendant-of-flex.html --> |
2 <!DOCTYPE html> | 2 <!DOCTYPE html> |
3 <script src="resources/paint-invalidation-test.js"></script> | 3 <script src="resources/paint-invalidation-test.js"></script> |
4 <script> | 4 <script> |
5 window.expectedPaintInvalidationObjects = [ | |
6 "InlineTextBox '\n'", | |
7 "LayoutBR BR", | |
8 "RootInlineBox", | |
9 "LayoutBlockFlow DIV id='inline-block-1' class='item'", | |
10 "InlineBox", | |
11 "LayoutText #text", | |
12 "RootInlineBox", | |
13 "InlineBox", | |
14 "RootInlineBox", | |
15 "InlineBox", | |
16 "RootInlineBox", | |
17 "LayoutBlockFlow DIV", | |
18 "LayoutBlockFlow DIV id='inline-block-2' class='item'", | |
19 "LayoutBR BR", | |
20 "InlineTextBox '\n'", | |
21 ]; | |
22 function paintInvalidationTest() { | 5 function paintInvalidationTest() { |
23 document.getElementById('inline-block-1').style.display = 'none'; | 6 document.getElementById('inline-block-1').style.display = 'none'; |
24 } | 7 } |
25 onload = runPaintInvalidationTest; | 8 onload = runPaintInvalidationTest; |
26 </script> | 9 </script> |
27 <style> | 10 <style> |
28 body { | 11 body { |
29 margin : 0; | 12 margin : 0; |
30 } | 13 } |
31 .item { | 14 .item { |
32 display: inline-block; | 15 display: inline-block; |
33 height: 100px; | 16 height: 100px; |
34 width: 100px; | 17 width: 100px; |
35 } | 18 } |
36 </style> | 19 </style> |
37 Tests paint invalidation of inline blocks following an inline-block that is remo
ved. | 20 Tests paint invalidation of inline blocks following an inline-block that is remo
ved. |
38 Passes if there is only one green square at the top-left corner of the window. | 21 Passes if there is only one green square at the top-left corner of the window. |
39 <div style="display: flex; height: 300px; position: absolute; top: 100px"> | 22 <div style="display: flex; height: 300px; position: absolute; top: 100px"> |
40 <div style="display: flex"> | 23 <div style="display: flex"> |
41 <div style="width: 100px"> | 24 <div style="width: 100px"> |
42 <div id="inline-block-1" class="item" style="background-color: red"><br></
div> | 25 <div id="inline-block-1" class="item" style="background-color: red"><br></
div> |
43 <div id="inline-block-2" class="item" style="background-color: green"><br>
</div> | 26 <div id="inline-block-2" class="item" style="background-color: green"><br>
</div> |
44 </div> | 27 </div> |
45 </div> | 28 </div> |
46 </div> | 29 </div> |
OLD | NEW |