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