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