3 <link href=
"resources/grid.css" rel=
"stylesheet">
6 grid-template-columns:
100px
300px;
7 grid-template-rows:
50px
150px;
22 .percentHeightAndWidth {
27 <script src=
"../../resources/check-layout.js"></script>
28 <body onload=
"checkLayout('.grid')">
30 <p>Test that resolving percent lengths on grid items works properly on a fixed grid with different writing modes.
</p>
33 <div class=
"firstRowFirstColumn percentWidth" data-expected-width=
"100" data-expected-height=
"15"></div>
34 <div class=
"firstRowSecondColumn percentHeight" data-expected-width=
"15" data-expected-height=
"50"></div>
35 <div class=
"secondRowFirstColumn percentHeightAndWidth" data-expected-width=
"100" data-expected-height=
"150"></div>
36 <div class=
"secondRowSecondColumn percentHeightAndWidth" data-expected-width=
"300" data-expected-height=
"150"></div>
39 <div class=
"grid verticalRL">
40 <div class=
"firstRowFirstColumn percentWidth" data-expected-width=
"50" data-expected-height=
"15"></div>
41 <div class=
"firstRowSecondColumn percentHeight" data-expected-width=
"15" data-expected-height=
"300"></div>
42 <div class=
"secondRowFirstColumn percentHeightAndWidth" data-expected-width=
"150" data-expected-height=
"100"></div>
43 <div class=
"secondRowSecondColumn percentHeightAndWidth" data-expected-width=
"150" data-expected-height=
"300"></div>
47 <div class=
"firstRowFirstColumn percentWidth verticalRL" data-expected-width=
"100" data-expected-height=
"15"></div>
48 <div class=
"firstRowSecondColumn percentHeight verticalRL" data-expected-width=
"15" data-expected-height=
"50"></div>
49 <div class=
"secondRowFirstColumn percentHeightAndWidth verticalRL" data-expected-width=
"100" data-expected-height=
"150"></div>
50 <div class=
"secondRowSecondColumn percentHeightAndWidth verticalRL" data-expected-width=
"300" data-expected-height=
"150"></div>
54 <div class=
"firstRowFirstColumn percentWidth verticalRL" data-expected-width=
"100" data-expected-height=
"15"></div>
55 <div class=
"firstRowSecondColumn percentHeight" data-expected-width=
"15" data-expected-height=
"50"></div>
56 <div class=
"secondRowFirstColumn percentHeightAndWidth verticalRL" data-expected-width=
"100" data-expected-height=
"150"></div>
57 <div class=
"secondRowSecondColumn percentHeightAndWidth" data-expected-width=
"300" data-expected-height=
"150"></div>