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