OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 <script src="resources/text-based-repaint.js"></script> | 2 <script src="resources/text-based-repaint.js"></script> |
3 <script> | 3 <script> |
4 function repaintTest() { | 4 function repaintTest() { |
5 document.getElementsByClassName('item')[0].style.alignSelf = 'stretch'; | 5 document.getElementsByClassName('item')[0].style.alignSelf = 'stretch'; |
6 } | 6 } |
7 onload = runRepaintTest; | 7 onload = runRepaintTest; |
8 </script> | 8 </script> |
9 <style> | 9 <style> |
10 body { | 10 body { |
11 margin: 0; | 11 margin: 0; |
12 } | 12 } |
13 #container { | 13 #container { |
14 display: grid; | 14 display: grid; |
15 grid: 100px / 300px; | 15 grid: 300px / 100px; |
16 width: 200px; | 16 width: 200px; |
17 height: 300px; | 17 height: 300px; |
18 background-color: red; | 18 background-color: red; |
19 } | 19 } |
20 .item { | 20 .item { |
21 grid-row: 1; | 21 grid-row: 1; |
22 grid-column: 1; | 22 grid-column: 1; |
23 align-self: start; | 23 align-self: start; |
24 background-color: green; | 24 background-color: green; |
25 } | 25 } |
26 </style> | 26 </style> |
27 <p style="height: 20px">There should be no invalidations because align-self styl
e change causes no visual change.</p> | 27 <p style="height: 20px">There should be no invalidations because align-self styl
e change causes no visual change.</p> |
28 <div id="container"> | 28 <div id="container"> |
29 <div class="item"> | 29 <div class="item"> |
30 <div style="height: 300px"></div> | 30 <div style="height: 300px"></div> |
31 </div> | 31 </div> |
32 </div> | 32 </div> |
OLD | NEW |