| <link href="resources/grid.css" rel="stylesheet"> |
| grid-template-columns: 5px; |
| .minHeightSmaller { min-height: 12px; } |
| .minWidthSmaller { min-width: 12px; } |
| <script src="../../resources/check-layout.js"></script> |
| <body onload="checkLayout('.grid')"> |
| <p>This test checks min-width|height auto behavior for grids</p> |
| <div class="ahem" data-expected-width="5" data-expected-height="5">XXXX</div> |
| <div class="ahem minSmaller" data-expected-width="10" data-expected-height="10">XXXX</div> |
| <div class="ahem minBigger" data-expected-width="150" data-expected-height="75">XXXX</div> |
| <div class="ahem maxSmaller" data-expected-width="5" data-expected-height="5">XXXX</div> |
| <div class="ahem maxBigger" data-expected-width="5" data-expected-height="5">XXXX</div> |
| <!-- Check that min-width min-height behavior is preserved when using vertical writing modes --> |
| <div class="grid verticalLR"> |
| <div class="ahem" data-expected-width="5" data-expected-height="5">XXXX</div> |
| <div class="grid verticalLR"> |
| <div class="ahem minHeightSmaller" data-expected-width="5" data-expected-height="12">XXXX</div> |
| <div class="grid verticalLR"> |
| <div class="ahem minWidthSmaller" data-expected-width="12" data-expected-height="5">XXXX</div> |