OLD | NEW |
1 <!-- Based on fast/repaint/align-self-change-keeping-geometry-grid.html --> | 1 <!-- Based on fast/repaint/align-self-change-keeping-geometry-grid.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 ]; | |
7 function paintInvalidationTest() { | 5 function paintInvalidationTest() { |
8 document.getElementsByClassName('item')[0].style.alignSelf = 'stretch'; | 6 document.getElementsByClassName('item')[0].style.alignSelf = 'stretch'; |
9 } | 7 } |
10 onload = runPaintInvalidationTest; | 8 onload = runPaintInvalidationTest; |
11 </script> | 9 </script> |
12 <style> | 10 <style> |
13 body { | 11 body { |
14 margin: 0; | 12 margin: 0; |
15 } | 13 } |
16 #container { | 14 #container { |
17 display: grid; | 15 display: grid; |
18 grid: 100px / 300px; | 16 grid: 100px / 300px; |
19 width: 200px; | 17 width: 200px; |
20 height: 300px; | 18 height: 300px; |
21 background-color: red; | 19 background-color: red; |
22 } | 20 } |
23 .item { | 21 .item { |
24 grid-row: 1; | 22 grid-row: 1; |
25 grid-column: 1; | 23 grid-column: 1; |
26 align-self: start; | 24 align-self: start; |
27 background-color: green; | 25 background-color: green; |
28 } | 26 } |
29 </style> | 27 </style> |
30 <p style="height: 20px">There should be no invalidations because align-self styl
e change causes no visual change.</p> | 28 <p style="height: 20px">There should be no invalidations because align-self styl
e change causes no visual change.</p> |
31 <div id="container"> | 29 <div id="container"> |
32 <div class="item"> | 30 <div class="item"> |
33 <div style="height: 300px"></div> | 31 <div style="height: 300px"></div> |
34 </div> | 32 </div> |
35 </div> | 33 </div> |
OLD | NEW |