| <!DOCTYPE html> |
| <html> |
| <link href="resources/grid.css" rel="stylesheet"/> |
| <link href="resources/grid-alignment.css" rel="stylesheet"/> |
| <style> |
| .grid { |
| grid-template-rows: 10px 20px; |
| grid-auto-rows: 5px; |
| grid-template-columns: 30px 40px; |
| grid-auto-columns: 15px; |
| grid-auto-flow: row; |
| } |
| |
| .bothNamedGridLineRow { |
| grid-row: nonExistentArea / nonExistentArea; |
| grid-column: 1; |
| background-color: lime; |
| } |
| |
| .bothNamedGridLineColumn { |
| grid-row: 1; |
| grid-column: nonExistentArea / span 3; |
| background-color: lime; |
| } |
| |
| .namedGridLineSpanRow { |
| grid-row: nonExistentArea / span 5 firstRow; |
| grid-column: 1; |
| background-color: lime; |
| } |
| |
| .namedGridLineSpanColumn { |
| grid-row: 1; |
| grid-column: nonExistentArea / span 1; |
| background-color: lime; |
| } |
| </style> |
| <script src="../../resources/check-layout.js"></script> |
| <body onload="checkLayout('.grid')"> |
| |
| <p>This test checks that unknown named area are resolved properly considering all the implicit grid lines to have the given names.</p> |
| |
| <div style="position: relative"> |
| <div class="grid"> |
| <div class="sizedToGridArea firstRowFirstColumn" data-offset-x="0" data-offset-y="0" data-expected-width="30" data-expected-height="10"></div> |
| <div class="sizedToGridArea bothNamedGridLineRow" data-offset-x="0" data-offset-y="35" data-expected-width="30" data-expected-height="5"></div> |
| </div> |
| </div> |
| |
| <div style="position: relative"> |
| <div class="grid contentStart"> |
| <div class="sizedToGridArea firstRowFirstColumn" data-offset-x="0" data-offset-y="0" data-expected-width="30" data-expected-height="10"></div> |
| <div class="sizedToGridArea bothNamedGridLineColumn" data-offset-x="85" data-offset-y="0" data-expected-width="45" data-expected-height="10"></div> |
| </div> |
| </div> |
| |
| <div style="position: relative"> |
| <div class="grid"> |
| <div class="sizedToGridArea firstRowFirstColumn" data-offset-x="0" data-offset-y="0" data-expected-width="30" data-expected-height="10"></div> |
| <div class="sizedToGridArea namedGridLineSpanRow" data-offset-x="0" data-offset-y="35" data-expected-width="30" data-expected-height="25"></div> |
| </div> |
| </div> |
| |
| <div style="position: relative"> |
| <div class="grid"> |
| <div class="sizedToGridArea firstRowFirstColumn" data-offset-x="0" data-offset-y="0" data-expected-width="30" data-expected-height="10"></div> |
| <div class="sizedToGridArea namedGridLineSpanColumn" data-offset-x="85" data-offset-y="0" data-expected-width="15" data-expected-height="10"></div> |
| </div> |
| </div> |
| |
| </body> |
| </html> |