4 <link href=
"resources/grid.css" rel=
"stylesheet">
7 grid-template-columns:
20%
50%
30%;
8 grid-template-rows:
40%;
17 width: calc(
200px +
20%);
18 height: calc(
300px +
10%);
27 width: -webkit-fit-content;
31 .legacyIntrinsicSize {
36 .firstRowFirstColumn {
38 background-color: cyan;
41 .firstRowSecondColumn {
43 background-color: lime;
46 .firstRowThirdColumn {
48 background-color: yellow;
53 <script src=
"../../resources/check-layout.js"></script>
55 <body onload=
"checkLayout('.grid');">
56 <p>This test checks percentage track breadths are resolved properly regarding the container size.
</p>
57 <div class=
"unconstrainedContainer">
59 <div class=
"firstRowFirstColumn sizedToGridArea" data-expected-width=
"200" data-expected-height=
"10">XX
</div>
60 <div class=
"firstRowSecondColumn sizedToGridArea" data-expected-width=
"500" data-expected-height=
"10">XXXXX
</div>
61 <div class=
"firstRowThirdColumn sizedToGridArea" data-expected-width=
"300" data-expected-height=
"10">XXX
</div>
65 <div class=
"indefiniteSize">
67 <div class=
"firstRowFirstColumn sizedToGridArea" data-expected-width=
"20" data-expected-height=
"10">XX
</div>
68 <div class=
"firstRowSecondColumn sizedToGridArea" data-expected-width=
"50" data-expected-height=
"10">XXXXX
</div>
69 <div class=
"firstRowThirdColumn sizedToGridArea" data-expected-width=
"30" data-expected-height=
"10">XXX
</div>
73 <div class=
"unconstrainedContainer">
74 <div class=
"grid fixedSize">
75 <div class=
"firstRowFirstColumn sizedToGridArea" data-expected-width=
"80" data-expected-height=
"160">XX
</div>
76 <div class=
"firstRowSecondColumn sizedToGridArea" data-expected-width=
"200" data-expected-height=
"160">XXXXX
</div>
77 <div class=
"firstRowThirdColumn sizedToGridArea" data-expected-width=
"120" data-expected-height=
"160">XXX
</div>
81 <div class=
"indefiniteSize">
82 <div class=
"grid fixedSize">
83 <div class=
"firstRowFirstColumn sizedToGridArea" data-expected-width=
"80" data-expected-height=
"160">XX
</div>
84 <div class=
"firstRowSecondColumn sizedToGridArea" data-expected-width=
"200" data-expected-height=
"160">XXXXX
</div>
85 <div class=
"firstRowThirdColumn sizedToGridArea" data-expected-width=
"120" data-expected-height=
"160">XXX
</div>
89 <div class=
"indefiniteSize">
90 <div class=
"grid calculatedSize">
91 <div class=
"firstRowFirstColumn sizedToGridArea" data-expected-width=
"20" data-expected-height=
"10">XX
</div>
92 <div class=
"firstRowSecondColumn sizedToGridArea" data-expected-width=
"50" data-expected-height=
"10">XXXXX
</div>
93 <div class=
"firstRowThirdColumn sizedToGridArea" data-expected-width=
"30" data-expected-height=
"10">XXX
</div>
97 <div class=
"unconstrainedContainer">
98 <div class=
"grid calculatedSize">
99 <div class=
"firstRowFirstColumn sizedToGridArea" data-expected-width=
"80" data-expected-height=
"160">XX
</div>
100 <div class=
"firstRowSecondColumn sizedToGridArea" data-expected-width=
"200" data-expected-height=
"160">XXXXX
</div>
101 <div class=
"firstRowThirdColumn sizedToGridArea" data-expected-width=
"120" data-expected-height=
"160">XXX
</div>
105 <div class=
"indefiniteSize">
106 <div class=
"grid percentageSize">
107 <div class=
"firstRowFirstColumn sizedToGridArea" data-expected-width=
"20" data-expected-height=
"10">XX
</div>
108 <div class=
"firstRowSecondColumn sizedToGridArea" data-expected-width=
"50" data-expected-height=
"10">XXXXX
</div>
109 <div class=
"firstRowThirdColumn sizedToGridArea" data-expected-width=
"30" data-expected-height=
"10">XXX
</div>
113 <div class=
"unconstrainedContainer">
114 <div class=
"grid percentageSize">
115 <div class=
"firstRowFirstColumn sizedToGridArea" data-expected-width=
"100" data-expected-height=
"200">XX
</div>
116 <div class=
"firstRowSecondColumn sizedToGridArea" data-expected-width=
"250" data-expected-height=
"200">XXXXX
</div>
117 <div class=
"firstRowThirdColumn sizedToGridArea" data-expected-width=
"150" data-expected-height=
"200">XXX
</div>
121 <div class=
"indefiniteSize">
122 <div class=
"grid indefiniteSize">
123 <div class=
"firstRowFirstColumn sizedToGridArea" data-expected-width=
"20" data-expected-height=
"10">XX
</div>
124 <div class=
"firstRowSecondColumn sizedToGridArea" data-expected-width=
"50" data-expected-height=
"10">XXXXX
</div>
125 <div class=
"firstRowThirdColumn sizedToGridArea" data-expected-width=
"30" data-expected-height=
"10">XXX
</div>
129 <div class=
"unconstrainedContainer">
130 <div class=
"grid indefiniteSize">
131 <div class=
"firstRowFirstColumn sizedToGridArea" data-expected-width=
"20" data-expected-height=
"10">XX
</div>
132 <div class=
"firstRowSecondColumn sizedToGridArea" data-expected-width=
"50" data-expected-height=
"10">XXXXX
</div>
133 <div class=
"firstRowThirdColumn sizedToGridArea" data-expected-width=
"30" data-expected-height=
"10">XXX
</div>
137 <div class=
"indefiniteSize">
138 <div class=
"grid legacyIntrinsicSize">
139 <div class=
"firstRowFirstColumn sizedToGridArea" data-expected-width=
"20" data-expected-height=
"10">XX
</div>
140 <div class=
"firstRowSecondColumn sizedToGridArea" data-expected-width=
"50" data-expected-height=
"10">XXXXX
</div>
141 <div class=
"firstRowThirdColumn sizedToGridArea" data-expected-width=
"30" data-expected-height=
"10">XXX
</div>
145 <div class=
"unconstrainedContainer">
146 <div class=
"grid legacyIntrinsicSize">
147 <div class=
"firstRowFirstColumn sizedToGridArea" data-expected-width=
"20" data-expected-height=
"10">XX
</div>
148 <div class=
"firstRowSecondColumn sizedToGridArea" data-expected-width=
"50" data-expected-height=
"10">XXXXX
</div>
149 <div class=
"firstRowThirdColumn sizedToGridArea" data-expected-width=
"30" data-expected-height=
"10">XXX
</div>