OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <link href="resources/grid.css" rel="stylesheet"> | 3 <link href="resources/grid.css" rel="stylesheet"> |
4 <style> | 4 <style> |
5 .grid { | 5 .grid { |
6 grid-auto-rows: 50px; | 6 grid-auto-rows: 50px; |
7 grid-auto-columns: 100px; | 7 grid-auto-columns: 100px; |
8 } | 8 } |
9 | 9 |
10 .autoRowFirstColumnSpanning2 { | |
11 background-color: maroon; | |
12 grid-column: 1 / span 2; | |
13 grid-row: auto; | |
14 } | |
15 | |
16 .autoRowSecondColumnSpanning2 { | |
17 background-color: olive; | |
18 grid-column: 2 / span 2; | |
19 grid-row: auto; | |
20 } | |
21 | |
22 .autoRowFirstColumnSpanning3 { | 10 .autoRowFirstColumnSpanning3 { |
23 background-color: teal; | 11 background-color: teal; |
24 grid-column: 1 / span 3; | 12 grid-column: 1 / span 3; |
25 grid-row: auto; | 13 grid-row: auto; |
26 } | 14 } |
27 | 15 |
28 .firstRowSpanning2AutoColumn { | |
29 background-color: maroon; | |
30 grid-column: auto; | |
31 grid-row: 1 / span 2; | |
32 height: 100%; | |
33 } | |
34 | |
35 .secondRowSpanning2AutoColumn { | |
36 background-color: olive; | |
37 grid-column: auto; | |
38 grid-row: 2 / span 2; | |
39 height: 100%; | |
40 } | |
41 | |
42 .firstRowSpanning3AutoColumn { | 16 .firstRowSpanning3AutoColumn { |
43 background-color: teal; | 17 background-color: teal; |
44 grid-column: auto; | 18 grid-column: auto; |
45 grid-row: 1 / span 3; | 19 grid-row: 1 / span 3; |
46 height: 100%; | 20 height: 100%; |
47 } | 21 } |
48 </style> | 22 </style> |
49 <script src="../../resources/check-layout.js"></script> | 23 <script src="../../resources/check-layout.js"></script> |
50 <body onload="checkLayout('.grid');"> | 24 <body onload="checkLayout('.grid');"> |
51 | 25 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 <div class="sizedToGridArea autoRowFirstColumnSpanning2" data-offset-x="
0" data-offset-y="0" data-expected-width="200" data-expected-height="50"></div> | 60 <div class="sizedToGridArea autoRowFirstColumnSpanning2" data-offset-x="
0" data-offset-y="0" data-expected-width="200" data-expected-height="50"></div> |
87 <div class="sizedToGridArea autoRowSecondColumnSpanning2" data-offset-x=
"100" data-offset-y="50" data-expected-width="200" data-expected-height="50"></d
iv> | 61 <div class="sizedToGridArea autoRowSecondColumnSpanning2" data-offset-x=
"100" data-offset-y="50" data-expected-width="200" data-expected-height="50"></d
iv> |
88 <div class="sizedToGridArea autoRowFirstColumnSpanning3" data-offset-x="
0" data-offset-y="100" data-expected-width="300" data-expected-height="50"></div
> | 62 <div class="sizedToGridArea autoRowFirstColumnSpanning3" data-offset-x="
0" data-offset-y="100" data-expected-width="300" data-expected-height="50"></div
> |
89 <div class="sizedToGridArea autoRowAutoColumn" data-offset-x="0" data-of
fset-y="50" data-expected-width="100" data-expected-height="50"></div> | 63 <div class="sizedToGridArea autoRowAutoColumn" data-offset-x="0" data-of
fset-y="50" data-expected-width="100" data-expected-height="50"></div> |
90 <div class="sizedToGridArea autoRowAutoColumn" data-offset-x="200" data-
offset-y="0" data-expected-width="100" data-expected-height="50"></div> | 64 <div class="sizedToGridArea autoRowAutoColumn" data-offset-x="200" data-
offset-y="0" data-expected-width="100" data-expected-height="50"></div> |
91 </div> | 65 </div> |
92 </div> | 66 </div> |
93 | 67 |
94 </body> | 68 </body> |
95 </html> | 69 </html> |
OLD | NEW |