OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE HTML> |
| 2 <link href="resources/grid.css" rel="stylesheet"> |
| 3 <style> |
| 4 .grid { |
| 5 grid: 50px / minmax(5px, 1fr) minmax(5px, 2fr); |
| 6 } |
| 7 |
| 8 #fromIndefinite { height: auto; } |
| 9 #toIndefinite { height: 90px; } |
| 10 </style> |
| 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> |
| 13 |
| 14 <p>The grid bellow had initially 'height: auto' (indefinite) and has been change
d to '90px' (definite).</p> |
| 15 <div class="constrainedContainer"> |
| 16 <div id="fromIndefinite" class="grid"> |
| 17 <div class="firstRowFirstColumn" data-expected-width="50" data-expected-
height="30"></div> |
| 18 <div class="secondRowFirstColumn" data-expected-width="50" data-expected
-height="60"></div> |
| 19 </div> |
| 20 </div> |
| 21 |
| 22 <hr style="margin-top: 150px;"> |
| 23 |
| 24 <p>The grid bellow had initially 'height: 90px' (definite) and has been changed
to 'auto' (indefinite).</p> |
| 25 <div class="constrainedContainer"> |
| 26 <div id="toIndefinite" class="grid"> |
| 27 <div class="firstRowFirstColumn" data-expected-width="50" data-expected-
height="5"></div> |
| 28 <div class="secondRowFirstColumn" data-expected-width="50" data-expected
-height="10"></div> |
| 29 </div> |
| 30 </div> |
| 31 |
| 32 <script> |
| 33 document.body.offsetLeft; |
| 34 document.getElementById("toIndefinite").style.height = "auto"; |
| 35 document.getElementById("fromIndefinite").style.height = "90px"; |
| 36 checkLayout(".grid"); |
| 37 </script> |
OLD | NEW |