OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <link href="resources/grid.css" rel="stylesheet"> |
| 3 <style> |
| 4 |
| 5 .grid { |
| 6 grid-template-columns: 100px 200px; |
| 7 grid-template-rows: 50px 150px; |
| 8 width: 500px; |
| 9 height: 300px; |
| 10 border: 5px solid black; |
| 11 margin: 30px; |
| 12 padding: 15px; |
| 13 /* Ensures that the grid container is the containing block of the absolutely
positioned grid children. */ |
| 14 position: relative; |
| 15 } |
| 16 |
| 17 .absolute { |
| 18 position: absolute; |
| 19 } |
| 20 |
| 21 .startUnknownLine { |
| 22 background-color: blue; |
| 23 grid-column: foo / 3; |
| 24 grid-row: bar / 3; |
| 25 } |
| 26 |
| 27 .endUnknownLine { |
| 28 background-color: orange; |
| 29 grid-column: 1 / foo; |
| 30 grid-row: 1 / bar; |
| 31 } |
| 32 |
| 33 .startAndEndUnknownLines { |
| 34 background-color: green; |
| 35 grid-column: foo / bar; |
| 36 grid-row: foo / bar; |
| 37 } |
| 38 |
| 39 </style> |
| 40 <script src="../../resources/check-layout.js"></script> |
| 41 <body onload="checkLayout('.grid')"> |
| 42 |
| 43 <p>This test checks that grid placement properties of absolutely positioned item
s using unknown named grid lines are treated as "auto".</p> |
| 44 |
| 45 <div class="grid"> |
| 46 <div class="absolute sizedToGridArea startAndEndUnknownLines" |
| 47 data-offset-x="15" data-offset-y="15" data-expected-width="530" data-exp
ected-height="330"> |
| 48 </div> |
| 49 <div class="absolute sizedToGridArea endUnknownLine" |
| 50 data-offset-x="15" data-offset-y="15" data-expected-width="515" data-exp
ected-height="315"> |
| 51 </div> |
| 52 <div class="absolute sizedToGridArea startUnknownLine" |
| 53 data-offset-x="15" data-offset-y="15" data-expected-width="315" data-exp
ected-height="215"> |
| 54 </div> |
| 55 </div> |
| 56 |
| 57 </body> |
OLD | NEW |