4 <link href=
"resources/grid.css" rel=
"stylesheet">
7 grid-template-rows:
20px;
8 grid-template-columns:
10px;
13 grid-auto-columns:
50px;
17 grid-template-areas:
". ."
24 grid-auto-rows: minmax(
10%,
15px);
25 grid-auto-columns: minmax(
30%,
100px);
28 .gridAutoMinMaxContent {
29 grid-auto-rows: min-content;
30 grid-auto-columns: max-content;
34 <script src=
"../../resources/check-layout.js"></script>
35 <body onload=
"checkLayout('.grid');">
37 <div>This test checks that implicit rows / columns obey grid-auto-{rows|columns}.
</div>
39 <div class=
"unconstrainedContainer" style=
"position: relative">
40 <div class=
"grid gridAutoFixedFixed">
41 <div class=
"sizedToGridArea secondRowSecondColumn" data-offset-x=
"10" data-offset-y=
"20" data-expected-width=
"50" data-expected-height=
"30">XXXXX XXXXXX
</div>
45 <div class=
"unconstrainedContainer" style=
"position: relative">
46 <div class=
"grid gridAutoMinMax">
47 <div class=
"sizedToGridArea secondRowSecondColumn" data-offset-x=
"10" data-offset-y=
"20" data-expected-width=
"300" data-expected-height=
"100">XXXXX XXXXXX
</div>
51 <div class=
"unconstrainedContainer" style=
"position: relative">
52 <div class=
"grid gridAutoMinMaxContent">
53 <div class=
"sizedToGridArea secondRowSecondColumn" data-offset-x=
"10" data-offset-y=
"20" data-expected-width=
"120" data-expected-height=
"10">XXXXX XXXXXX
</div>
57 <div class=
"unconstrainedContainer" style=
"position: relative">
58 <div class=
"grid gridAutoFixedFixed gridAreas">
59 <div style=
"grid-area: placeholder;" class=
"sizedToGridArea" data-offset-x=
"10" data-offset-y=
"20" data-expected-width=
"50" data-expected-height=
"30">XXXXX XXXXXX
</div>