Commit 3741d30
committed
LibWeb: Support percentage values in min/max flex item size constraints
Originally, 7200b3a introduced a two-pass system to determine
hypothetical cross sizes. Later, this was partially reverted in
0084d99, but some code was left behind that caused resolution of
percentages in `{min/max}-{width/height}` size constraints not to work.
Through intrinsic sizing, we can potentially end up with a definite
available space for the items in the last FC run. At that point we
should be able to resolve percentages against the available space, but
we were never doing that.1 parent 4ff17fc commit 3741d30
File tree
5 files changed
+47
-24
lines changed- Libraries/LibWeb/Layout
- Tests/LibWeb/Layout
- expected/flex
- input/flex
5 files changed
+47
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
159 | | - | |
160 | | - | |
| 158 | + | |
| 159 | + | |
161 | 160 | | |
162 | 161 | | |
163 | 162 | | |
| |||
1133 | 1132 | | |
1134 | 1133 | | |
1135 | 1134 | | |
1136 | | - | |
1137 | | - | |
| 1135 | + | |
| 1136 | + | |
1138 | 1137 | | |
1139 | | - | |
1140 | | - | |
1141 | | - | |
| 1138 | + | |
| 1139 | + | |
1142 | 1140 | | |
1143 | 1141 | | |
1144 | | - | |
1145 | 1142 | | |
1146 | | - | |
1147 | | - | |
| 1143 | + | |
| 1144 | + | |
1148 | 1145 | | |
1149 | 1146 | | |
1150 | 1147 | | |
1151 | | - | |
1152 | | - | |
1153 | | - | |
1154 | | - | |
1155 | | - | |
1156 | | - | |
1157 | 1148 | | |
1158 | 1149 | | |
1159 | 1150 | | |
| |||
1946 | 1937 | | |
1947 | 1938 | | |
1948 | 1939 | | |
1949 | | - | |
1950 | | - | |
1951 | | - | |
| 1940 | + | |
| 1941 | + | |
1952 | 1942 | | |
1953 | 1943 | | |
1954 | 1944 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
| 187 | + | |
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | | - | |
44 | | - | |
45 | 43 | | |
46 | 44 | | |
47 | 45 | | |
| |||
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
0 commit comments