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 document.getElementsByClassName('item')[1].style.alignSelf = 'stretch'; | |
7 } | 6 } |
8 onload = runRepaintTest; | 7 onload = runRepaintTest; |
9 </script> | 8 </script> |
10 <style> | 9 <style> |
11 .flex { | 10 body { |
12 display: flex; | 11 margin: 0; |
13 align-items: flex-start; | 12 } |
| 13 #container { |
| 14 display: grid; |
| 15 grid: 100px / 300px; |
14 width: 200px; | 16 width: 200px; |
15 height: 300px; | 17 height: 300px; |
16 background-color: red; | 18 background-color: red; |
17 } | 19 } |
18 .item { | 20 .item { |
| 21 grid-row: 1; |
| 22 grid-column: 1; |
| 23 align-self: start; |
19 background-color: green; | 24 background-color: green; |
20 border: solid thin blue; | |
21 width: 100px; | |
22 height: 300px; | |
23 } | 25 } |
24 </style> | 26 </style> |
25 <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> |
26 <div class="flex"> | 28 <div id="container"> |
27 <div class="item"></div> | 29 <div class="item"> |
28 <div class="item"></div> | 30 <div style="height: 300px"></div> |
| 31 </div> |
29 </div> | 32 </div> |
OLD | NEW |