3 <link href=
"resources/grid.css" rel=
"stylesheet">
12 grid-template-columns:
40%
60%;
13 grid-template-rows:
30%
70%;
18 .firstRowFirstColumn {
23 .firstRowSecondColumn {
28 .secondRowFirstColumn {
33 .secondRowSecondColumn {
34 width: -webkit-calc(
100%);
35 height: -webkit-calc(
100%);
38 <script src=
"../../resources/check-layout.js"></script>
39 <body onload=
"checkLayout('.grid')">
41 <p>Test that percentage sized grid items inside percentage sized grid tracks inside a percentage size grid get properly sized.
</p>
43 <div class=
"container">
44 <div class=
"grid" data-expected-width=
"400" data-expected-height=
"300">
45 <div class=
"firstRowFirstColumn" data-expected-width=
"160" data-expected-height=
"15"></div>
46 <div class=
"firstRowSecondColumn" data-expected-width=
"15" data-expected-height=
"90"></div>
47 <div class=
"secondRowFirstColumn" data-expected-width=
"80" data-expected-height=
"105"></div>
48 <div class=
"secondRowSecondColumn" data-expected-width=
"240" data-expected-height=
"210"></div>
52 <div class=
"container">
53 <div class=
"grid" style=
"-webkit-writing-mode: horizontal-bt" data-expected-width=
"400" data-expected-height=
"300">
54 <div class=
"firstRowFirstColumn" data-expected-width=
"160" data-expected-height=
"15"></div>
55 <div class=
"firstRowSecondColumn" data-expected-width=
"15" data-expected-height=
"90"></div>
56 <div class=
"secondRowFirstColumn" data-expected-width=
"80" data-expected-height=
"105"></div>
57 <div class=
"secondRowSecondColumn" data-expected-width=
"240" data-expected-height=
"210"></div>
61 <div class=
"container">
62 <div class=
"grid" style=
"-webkit-writing-mode: vertical-rl;" data-expected-width=
"400" data-expected-height=
"300">
63 <div class=
"firstRowFirstColumn" data-expected-width=
"120" data-expected-height=
"15"></div>
64 <div class=
"firstRowSecondColumn" data-expected-width=
"15" data-expected-height=
"180"></div>
65 <div class=
"secondRowFirstColumn" data-expected-width=
"140" data-expected-height=
"60"></div>
66 <div class=
"secondRowSecondColumn" data-expected-width=
"280" data-expected-height=
"180"></div>
70 <div class=
"container">
71 <div class=
"grid" style=
"-webkit-writing-mode: vertical-lr;" data-expected-width=
"400" data-expected-height=
"300">
72 <div class=
"firstRowFirstColumn" data-expected-width=
"120" data-expected-height=
"15"></div>
73 <div class=
"firstRowSecondColumn" data-expected-width=
"15" data-expected-height=
"180"></div>
74 <div class=
"secondRowFirstColumn" data-expected-width=
"140" data-expected-height=
"60"></div>
75 <div class=
"secondRowSecondColumn" data-expected-width=
"280" data-expected-height=
"180"></div>