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