OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <link href="resources/grid.css" rel="stylesheet"> | 4 <link href="resources/grid.css" rel="stylesheet"> |
5 <style> | 5 <style> |
6 .grid { | 6 .grid { |
7 /* Give an explicit size to the grid so that percentage grid tracks have a c
onsistent resolution */ | 7 /* Give an explicit size to the grid so that percentage grid tracks have a c
onsistent resolution */ |
8 width: 800px; | 8 width: 800px; |
9 height: 600px; | 9 height: 600px; |
10 } | 10 } |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 grid-definition-rows: min-content; | 62 grid-definition-rows: min-content; |
63 } | 63 } |
64 .gridWithMaxContent { | 64 .gridWithMaxContent { |
65 grid-definition-columns: max-content; | 65 grid-definition-columns: max-content; |
66 grid-definition-rows: max-content; | 66 grid-definition-rows: max-content; |
67 } | 67 } |
68 .gridWithFraction { | 68 .gridWithFraction { |
69 grid-definition-columns: 1fr; | 69 grid-definition-columns: 1fr; |
70 grid-definition-rows: 2fr; | 70 grid-definition-rows: 2fr; |
71 } | 71 } |
| 72 .gridWithCalc { |
| 73 grid-definition-columns: calc(150px); |
| 74 grid-definition-rows: calc(75px); |
| 75 } |
| 76 .gridWithCalcComplex { |
| 77 grid-definition-columns: calc(50% + 150px); |
| 78 grid-definition-rows: calc(65% + 75px); |
| 79 } |
| 80 .gridWithCalcInsideMinMax { |
| 81 grid-definition-columns: minmax(10%, calc(15px)); |
| 82 grid-definition-rows: minmax(calc(20px), 50%); |
| 83 } |
| 84 .gridWithCalcComplexInsideMinMax { |
| 85 grid-definition-columns: minmax(10%, calc(50% + 15px)); |
| 86 grid-definition-rows: minmax(calc(20px + 10%), 50%); |
| 87 } |
72 </style> | 88 </style> |
73 <script src="../../resources/js-test.js"></script> | 89 <script src="../../resources/js-test.js"></script> |
74 </head> | 90 </head> |
75 <body> | 91 <body> |
76 <div class="grid gridWithNone" id="gridWithNoneElement"></div> | 92 <div class="grid gridWithNone" id="gridWithNoneElement"></div> |
77 <div class="grid gridWithFixed" id="gridWithFixedElement"></div> | 93 <div class="grid gridWithFixed" id="gridWithFixedElement"></div> |
78 <div class="grid gridWithPercent" id="gridWithPercentElement"></div> | 94 <div class="grid gridWithPercent" id="gridWithPercentElement"></div> |
79 <div class="grid gridWithAuto" id="gridWithAutoElement"></div> | 95 <div class="grid gridWithAuto" id="gridWithAutoElement"></div> |
80 <div class="grid gridWithAuto" id="gridWithAutoWithoutSizeElement"></div> | 96 <div class="grid gridWithAuto" id="gridWithAutoWithoutSizeElement"></div> |
81 <div class="grid gridWithAuto fontSpec" id="gridWithAutoWithChildrenElement"> | 97 <div class="grid gridWithAuto fontSpec" id="gridWithAutoWithChildrenElement"> |
82 <div class="gridItem"></div> | 98 <div class="gridItem"></div> |
83 </div> | 99 </div> |
84 <div class="grid gridWithEM" id="gridWithEMElement"></div> | 100 <div class="grid gridWithEM" id="gridWithEMElement"></div> |
85 <div class="grid gridWithViewPortPercentage" id="gridWithViewPortPercentageEleme
nt"></div> | 101 <div class="grid gridWithViewPortPercentage" id="gridWithViewPortPercentageEleme
nt"></div> |
86 <div class="grid gridWithFitContent" id="gridWithFitContentElement"></div> | 102 <div class="grid gridWithFitContent" id="gridWithFitContentElement"></div> |
87 <div class="grid gridWithFitAvailable" id="gridWithFitAvailableElement"></div> | 103 <div class="grid gridWithFitAvailable" id="gridWithFitAvailableElement"></div> |
88 <div class="grid gridWithMinMax" id="gridWithMinMaxElement"></div> | 104 <div class="grid gridWithMinMax" id="gridWithMinMaxElement"></div> |
89 <div class="grid gridWithMinContent" id="gridWithMinContentElement"></div> | 105 <div class="grid gridWithMinContent" id="gridWithMinContentElement"></div> |
90 <div class="grid gridWithMinContent" id="gridWithMinContentWithChildrenElement"> | 106 <div class="grid gridWithMinContent" id="gridWithMinContentWithChildrenElement"> |
91 <div class="gridItem"></div> | 107 <div class="gridItem"></div> |
92 <div class="gridItem2"></div> | 108 <div class="gridItem2"></div> |
93 </div> | 109 </div> |
94 <div class="grid gridWithMaxContent" id="gridWithMaxContentElement"></div> | 110 <div class="grid gridWithMaxContent" id="gridWithMaxContentElement"></div> |
95 <div class="grid gridWithMaxContent" id="gridWithMaxContentWithChildrenElement"> | 111 <div class="grid gridWithMaxContent" id="gridWithMaxContentWithChildrenElement"> |
96 <div class="gridItem"></div> | 112 <div class="gridItem"></div> |
97 <div class="gridItem2"></div> | 113 <div class="gridItem2"></div> |
98 </div> | 114 </div> |
99 <div class="grid gridWithFraction" id="gridWithFractionElement"></div> | 115 <div class="grid gridWithFraction" id="gridWithFractionElement"></div> |
| 116 <div class="grid gridWithCalc" id="gridWithCalcElement"></div> |
| 117 <div class="grid gridWithCalcComplex" id="gridWithCalcComplexElement"></div> |
| 118 <div class="grid gridWithCalcInsideMinMax" id="gridWithCalcInsideMinMaxElement">
</div> |
| 119 <div class="grid gridWithCalcComplexInsideMinMax" id="gridWithCalcComplexInsideM
inMaxElement"></div> |
100 <script src="resources/grid-definitions-parsing-utils.js"></script> | 120 <script src="resources/grid-definitions-parsing-utils.js"></script> |
101 <script src="resources/grid-columns-rows-get-set.js"></script> | 121 <script src="resources/grid-columns-rows-get-set.js"></script> |
102 </body> | 122 </body> |
103 </html> | 123 </html> |
OLD | NEW |