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