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