OLD | NEW |
| 1 <!-- Based on fast/repaint/align-items-overflow-change.html --> |
1 <!DOCTYPE HTML> | 2 <!DOCTYPE HTML> |
2 <script src="resources/text-based-repaint.js"></script> | 3 <script src="resources/paint-invalidation-test.js"></script> |
3 <script> | 4 <script> |
4 function repaintTest() { | 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 BODY", |
| 12 "LayoutGrid DIV id='container'", |
| 13 "LayoutBlockFlow DIV class='item1'", |
| 14 "LayoutBlockFlow DIV", |
| 15 "LayoutBlockFlow DIV class='item2'", |
| 16 "LayoutBlockFlow DIV", |
| 17 ]; |
| 18 function paintInvalidationTest() { |
5 document.getElementById('container').style.alignItems = 'end safe'; | 19 document.getElementById('container').style.alignItems = 'end safe'; |
6 } | 20 } |
7 onload = runRepaintTest; | 21 onload = runPaintInvalidationTest; |
8 </script> | 22 </script> |
9 <style> | 23 <style> |
10 body { | 24 body { |
11 margin: 0; | 25 margin: 0; |
12 } | 26 } |
13 #container { | 27 #container { |
14 display: grid; | 28 display: grid; |
15 grid: 200px / 150px 150px; | 29 grid: 200px / 150px 150px; |
16 align-items: end true; | 30 align-items: end true; |
17 width: 200px; | 31 width: 200px; |
(...skipping 13 matching lines...) Expand all Loading... |
31 </style> | 45 </style> |
32 <p style="height: 20px">Tests invalidation on align-items style change (just ove
rflow). Passes if there is no red.</p> | 46 <p style="height: 20px">Tests invalidation on align-items style change (just ove
rflow). Passes if there is no red.</p> |
33 <div id="container"> | 47 <div id="container"> |
34 <div class="item1"> | 48 <div class="item1"> |
35 <div style="height: 200px"></div> | 49 <div style="height: 200px"></div> |
36 </div> | 50 </div> |
37 <div class="item2"> | 51 <div class="item2"> |
38 <div style="height: 100px"></div> | 52 <div style="height: 100px"></div> |
39 </div> | 53 </div> |
40 </div> | 54 </div> |
OLD | NEW |