OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <link href="resources/grid.css" rel="stylesheet"> | 4 <link href="resources/grid.css" rel="stylesheet"> |
5 <style type="text/css"> | 5 <style type="text/css"> |
6 | 6 |
7 .gridAreas { | 7 .gridAreas { |
8 grid-template-areas: ". a a" | 8 grid-template-areas: ". a a" |
9 "c a a" | 9 "c a a" |
10 ". . d"; | 10 ". . d"; |
(...skipping 28 matching lines...) Expand all Loading... |
39 .gridWithEndLines { | 39 .gridWithEndLines { |
40 grid-template-columns: 50px 100px (a-end) 200px (c-end); | 40 grid-template-columns: 50px 100px (a-end) 200px (c-end); |
41 grid-template-rows: 50px (c-end) 100px (d-end) 200px; | 41 grid-template-rows: 50px (c-end) 100px (d-end) 200px; |
42 } | 42 } |
43 | 43 |
44 .gridRepeatedNames { | 44 .gridRepeatedNames { |
45 grid-template-columns: (d-start) 50px (d-start) 100px (d-start) 200px; | 45 grid-template-columns: (d-start) 50px (d-start) 100px (d-start) 200px; |
46 grid-template-rows: 50px (c-end) 100px (c-end) 200px (c-end); | 46 grid-template-rows: 50px (c-end) 100px (c-end) 200px (c-end); |
47 } | 47 } |
48 | 48 |
| 49 .gridImplicitArea { |
| 50 grid-template-columns: 50px (z-start) 100px (z-end) 200px; |
| 51 grid-template-rows: 50px (z-start) 100px 200px (z-end); |
| 52 } |
| 53 |
49 </style> | 54 </style> |
50 <script src="../../resources/check-layout.js"></script> | 55 <script src="../../resources/check-layout.js"></script> |
51 </head> | 56 </head> |
52 <body onload="checkLayout('.grid')"> | 57 <body onload="checkLayout('.grid')"> |
53 | 58 |
54 <p>This test checks that we resolve named grid line per the specification.</p> | 59 <p>This test checks that we resolve named grid line per the specification.</p> |
55 | 60 |
56 <!-- Check positioning using unique grid-line names --> | 61 <!-- Check positioning using unique grid-line names --> |
57 <div style="position: relative"> | 62 <div style="position: relative"> |
58 <div class="grid gridUniqueNames"> | 63 <div class="grid gridUniqueNames"> |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 | 237 |
233 <!-- Check behavior with lines named *-start or *-end --> | 238 <!-- Check behavior with lines named *-start or *-end --> |
234 <div style="position: relative"> | 239 <div style="position: relative"> |
235 <div class="grid gridAreasSpecial gridUniqueNames"> | 240 <div class="grid gridAreasSpecial gridUniqueNames"> |
236 <div class="sizedToGridArea" style="grid-column: -start;" data-offset-x="150
" data-offset-y="0" data-expected-width="200" data-expected-height="50"></div> | 241 <div class="sizedToGridArea" style="grid-column: -start;" data-offset-x="150
" data-offset-y="0" data-expected-width="200" data-expected-height="50"></div> |
237 <div class="sizedToGridArea" style="grid-row: -end;" data-offset-x="0" data-
offset-y="50" data-expected-width="50" data-expected-height="100"></div> | 242 <div class="sizedToGridArea" style="grid-row: -end;" data-offset-x="0" data-
offset-y="50" data-expected-width="50" data-expected-height="100"></div> |
238 <div class="sizedToGridArea" style="grid-column-end: -start; grid-row-start:
-end;" data-offset-x="50" data-offset-y="50" data-expected-width="100" data-exp
ected-height="100"></div> | 243 <div class="sizedToGridArea" style="grid-column-end: -start; grid-row-start:
-end;" data-offset-x="50" data-offset-y="50" data-expected-width="100" data-exp
ected-height="100"></div> |
239 </div> | 244 </div> |
240 </div> | 245 </div> |
241 | 246 |
| 247 <!-- Check that <custom-ident>-{start|end} named lines define implicit named are
as --> |
| 248 <div style="position: relative"> |
| 249 <div class="grid gridAreas gridImplicitArea"> |
| 250 <div class="sizedToGridArea" style="grid-column: z;" data-offset-x="50" data
-offset-y="0" data-expected-width="100" data-expected-height="50"></div> |
| 251 <div class="sizedToGridArea" style="grid-row: z;" data-offset-x="0" data-off
set-y="50" data-expected-width="50" data-expected-height="300"></div> |
| 252 <div class="sizedToGridArea" style="grid-column-end: z; grid-row-start: z;"
data-offset-x="50" data-offset-y="50" data-expected-width="100" data-expected-he
ight="100"></div> |
| 253 </div> |
| 254 </div> |
| 255 |
242 </body> | 256 </body> |
243 </html> | 257 </html> |
OLD | NEW |