OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <link href="resources/grid.css" rel="stylesheet"> |
| 4 <style> |
| 5 .grid { |
| 6 grid-auto-rows: 50px; |
| 7 grid-auto-columns: 100px; |
| 8 } |
| 9 |
| 10 .gridNamedGridLinesColumns { |
| 11 grid-template-columns: 50px 100px (line) 200px (line); |
| 12 } |
| 13 |
| 14 .gridNamedGridLinesRows { |
| 15 grid-template-rows: 50px 100px (line) 200px (line); |
| 16 } |
| 17 |
| 18 .autoRowAutoColumnSpanning2 { |
| 19 background-color: maroon; |
| 20 grid-column: span 2; |
| 21 grid-row: auto; |
| 22 } |
| 23 |
| 24 .autoRowAutoColumnSpanning3 { |
| 25 background-color: teal; |
| 26 grid-column: span 3; |
| 27 grid-row: auto; |
| 28 } |
| 29 |
| 30 .autoRowSpanning2AutoColumn { |
| 31 background-color: aqua; |
| 32 grid-column: auto; |
| 33 grid-row: span 2; |
| 34 } |
| 35 |
| 36 .autoRowSpanning3AutoColumn { |
| 37 background-color: salmon; |
| 38 grid-column: auto; |
| 39 grid-row: span 3; |
| 40 } |
| 41 |
| 42 .autoRowSpanning2AutoColumnSpanning2 { |
| 43 background-color: olive; |
| 44 grid-column: span 2; |
| 45 grid-row: span 2; |
| 46 } |
| 47 |
| 48 .autoRowAutoColumnSpanningLine { |
| 49 background-color: indigo; |
| 50 grid-column: span line; |
| 51 grid-row: auto; |
| 52 } |
| 53 |
| 54 .autoRowSpanningLineAutoColumn { |
| 55 background-color: moccasin; |
| 56 grid-column: auto; |
| 57 grid-row: span line; |
| 58 } |
| 59 |
| 60 .autoRowAutoColumnSpanning2Line { |
| 61 background-color: sienna; |
| 62 grid-column: span 2 line; |
| 63 grid-row: auto; |
| 64 } |
| 65 |
| 66 .autoRowSpanning2LineAutoColumn { |
| 67 background-color: tomato; |
| 68 grid-column: auto; |
| 69 grid-row: span 2 line; |
| 70 } |
| 71 </style> |
| 72 <script src="../../resources/check-layout.js"></script> |
| 73 <body onload="checkLayout('.grid');"> |
| 74 |
| 75 <p>Thist test checks that span is supported in auto-placement for automatic posi
tions.</p> |
| 76 |
| 77 <div style="position: relative"> |
| 78 <div class="grid gridAutoFlowRow"> |
| 79 <div class="sizedToGridArea autoRowAutoColumnSpanning2" data-offset-x="0
" data-offset-y="0" data-expected-width="200" data-expected-height="50"></div> |
| 80 <div class="sizedToGridArea autoRowAutoColumn" data-offset-x="200" data-
offset-y="0" data-expected-width="100" data-expected-height="50"></div> |
| 81 <div class="sizedToGridArea autoRowAutoColumn" data-offset-x="0" data-of
fset-y="50" data-expected-width="100" data-expected-height="50"></div> |
| 82 <div class="sizedToGridArea autoRowAutoColumnSpanning2" data-offset-x="1
00" data-offset-y="50" data-expected-width="200" data-expected-height="50"></div
> |
| 83 <div class="sizedToGridArea autoRowAutoColumnSpanning3" data-offset-x="0
" data-offset-y="100" data-expected-width="300" data-expected-height="50"></div> |
| 84 <div class="sizedToGridArea autoRowSpanning2AutoColumnSpanning2" data-of
fset-x="0" data-offset-y="150" data-expected-width="200" data-expected-height="1
00"></div> |
| 85 <div class="sizedToGridArea autoRowAutoColumn" data-offset-x="200" data-
offset-y="150" data-expected-width="100" data-expected-height="50"></div> |
| 86 <div class="sizedToGridArea autoRowAutoColumn" data-offset-x="200" data-
offset-y="200" data-expected-width="100" data-expected-height="50"></div> |
| 87 <div class="sizedToGridArea autoRowAutoColumn" data-offset-x="0" data-of
fset-y="250" data-expected-width="100" data-expected-height="50"></div> |
| 88 <div class="sizedToGridArea autoRowSpanning2AutoColumnSpanning2" data-of
fset-x="100" data-offset-y="250" data-expected-width="200" data-expected-height=
"100"></div> |
| 89 <div class="sizedToGridArea autoRowAutoColumn" data-offset-x="0" data-of
fset-y="300" data-expected-width="100" data-expected-height="50"></div> |
| 90 </div> |
| 91 </div> |
| 92 |
| 93 <div style="position: relative"> |
| 94 <div class="grid gridAutoFlowRow"> |
| 95 <div class="sizedToGridArea autoRowSpanning2AutoColumn" data-offset-x="0
" data-offset-y="0" data-expected-width="100" data-expected-height="100"></div> |
| 96 <div class="sizedToGridArea autoRowSecondColumn" data-offset-x="100" dat
a-offset-y="0" data-expected-width="100" data-expected-height="50"></div> |
| 97 <div class="sizedToGridArea autoRowThirdColumn" data-offset-x="200" data
-offset-y="0" data-expected-width="100" data-expected-height="50"></div> |
| 98 <div class="sizedToGridArea autoRowSpanning2AutoColumnSpanning2" data-of
fset-x="100" data-offset-y="50" data-expected-width="200" data-expected-height="
100"></div> |
| 99 <div class="sizedToGridArea autoRowSpanning3AutoColumn" data-offset-x="0
" data-offset-y="100" data-expected-width="100" data-expected-height="150"></div
> |
| 100 <div class="sizedToGridArea autoRowSpanning2AutoColumnSpanning2" data-of
fset-x="100" data-offset-y="150" data-expected-width="200" data-expected-height=
"100"></div> |
| 101 </div> |
| 102 </div> |
| 103 |
| 104 <div style="position: relative"> |
| 105 <div class="grid gridAutoFlowRow gridNamedGridLinesColumns"> |
| 106 <div class="sizedToGridArea autoRowFirstColumn" data-offset-x="0" data-o
ffset-y="0" data-expected-width="50" data-expected-height="50"></div> |
| 107 <div class="sizedToGridArea autoRowAutoColumnSpanning2Line" data-offset-
x="50" data-offset-y="0" data-expected-width="300" data-expected-height="50"></d
iv> |
| 108 <div class="sizedToGridArea autoRowSecondColumn" data-offset-x="50" data
-offset-y="50" data-expected-width="100" data-expected-height="50"></div> |
| 109 <div class="sizedToGridArea autoRowAutoColumnSpanning2Line" data-offset-
x="150" data-offset-y="50" data-expected-width="200" data-expected-height="50"><
/div> |
| 110 <div class="sizedToGridArea autoRowThirdColumn" data-offset-x="150" data
-offset-y="100" data-expected-width="200" data-expected-height="50"></div> |
| 111 <div class="sizedToGridArea autoRowAutoColumnSpanningLine" data-offset-x
="0" data-offset-y="100" data-expected-width="150" data-expected-height="50"></d
iv> |
| 112 <div class="sizedToGridArea autoRowAutoColumnSpanning2Line" data-offset-
x="0" data-offset-y="150" data-expected-width="350" data-expected-height="50"></
div> |
| 113 <div class="sizedToGridArea autoRowFirstColumn" data-offset-x="0" data-o
ffset-y="50" data-expected-width="50" data-expected-height="50"></div> |
| 114 <div class="sizedToGridArea autoRowFirstColumn" data-offset-x="0" data-o
ffset-y="200" data-expected-width="50" data-expected-height="50"></div> |
| 115 <div class="sizedToGridArea autoRowAutoColumnSpanningLine" data-offset-x
="50" data-offset-y="200" data-expected-width="100" data-expected-height="50"></
div> |
| 116 <div class="sizedToGridArea autoRowThirdColumn" data-offset-x="150" data
-offset-y="200" data-expected-width="200" data-expected-height="50"></div> |
| 117 <div class="sizedToGridArea autoRowAutoColumnSpanningLine" data-offset-x
="0" data-offset-y="250" data-expected-width="150" data-expected-height="50"></d
iv> |
| 118 <div class="sizedToGridArea autoRowAutoColumnSpanningLine" data-offset-x
="150" data-offset-y="250" data-expected-width="200" data-expected-height="50"><
/div> |
| 119 </div> |
| 120 </div> |
| 121 |
| 122 <div style="position: relative"> |
| 123 <div class="grid gridAutoFlowColumn"> |
| 124 <div class="sizedToGridArea autoRowSpanning2AutoColumn" data-offset-x="0
" data-offset-y="0" data-expected-width="100" data-expected-height="100"></div> |
| 125 <div class="sizedToGridArea autoRowAutoColumn" data-offset-x="0" data-of
fset-y="100" data-expected-width="100" data-expected-height="50"></div> |
| 126 <div class="sizedToGridArea autoRowAutoColumn" data-offset-x="100" data-
offset-y="0" data-expected-width="100" data-expected-height="50"></div> |
| 127 <div class="sizedToGridArea autoRowSpanning2AutoColumn" data-offset-x="1
00" data-offset-y="50" data-expected-width="100" data-expected-height="100"></di
v> |
| 128 <div class="sizedToGridArea autoRowSpanning3AutoColumn" data-offset-x="2
00" data-offset-y="0" data-expected-width="100" data-expected-height="150"></div
> |
| 129 <div class="sizedToGridArea autoRowSpanning2AutoColumnSpanning2" data-of
fset-x="300" data-offset-y="0" data-expected-width="200" data-expected-height="1
00"></div> |
| 130 <div class="sizedToGridArea autoRowAutoColumn" data-offset-x="300" data-
offset-y="100" data-expected-width="100" data-expected-height="50"></div> |
| 131 <div class="sizedToGridArea autoRowAutoColumn" data-offset-x="400" data-
offset-y="100" data-expected-width="100" data-expected-height="50"></div> |
| 132 <div class="sizedToGridArea autoRowAutoColumn" data-offset-x="500" data-
offset-y="0" data-expected-width="100" data-expected-height="50"></div> |
| 133 <div class="sizedToGridArea autoRowSpanning2AutoColumnSpanning2" data-of
fset-x="500" data-offset-y="50" data-expected-width="200" data-expected-height="
100"></div> |
| 134 <div class="sizedToGridArea autoRowAutoColumn" data-offset-x="600" data-
offset-y="0" data-expected-width="100" data-expected-height="50"></div> |
| 135 </div> |
| 136 </div> |
| 137 |
| 138 <div style="position: relative"> |
| 139 <div class="grid gridAutoFlowColumn"> |
| 140 <div class="sizedToGridArea autoRowAutoColumnSpanning2" data-offset-x="0
" data-offset-y="0" data-expected-width="200" data-expected-height="50"></div> |
| 141 <div class="sizedToGridArea secondRowAutoColumn" data-offset-x="0" data-
offset-y="50" data-expected-width="100" data-expected-height="50"></div> |
| 142 <div class="sizedToGridArea thirdRowAutoColumn" data-offset-x="0" data-o
ffset-y="100" data-expected-width="100" data-expected-height="50"></div> |
| 143 <div class="sizedToGridArea autoRowSpanning2AutoColumnSpanning2" data-of
fset-x="100" data-offset-y="50" data-expected-width="200" data-expected-height="
100"></div> |
| 144 <div class="sizedToGridArea autoRowAutoColumnSpanning3" data-offset-x="2
00" data-offset-y="0" data-expected-width="300" data-expected-height="50"></div> |
| 145 <div class="sizedToGridArea autoRowSpanning2AutoColumnSpanning2" data-of
fset-x="300" data-offset-y="50" data-expected-width="200" data-expected-height="
100"></div> |
| 146 </div> |
| 147 </div> |
| 148 |
| 149 <div style="position: relative"> |
| 150 <div class="grid gridAutoFlowColumn gridNamedGridLinesRows"> |
| 151 <div class="sizedToGridArea firstRowAutoColumn" data-offset-x="0" data-o
ffset-y="0" data-expected-width="100" data-expected-height="50"></div> |
| 152 <div class="sizedToGridArea autoRowSpanning2LineAutoColumn" data-offset-
x="0" data-offset-y="50" data-expected-width="100" data-expected-height="300"></
div> |
| 153 <div class="sizedToGridArea secondRowAutoColumn" data-offset-x="100" dat
a-offset-y="50" data-expected-width="100" data-expected-height="100"></div> |
| 154 <div class="sizedToGridArea autoRowSpanning2LineAutoColumn" data-offset-
x="100" data-offset-y="150" data-expected-width="100" data-expected-height="200"
></div> |
| 155 <div class="sizedToGridArea thirdRowAutoColumn" data-offset-x="200" data
-offset-y="150" data-expected-width="100" data-expected-height="200"></div> |
| 156 <div class="sizedToGridArea autoRowSpanningLineAutoColumn" data-offset-x
="200" data-offset-y="0" data-expected-width="100" data-expected-height="150"></
div> |
| 157 <div class="sizedToGridArea autoRowSpanning2LineAutoColumn" data-offset-
x="300" data-offset-y="0" data-expected-width="100" data-expected-height="350"><
/div> |
| 158 <div class="sizedToGridArea firstRowAutoColumn" data-offset-x="100" data
-offset-y="0" data-expected-width="100" data-expected-height="50"></div> |
| 159 <div class="sizedToGridArea firstRowAutoColumn" data-offset-x="400" data
-offset-y="0" data-expected-width="100" data-expected-height="50"></div> |
| 160 <div class="sizedToGridArea autoRowSpanningLineAutoColumn" data-offset-x
="400" data-offset-y="50" data-expected-width="100" data-expected-height="100"><
/div> |
| 161 <div class="sizedToGridArea thirdRowAutoColumn" data-offset-x="400" data
-offset-y="150" data-expected-width="100" data-expected-height="200"></div> |
| 162 <div class="sizedToGridArea autoRowSpanningLineAutoColumn" data-offset-x
="500" data-offset-y="0" data-expected-width="100" data-expected-height="150"></
div> |
| 163 <div class="sizedToGridArea autoRowSpanningLineAutoColumn" data-offset-x
="500" data-offset-y="150" data-expected-width="100" data-expected-height="200">
</div> |
| 164 </div> |
| 165 </div> |
| 166 |
| 167 </body> |
| 168 </html> |
OLD | NEW |