| 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: 50px / minmax(5px, 1fr) minmax(5px, 2fr); | 5 grid: minmax(5px, 1fr) minmax(5px, 2fr) / 50px; |
| 6 } | 6 } |
| 7 | 7 |
| 8 #fromIndefinite { height: auto; } | 8 #fromIndefinite { height: auto; } |
| 9 #toIndefinite { height: 90px; } | 9 #toIndefinite { height: 90px; } |
| 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 change in grid's height requires evaluating again whether the gri
d has indefinite or definite height.</p> | 12 <p>Tests how a change in grid's height requires evaluating again whether the gri
d has indefinite or definite height.</p> |
| 13 | 13 |
| 14 <p>The grid bellow had initially 'height: auto' (indefinite) and has been change
d to '90px' (definite).</p> | 14 <p>The grid bellow had initially 'height: auto' (indefinite) and has been change
d to '90px' (definite).</p> |
| 15 <div class="constrainedContainer"> | 15 <div class="constrainedContainer"> |
| (...skipping 12 matching lines...) Expand all Loading... |
| 28 <div class="secondRowFirstColumn" data-expected-width="50" data-expected
-height="10"></div> | 28 <div class="secondRowFirstColumn" data-expected-width="50" data-expected
-height="10"></div> |
| 29 </div> | 29 </div> |
| 30 </div> | 30 </div> |
| 31 | 31 |
| 32 <script> | 32 <script> |
| 33 document.body.offsetLeft; | 33 document.body.offsetLeft; |
| 34 document.getElementById("toIndefinite").style.height = "auto"; | 34 document.getElementById("toIndefinite").style.height = "auto"; |
| 35 document.getElementById("fromIndefinite").style.height = "90px"; | 35 document.getElementById("fromIndefinite").style.height = "90px"; |
| 36 checkLayout(".grid"); | 36 checkLayout(".grid"); |
| 37 </script> | 37 </script> |
| OLD | NEW |