| OLD | NEW |
| (Empty) |
| 1 <!-- Based on fast/repaint/justify-content-position-change-grid.html --> | |
| 2 <!DOCTYPE HTML> | |
| 3 <script src="resources/paint-invalidation-test.js"></script> | |
| 4 <script> | |
| 5 function paintInvalidationTest() { | |
| 6 document.getElementById('container').style.justifyContent = 'end'; | |
| 7 } | |
| 8 onload = runPaintInvalidationTest; | |
| 9 </script> | |
| 10 <style> | |
| 11 body { | |
| 12 margin: 0; | |
| 13 } | |
| 14 #container { | |
| 15 display: grid; | |
| 16 grid-auto-columns: auto; | |
| 17 grid-auto-rows: 200px; | |
| 18 grid-auto-flow: column; | |
| 19 justify-content: start; | |
| 20 width: 300px; | |
| 21 height: 200px; | |
| 22 background-color: red; | |
| 23 } | |
| 24 .item { | |
| 25 background-color: green; | |
| 26 } | |
| 27 </style> | |
| 28 <p style="height: 20px">Tests invalidation on justify-content style change (posi
tion). Passes if the red half is on the left.</p> | |
| 29 <div id="container"> | |
| 30 <div class="item"> | |
| 31 <div style="width: 50px"></div> | |
| 32 </div> | |
| 33 <div class="item"> | |
| 34 <div style="width: 50px"></div> | |
| 35 </div> | |
| 36 <div class="item"> | |
| 37 <div style="width: 50px"></div> | |
| 38 </div> | |
| 39 </div> | |
| OLD | NEW |