3 <link href=
"resources/grid.css" rel=
"stylesheet">
6 grid-template-columns:
40%
60%;
7 grid-template-rows:
30%
70%;
13 grid-template-columns:
25%
25%
25%
25%;
14 grid-template-rows:
25%
25%
25%
25%;
20 grid-template-columns:
10px
20px
40px
80px;
21 grid-template-rows:
15px
30px
60px
120px;
24 .negativeOverflowRowFirstColumn {
29 .overflowRowFirstColumn {
34 .firstRowNegativeOverflowColumn {
39 .firstRowOverflowColumn {
44 .secondRowSecondColumnNoSpan {
49 .thirdRowThirdColumnNoSpan {
54 .firstRowSpanning3SecondColumn {
59 .thirdRowSecondColumnSpanning2 {
60 grid-column:
2 / span
2;
64 .spanning3Row5SecondColumn {
69 .thirdRowSpanning2Column3 {
70 grid-column: span
2 /
3;
75 grid-column: span
3 /
3;
80 grid-column: span
2 / span
2;
81 grid-row: span
3 / span
1;
85 grid-column: auto / span
2;
86 grid-row: span
3 / auto;
90 <script src=
"../../resources/check-layout.js"></script>
91 <body onload=
"checkLayout('.grid');">
93 <p>Test that spannig rows / columns inside percentage sized grid areas get properly sized.
</p>
95 <div style=
"position: relative">
96 <div class=
"grid" data-expected-width=
"400" data-expected-height=
"300">
97 <div class=
"sizedToGridArea firstRowBothColumn" data-offset-x=
"0" data-offset-y=
"0" data-expected-width=
"400" data-expected-height=
"90"></div>
101 <div style=
"position: relative">
102 <div class=
"grid" data-expected-width=
"400" data-expected-height=
"300">
103 <div class=
"sizedToGridArea secondRowBothColumn" data-offset-x=
"0" data-offset-y=
"90" data-expected-width=
"400" data-expected-height=
"210"></div>
107 <div style=
"position: relative">
108 <div class=
"grid" data-expected-width=
"400" data-expected-height=
"300">
109 <div class=
"sizedToGridArea bothRowFirstColumn" data-offset-x=
"0" data-offset-y=
"0" data-expected-width=
"160" data-expected-height=
"300"></div>
113 <div style=
"position: relative">
114 <div class=
"grid" data-expected-width=
"400" data-expected-height=
"300">
115 <div class=
"sizedToGridArea bothRowSecondColumn" data-offset-x=
"160" data-offset-y=
"0" data-expected-width=
"240" data-expected-height=
"300"></div>
119 <div style=
"position: relative">
120 <div class=
"grid" data-expected-width=
"400" data-expected-height=
"300">
121 <div class=
"sizedToGridArea bothRowBothColumn" data-offset-x=
"0" data-offset-y=
"0" data-expected-width=
"400" data-expected-height=
"300"></div>
125 <div style=
"position: relative">
126 <div class=
"grid" data-expected-width=
"400" data-expected-height=
"300">
127 <div class=
"sizedToGridArea negativeOverflowRowFirstColumn" data-offset-x=
"0" data-offset-y=
"0" data-expected-width=
"160" data-expected-height=
"90"></div>
131 <div style=
"position: relative">
132 <div class=
"grid" data-expected-width=
"400" data-expected-height=
"300">
133 <div class=
"sizedToGridArea overflowRowFirstColumn" data-offset-x=
"0" data-offset-y=
"0" data-expected-width=
"160" data-expected-height=
"300"></div>
137 <div style=
"position: relative">
138 <div class=
"grid" data-expected-width=
"400" data-expected-height=
"300">
139 <div class=
"sizedToGridArea firstRowNegativeOverflowColumn" data-offset-x=
"0" data-offset-y=
"0" data-expected-width=
"160" data-expected-height=
"90"></div>
143 <div style=
"position: relative">
144 <div class=
"grid" data-expected-width=
"400" data-expected-height=
"300">
145 <div class=
"sizedToGridArea firstRowOverflowColumn" data-offset-x=
"0" data-offset-y=
"0" data-expected-width=
"400" data-expected-height=
"90"></div>
149 <div style=
"position: relative">
150 <div class=
"grid" data-expected-width=
"400" data-expected-height=
"300">
151 <div class=
"sizedToGridArea firstAutoRowSecondAutoColumn" data-offset-x=
"160" data-offset-y=
"0" data-expected-width=
"240" data-expected-height=
"90"></div>
155 <div style=
"position: relative">
156 <div class=
"grid" data-expected-width=
"400" data-expected-height=
"300">
157 <div class=
"sizedToGridArea autoSecondRowAutoFirstColumn" data-offset-x=
"0" data-offset-y=
"0" data-expected-width=
"160" data-expected-height=
"90"></div>
161 <div style=
"position: relative">
162 <div class=
"grid" id=
"bigGrid" data-expected-width=
"200" data-expected-height=
"100">
163 <div class=
"sizedToGridArea secondRowSecondColumnNoSpan" data-offset-x=
"50" data-offset-y=
"25" data-expected-width=
"50" data-expected-height=
"25"></div>
164 <div class=
"sizedToGridArea thirdRowThirdColumnNoSpan" data-offset-x=
"100" data-offset-y=
"50" data-expected-width=
"50" data-expected-height=
"25"></div>
167 <div style=
"position: relative">
168 <div class=
"grid" id=
"bigGrid" data-expected-width=
"200" data-expected-height=
"100">
169 <div class=
"sizedToGridArea firstRowSpanning3SecondColumn" data-offset-x=
"50" data-offset-y=
"0" data-expected-width=
"50" data-expected-height=
"75"></div>
173 <div style=
"position: relative">
174 <div class=
"grid" id=
"bigGrid" data-expected-width=
"200" data-expected-height=
"100">
175 <div class=
"sizedToGridArea thirdRowSecondColumnSpanning2" data-offset-x=
"50" data-offset-y=
"50" data-expected-width=
"100" data-expected-height=
"25"></div>
178 <div style=
"position: relative">
179 <div class=
"grid" id=
"bigGrid" data-expected-width=
"200" data-expected-height=
"100">
180 <div class=
"sizedToGridArea spanning3Row5SecondColumn" data-offset-x=
"50" data-offset-y=
"25" data-expected-width=
"50" data-expected-height=
"75"></div>
184 <div style=
"position: relative">
185 <div class=
"grid" id=
"bigGrid" data-expected-width=
"200" data-expected-height=
"100">
186 <div class=
"sizedToGridArea thirdRowSpanning2Column3" data-offset-x=
"0" data-offset-y=
"50" data-expected-width=
"100" data-expected-height=
"25"></div>
189 <div style=
"position: relative">
190 <div class=
"grid" id=
"bigGrid" data-expected-width=
"200" data-expected-height=
"100">
191 <div class=
"sizedToGridArea underflowSpanning" data-offset-x=
"0" data-offset-y=
"0" data-expected-width=
"100" data-expected-height=
"75"></div>
194 <!-- Check that the end span is ignored when two opposing spans are specified-->
195 <div style=
"position: relative">
196 <div class=
"grid" id=
"fixedGrid" style=
"grid-auto-flow: row;">
197 <div class=
"sizedToGridArea" style=
"grid-column: 1; grid-row: 1;" data-offset-x=
"0" data-offset-y=
"0" data-expected-width=
"10" data-expected-height=
"15"></div>
198 <div class=
"sizedToGridArea doubleSpan" data-offset-x=
"10" data-offset-y=
"0" data-expected-width=
"60" data-expected-height=
"105"></div>
201 <div style=
"position: relative">
202 <div class=
"grid" id=
"fixedGrid" style=
"grid-auto-flow: column;">
203 <div class=
"sizedToGridArea" style=
"grid-column: 1; grid-row: 1;" data-offset-x=
"0" data-offset-y=
"0" data-expected-width=
"10" data-expected-height=
"15"></div>
204 <div class=
"sizedToGridArea doubleSpan" data-offset-x=
"0" data-offset-y=
"15" data-expected-width=
"30" data-expected-height=
"210"></div>