4 <link href=
"resources/grid.css" rel=
"stylesheet">
7 /* Give an explicit size to the grid so that percentage grid tracks have a consistent resolution */
27 grid-template-columns:
7px
11px;
28 grid-template-rows:
17px
2px;
32 grid-template-columns:
53%
99%;
33 grid-template-rows:
27%
52%;
36 grid-template-columns: auto auto;
37 grid-template-rows: auto auto;
40 grid-template-columns:
10em
12em;
41 grid-template-rows:
15em
17em;
44 .gridWithNoneAndAuto {
45 grid-template-columns: none auto;
46 grid-template-rows: none auto;
48 .gridNoneWithAndFixed {
49 grid-template-columns: none
15px;
50 grid-template-rows: none
22px;
53 grid-template-columns:
15px auto
10em;
54 grid-template-rows:
12em
18px auto;
57 .gridWithPercentAndViewportPercent {
58 grid-template-columns:
50%
15vw;
59 grid-template-rows:
35%
28vh;
61 .gridWithFitContentAndFitAvailable {
62 grid-template-columns: -webkit-content-available;
63 grid-template-rows: -webkit-fit-content -webkit-fit-available;
65 .gridWithMinMaxContent {
66 grid-template-columns: min-content max-content;
67 grid-template-rows: max-content min-content;
69 .gridWithMinMaxAndFixed {
70 grid-template-columns: minmax(
45px,
30%)
15px;
71 grid-template-rows:
12em minmax(
35%,
10px);
74 .gridWithMinMaxAndMinMaxContent {
75 grid-template-columns: minmax(min-content,
30%)
15px;
76 grid-template-rows:
12em minmax(
35%, max-content);
79 .gridWithFractionFraction {
80 grid-template-columns:
2fr
3fr;
81 grid-template-rows:
3fr
5fr;
83 .gridWithFractionMinMax {
84 grid-template-columns: minmax(min-content,
45px)
2fr;
85 grid-template-rows:
3fr minmax(
14px, max-content);
88 grid-template-columns: calc(
200px) calc(
10em);
89 grid-template-rows: calc(
15em) calc(
75px);
92 .gridWithCalcAndFixed {
93 grid-template-columns: calc(
50%)
8em;
94 grid-template-rows:
88px calc(
25%);
97 .gridWithCalcAndMinMax {
98 grid-template-columns: calc(
30px +
20%) minmax(min-content,
80px);
99 grid-template-rows: minmax(
25%, max-content) calc(
10% -
7px);
101 .gridWithCalcInsideMinMax {
102 grid-template-columns: minmax(calc(
23px +
10%),
400px)
12em;
103 grid-template-rows: calc(
150px) minmax(
5%, calc(
50% -
125px));
106 .gridWithAutoInsideMinMax {
107 grid-template-columns: minmax(auto, min-content)
30px;
108 grid-template-rows: calc(
100px +
2em) minmax(
10%, auto);
111 <script src=
"../../resources/js-test.js"></script>
114 <div class=
"grid gridWithFixed" id=
"gridWithFixedElement"></div>
115 <div class=
"grid gridWithPercent" id=
"gridWithPercentElement"></div>
116 <div class=
"indefiniteSizeGrid gridWithPercent" id=
"gridWithPercentWithoutSize">
117 <div class=
"gridItem"></div>
119 <div class=
"grid gridWithAuto" id=
"gridWithAutoElement">
120 <div class=
"gridItem2"></div>
122 <div class=
"grid gridWithEM" id=
"gridWithEMElement"></div>
123 <div class=
"grid gridWithNoneAndAuto" id=
"gridWithNoneAndAuto"></div>
124 <div class=
"grid gridWithNoneAndFixed" id=
"gridWithNoneAndFixed"></div>
125 <div class=
"grid gridWithThreeItems" id=
"gridWithThreeItems"></div>
126 <div class=
"grid gridWithPercentAndViewportPercent" id=
"gridWithPercentAndViewportPercent"></div>
127 <div class=
"grid gridWithFitContentAndFitAvailable" id=
"gridWithFitContentAndFitAvailable"></div>
128 <div class=
"grid gridWithMinMaxContent" id=
"gridWithMinMaxContent"></div>
129 <div class=
"grid gridWithMinMaxContent" id=
"gridWithMinMaxContentWithChildrenElement">
130 <div class=
"gridItem"></div>
131 <div class=
"gridItem2"></div>
133 <div class=
"grid gridWithMinMaxAndFixed" id=
"gridWithMinMaxAndFixed"></div>
134 <div class=
"grid gridWithMinMaxAndMinMaxContent" id=
"gridWithMinMaxAndMinMaxContent"></div>
135 <div class=
"grid gridWithFractionFraction" id=
"gridWithFractionFraction"></div>
136 <div class=
"grid gridWithFractionMinMax" id=
"gridWithFractionMinMax"></div>
137 <div class=
"grid gridWithCalcCalc" id=
"gridWithCalcCalc"></div>
138 <div class=
"grid gridWithCalcAndFixed" id=
"gridWithCalcAndFixed"></div>
139 <div class=
"grid gridWithCalcAndMinMax" id=
"gridWithCalcAndMinMax"></div>
140 <div class=
"grid gridWithCalcInsideMinMax" id=
"gridWithCalcInsideMinMax"></div>
141 <div class=
"grid gridWithAutoInsideMinMax" id=
"gridWithAutoInsideMinMax"></div>
142 <script src=
"resources/grid-definitions-parsing-utils.js"></script>
143 <script src=
"resources/grid-columns-rows-get-set-multiple.js"></script>