OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <link href="resources/grid.css" rel="stylesheet"> | 3 <link href="resources/grid.css" rel="stylesheet"> |
4 <style> | 4 <style> |
5 .onlyColumnFractionFlexFactors { | 5 .onlyColumnFractionFlexFactors { |
6 grid-template-columns: minmax(0,0.1fr) minmax(0,0.2fr) minmax(0,0.3fr); | 6 grid-template-columns: minmax(0,0.1fr) minmax(0,0.2fr) minmax(0,0.3fr); |
7 grid-template-rows: 50px; | 7 grid-template-rows: 50px; |
8 width: 100px; | 8 width: 100px; |
9 } | 9 } |
10 .onlyRowFractionFlexFactors { | 10 .onlyRowFractionFlexFactors { |
11 grid-template-columns: 50px; | 11 grid-template-columns: 50px; |
12 grid-template-rows: minmax(0,0.1fr) minmax(0,0.2fr) minmax(0,0.3fr); | 12 grid-template-rows: minmax(0,0.1fr) minmax(0,0.2fr) minmax(0,0.3fr); |
13 width: 50px; | 13 width: 50px; |
14 height: 100px; | 14 height: 100px; |
15 } | 15 } |
16 .fixedAndfractionFlexFactors { | 16 .fixedAndfractionFlexFactors { |
17 grid-template-columns: 50px minmax(0,0.2fr) 30px; | 17 grid-template-columns: 50px minmax(0,0.2fr) 30px; |
18 grid-template-rows: minmax(0,0.1fr) 50px minmax(0,0.3fr); | 18 grid-template-rows: minmax(0,0.1fr) 50px minmax(0,0.3fr); |
19 width: 100px; | 19 width: 100px; |
20 height: 100px; | 20 height: 100px; |
21 } | 21 } |
| 22 .zeroValueFlexFactor { |
| 23 grid-template-columns: .0fr .2fr .3fr; |
| 24 grid-template-rows: 50px; |
| 25 width: 100px; |
| 26 } |
22 .firstRowThirdColumn { | 27 .firstRowThirdColumn { |
23 background-color: yellow; | 28 background-color: yellow; |
24 grid-column: 3; | 29 grid-column: 3; |
25 grid-row: 1; | 30 grid-row: 1; |
26 } | 31 } |
27 .secondRowThirdColumn { | 32 .secondRowThirdColumn { |
28 background-color: yellow; | 33 background-color: yellow; |
29 grid-column: 3; | 34 grid-column: 3; |
30 grid-row: 2; | 35 grid-row: 2; |
31 } | 36 } |
(...skipping 23 matching lines...) Expand all Loading... |
55 | 60 |
56 <div style="position: relative;"> | 61 <div style="position: relative;"> |
57 <div class="grid onlyRowFractionFlexFactors"> | 62 <div class="grid onlyRowFractionFlexFactors"> |
58 <div class="firstRowFirstColumn" data-expected-width="50" data-expected-
height="10"></div> | 63 <div class="firstRowFirstColumn" data-expected-width="50" data-expected-
height="10"></div> |
59 <div class="secondRowFirstColumn" data-expected-width="50" data-expected
-height="20"></div> | 64 <div class="secondRowFirstColumn" data-expected-width="50" data-expected
-height="20"></div> |
60 <div class="thirdRowFirstColumn" data-expected-width="50" data-expected-
height="30"></div> | 65 <div class="thirdRowFirstColumn" data-expected-width="50" data-expected-
height="30"></div> |
61 </div> | 66 </div> |
62 </div> | 67 </div> |
63 | 68 |
64 <div style="position: relative;"> | 69 <div style="position: relative;"> |
| 70 <div class="grid zeroValueFlexFactor"> |
| 71 <div class="firstRowFirstColumn" data-expected-width="0" data-expected-h
eight="50"></div> |
| 72 <div class="firstRowSecondColumn" data-expected-width="20" data-expected
-height="50"></div> |
| 73 <div class="firstRowThirdColumn" data-expected-width="30" data-expected-
height="50"></div> |
| 74 </div> |
| 75 </div> |
| 76 |
| 77 <div style="position: relative;"> |
65 <div class="grid fixedAndfractionFlexFactors"> | 78 <div class="grid fixedAndfractionFlexFactors"> |
66 <div class="firstRowFirstColumn" data-expected-width="50" data-expected-
height="5"></div> | 79 <div class="firstRowFirstColumn" data-expected-width="50" data-expected-
height="5"></div> |
67 <div class="firstRowSecondColumn" data-expected-width="4" data-expected-
height="5"></div> | 80 <div class="firstRowSecondColumn" data-expected-width="4" data-expected-
height="5"></div> |
68 <div class="firstRowThirdColumn" data-expected-width="30" data-expected-
height="5"></div> | 81 <div class="firstRowThirdColumn" data-expected-width="30" data-expected-
height="5"></div> |
69 <div class="secondRowFirstColumn" data-expected-width="50" data-expected
-height="50"></div> | 82 <div class="secondRowFirstColumn" data-expected-width="50" data-expected
-height="50"></div> |
70 <div class="secondRowSecondColumn" data-expected-width="4" data-expected
-height="50"></div> | 83 <div class="secondRowSecondColumn" data-expected-width="4" data-expected
-height="50"></div> |
71 <div class="secondRowThirdColumn" data-expected-width="30" data-expected
-height="50"></div> | 84 <div class="secondRowThirdColumn" data-expected-width="30" data-expected
-height="50"></div> |
72 <div class="thirdRowFirstColumn" data-expected-width="50" data-expected-
height="15"></div> | 85 <div class="thirdRowFirstColumn" data-expected-width="50" data-expected-
height="15"></div> |
73 <div class="thirdRowSecondColumn" data-expected-width="4" data-expected-
height="15"></div> | 86 <div class="thirdRowSecondColumn" data-expected-width="4" data-expected-
height="15"></div> |
74 <div class="thirdRowThirdColumn" data-expected-width="30" data-expected-
height="15"></div> | 87 <div class="thirdRowThirdColumn" data-expected-width="30" data-expected-
height="15"></div> |
75 </div> | 88 </div> |
76 </div> | 89 </div> |
77 | 90 |
78 </body> | 91 </body> |
79 </html> | 92 </html> |
80 | 93 |
81 | 94 |
OLD | NEW |