| OLD | NEW |
| (Empty) |
| 1 <!-- Based on fast/repaint/align-content-distribution-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.alignContent = 'stretch'; | |
| 7 } | |
| 8 onload = runPaintInvalidationTest; | |
| 9 </script> | |
| 10 <style> | |
| 11 body { | |
| 12 margin: 0; | |
| 13 } | |
| 14 #container { | |
| 15 display: grid; | |
| 16 grid-auto-columns: 200px; | |
| 17 grid-auto-rows: auto; | |
| 18 grid-auto-flow: row; | |
| 19 align-content: space-around; | |
| 20 width: 200px; | |
| 21 height: 300px; | |
| 22 background-color: red; | |
| 23 } | |
| 24 .item { | |
| 25 background-color: green; | |
| 26 } | |
| 27 </style> | |
| 28 <p style="height: 20px">Tests invalidation on align-content style change (distri
bution). Passes if there is no red.</p> | |
| 29 <div id="container"> | |
| 30 <div class="item"> | |
| 31 <div style="height: 50px"></div> | |
| 32 </div> | |
| 33 <div class="item"> | |
| 34 <div style="height: 50px"></div> | |
| 35 </div> | |
| 36 <div class="item"> | |
| 37 <div style="height: 50px"></div> | |
| 38 </div> | |
| 39 </div> | |
| OLD | NEW |