3 <link href=
"resources/grid.css" rel=
"stylesheet">
6 grid-template-columns:
100px
300px;
7 grid-template-rows:
50px
150px;
13 width: -webkit-calc(
80% +
20%);
19 height: -webkit-calc(
80% +
20px);
23 width: -webkit-calc(
80% +
20px);
24 height: -webkit-calc(
70% +
30%);
27 <script src=
"../../resources/check-layout.js"></script>
28 <body onload=
"checkLayout('.grid')">
30 <p>Test that resolving calc lengths on grid items works properly on a fixed grid with different writing modes.
</p>
33 <div class=
"firstRowFirstColumn calcWidth" data-expected-width=
"100" data-expected-height=
"15"></div>
34 <div class=
"firstRowSecondColumn calcHeight" data-expected-width=
"15" data-expected-height=
"60"></div>
35 <div class=
"secondRowFirstColumn calcHeightAndWidth" data-expected-width=
"100" data-expected-height=
"150"></div>
36 <div class=
"secondRowSecondColumn calcHeightAndWidth" data-expected-width=
"260" data-expected-height=
"150"></div>
39 <div class=
"grid verticalRL">
40 <div class=
"firstRowFirstColumn calcWidth" data-expected-width=
"50" data-expected-height=
"15"></div>
41 <div class=
"firstRowSecondColumn calcHeight" data-expected-width=
"15" data-expected-height=
"260"></div>
42 <div class=
"secondRowFirstColumn calcHeightAndWidth" data-expected-width=
"140" data-expected-height=
"100"></div>
43 <div class=
"secondRowSecondColumn calcHeightAndWidth" data-expected-width=
"140" data-expected-height=
"300"></div>
47 <div class=
"firstRowFirstColumn calcWidth verticalRL" data-expected-width=
"100" data-expected-height=
"15"></div>
48 <div class=
"firstRowSecondColumn calcHeight verticalRL" data-expected-width=
"15" data-expected-height=
"60"></div>
49 <div class=
"secondRowFirstColumn calcHeightAndWidth verticalRL" data-expected-width=
"100" data-expected-height=
"150"></div>
50 <div class=
"secondRowSecondColumn calcHeightAndWidth verticalRL" data-expected-width=
"260" data-expected-height=
"150"></div>
54 <div class=
"firstRowFirstColumn calcWidth verticalRL" data-expected-width=
"100" data-expected-height=
"15"></div>
55 <div class=
"firstRowSecondColumn calcHeight" data-expected-width=
"15" data-expected-height=
"60"></div>
56 <div class=
"secondRowFirstColumn calcHeightAndWidth verticalRL" data-expected-width=
"100" data-expected-height=
"150"></div>
57 <div class=
"secondRowSecondColumn calcHeightAndWidth" data-expected-width=
"260" data-expected-height=
"150"></div>