OLD | NEW |
| 1 <!-- Based on fast/repaint/align-self-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 BODY", |
| 7 "LayoutGrid DIV id='container'", |
| 8 "LayoutBlockFlow DIV class='item1'", |
| 9 "LayoutBlockFlow DIV", |
| 10 "LayoutBlockFlow DIV class='item2'", |
| 11 ]; |
| 12 function paintInvalidationTest() { |
5 document.getElementsByClassName('item1')[0].style.alignSelf = 'end safe'; | 13 document.getElementsByClassName('item1')[0].style.alignSelf = 'end safe'; |
6 document.getElementsByClassName('item2')[0].style.alignSelf = 'end safe'; | 14 document.getElementsByClassName('item2')[0].style.alignSelf = 'end safe'; |
7 } | 15 } |
8 onload = runRepaintTest; | 16 onload = runPaintInvalidationTest; |
9 </script> | 17 </script> |
10 <style> | 18 <style> |
11 body { | 19 body { |
12 margin: 0; | 20 margin: 0; |
13 } | 21 } |
14 #container { | 22 #container { |
15 display: grid; | 23 display: grid; |
16 grid: 200px / 150px 150px; | 24 grid: 200px / 150px 150px; |
17 width: 200px; | 25 width: 200px; |
18 height: 300px; | 26 height: 300px; |
(...skipping 13 matching lines...) Expand all Loading... |
32 </style> | 40 </style> |
33 <p style="height: 20px">Tests invalidation on align-self style change (just over
flow). Passes if there is no red.</p> | 41 <p style="height: 20px">Tests invalidation on align-self style change (just over
flow). Passes if there is no red.</p> |
34 <div id="container"> | 42 <div id="container"> |
35 <div class="item1"> | 43 <div class="item1"> |
36 <div style="height: 200px"></div> | 44 <div style="height: 200px"></div> |
37 </div> | 45 </div> |
38 <div class="item2"> | 46 <div class="item2"> |
39 <div style="height: 100px"></div> | 47 <div style="height: 100px"></div> |
40 </div> | 48 </div> |
41 </div> | 49 </div> |
OLD | NEW |