OLD | NEW |
1 <!-- Based on fast/repaint/justify-items-overflow-change.html --> | 1 <!-- Based on fast/repaint/justify-items-overflow-change.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 "LayoutBlockFlow DIV", | |
7 "LayoutBlockFlow DIV class='item1'", | |
8 "LayoutBlockFlow DIV", | |
9 "LayoutBlockFlow DIV class='item2'", | |
10 "LayoutGrid DIV id='container'", | |
11 "LayoutBlockFlow HTML", | |
12 "LayoutBlockFlow BODY", | |
13 "LayoutGrid DIV id='container'", | |
14 "LayoutBlockFlow DIV class='item1'", | |
15 "LayoutBlockFlow DIV", | |
16 "LayoutBlockFlow DIV class='item2'", | |
17 "LayoutBlockFlow DIV", | |
18 ]; | |
19 function paintInvalidationTest() { | 5 function paintInvalidationTest() { |
20 document.getElementById('container').style.justifyItems = 'end safe'; | 6 document.getElementById('container').style.justifyItems = 'end safe'; |
21 } | 7 } |
22 onload = runPaintInvalidationTest; | 8 onload = runPaintInvalidationTest; |
23 </script> | 9 </script> |
24 <style> | 10 <style> |
25 body { | 11 body { |
26 margin: 0; | 12 margin: 0; |
27 } | 13 } |
28 #container { | 14 #container { |
(...skipping 18 matching lines...) Expand all Loading... |
47 </style> | 33 </style> |
48 <p style="height: 20px">Tests invalidation on justify-items style change. Passes
if there is no red.</p> | 34 <p style="height: 20px">Tests invalidation on justify-items style change. Passes
if there is no red.</p> |
49 <div id="container"> | 35 <div id="container"> |
50 <div class="item1"> | 36 <div class="item1"> |
51 <div style="height: 50px"></div> | 37 <div style="height: 50px"></div> |
52 </div> | 38 </div> |
53 <div class="item2"> | 39 <div class="item2"> |
54 <div style="height: 50px"></div> | 40 <div style="height: 50px"></div> |
55 </div> | 41 </div> |
56 </div> | 42 </div> |
OLD | NEW |