| OLD | NEW |
| 1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
| 2 <link href="resources/grid.css" rel="stylesheet"> | 2 <link href="resources/grid.css" rel="stylesheet"> |
| 3 <style> | 3 <style> |
| 4 .grid { | 4 .grid { |
| 5 grid: 100px 100px / 150px; | 5 grid: 150px / 100px 100px; |
| 6 position: relative; | 6 position: relative; |
| 7 } | 7 } |
| 8 #fromStretch { align-items: stretch; } | 8 #fromStretch { align-items: stretch; } |
| 9 #toStretch { align-items: end; } | 9 #toStretch { align-items: end; } |
| 10 </style> | 10 </style> |
| 11 <script src="../../resources/check-layout.js"></script> | 11 <script src="../../resources/check-layout.js"></script> |
| 12 <p>Tests how a align-items style change requires a relayout of the grid and prev
iously stretched items.</p> | 12 <p>Tests how a align-items style change requires a relayout of the grid and prev
iously stretched items.</p> |
| 13 <p>The grid bellow had initially 'align-items: end' and was changed to 'stretch'
.</p> | 13 <p>The grid bellow had initially 'align-items: end' and was changed to 'stretch'
.</p> |
| 14 <div id="toStretch" class="grid"> | 14 <div id="toStretch" class="grid"> |
| 15 <div style="width: 50px;" class="firstRowFirstColumn" data-expected-height="
150" data-offset-y="0"> | 15 <div style="width: 50px;" class="firstRowFirstColumn" data-expected-height="
150" data-offset-y="0"> |
| (...skipping 11 matching lines...) Expand all Loading... |
| 27 <div style="width: 50px;" class="firstRowSecondColumn" data-expected-height=
"100" data-offset-y="25"> | 27 <div style="width: 50px;" class="firstRowSecondColumn" data-expected-height=
"100" data-offset-y="25"> |
| 28 <div style="height: 100px"></div> | 28 <div style="height: 100px"></div> |
| 29 </div> | 29 </div> |
| 30 </div> | 30 </div> |
| 31 <script> | 31 <script> |
| 32 document.body.offsetLeft; | 32 document.body.offsetLeft; |
| 33 document.getElementById("toStretch").style.alignItems = "stretch"; | 33 document.getElementById("toStretch").style.alignItems = "stretch"; |
| 34 document.getElementById("fromStretch").style.alignItems = "center"; | 34 document.getElementById("fromStretch").style.alignItems = "center"; |
| 35 checkLayout(".grid"); | 35 checkLayout(".grid"); |
| 36 </script> | 36 </script> |
| OLD | NEW |