| OLD | NEW |
| 1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
| 2 <script src="resources/text-based-repaint.js"></script> | |
| 3 <script> | |
| 4 function repaintTest() { | |
| 5 document.getElementById('container').style.alignItems = 'end safe'; | |
| 6 } | |
| 7 onload = runRepaintTest; | |
| 8 </script> | |
| 9 <style> | 2 <style> |
| 10 body { | 3 body { |
| 11 margin: 0; | 4 margin: 0; |
| 12 } | 5 } |
| 13 #container { | 6 #container { |
| 14 display: grid; | 7 display: grid; |
| 15 grid: 200px / 150px 150px; | 8 grid: 200px / 150px 150px; |
| 16 align-items: end true; | 9 align-items: end safe; |
| 17 width: 200px; | 10 width: 200px; |
| 18 height: 300px; | 11 height: 300px; |
| 19 background-color: red; | 12 background-color: red; |
| 20 } | 13 } |
| 21 .item1 { | 14 .item1 { |
| 22 grid-row: 1; | 15 grid-row: 1; |
| 23 grid-column: 1; | 16 grid-column: 1; |
| 24 background-color: green; | 17 background-color: green; |
| 25 } | 18 } |
| 26 .item2 { | 19 .item2 { |
| 27 grid-row: 2; | 20 grid-row: 2; |
| 28 grid-column: 1; | 21 grid-column: 1; |
| 29 background-color: green; | 22 background-color: green; |
| 30 } | 23 } |
| 31 </style> | 24 </style> |
| 32 <p style="height: 20px">Tests invalidation on align-items style change (just ove
rflow). Passes if there is no red.</p> | 25 <p style="height: 20px">Tests invalidation on align-items style change (just ove
rflow). Passes if there is no red.</p> |
| 33 <div id="container"> | 26 <div id="container"> |
| 34 <div class="item1"> | 27 <div class="item1"> |
| 35 <div style="height: 200px"></div> | 28 <div style="height: 200px"></div> |
| 36 </div> | 29 </div> |
| 37 <div class="item2"> | 30 <div class="item2"> |
| 38 <div style="height: 100px"></div> | 31 <div style="height: 100px"></div> |
| 39 </div> | 32 </div> |
| 40 </div> | 33 </div> |
| OLD | NEW |