Skip to content

Truly independent web browser

LibWeb: Treat calc() main sizes of indefinite percentages as content

Andreas Kling6fd72acf51cd
diff --git a/Libraries/LibWeb/Rust/src/layout/flex_formatting_context.rs b/Libraries/LibWeb/Rust/src/layout/flex_formatting_context.rs
index c8877de5b55..6c3d0e5541b 100644
--- a/Libraries/LibWeb/Rust/src/layout/flex_formatting_context.rs
+++ b/Libraries/LibWeb/Rust/src/layout/flex_formatting_context.rs
@@ -835,7 +835,10 @@ impl<'pass> FlexFormattingContext<'pass> {
// For example, percentage values of flex-basis are resolved against the flex item’s containing block
// (i.e. its flex container); and if that containing block’s size is indefinite,
// the used value for flex-basis is content.
- if value.is_percentage() && !self.has_definite_main_size_used(self.container_used()) {
+ // NB: A main size property that contains a percentage of an indefinite size behaves as auto, as in block layout.
+ let percentage_is_unresolvable =
+ value.is_percentage() || (property != SizingProperty::FlexBasis && value.contains_percentage());
+ if percentage_is_unresolvable && !self.has_definite_main_size_used(self.container_used()) {
return UsedFlexBasis::Content;
}
UsedFlexBasis::Size { value, property }
diff --git a/Tests/LibWeb/Text/expected/css/aspect-ratio-percentage-height-matrix.txt b/Tests/LibWeb/Text/expected/css/aspect-ratio-percentage-height-matrix.txt
index 6b1f4d8222a..70a802f8253 100644
--- a/Tests/LibWeb/Text/expected/css/aspect-ratio-percentage-height-matrix.txt
+++ b/Tests/LibWeb/Text/expected/css/aspect-ratio-percentage-height-matrix.txt
@@ -2022,14 +2022,14 @@ flex-column block width=auto height=100% tall none: 10x5 child=0
flex-column block width=auto height=100% tall max-height: 10x5 child=0
flex-column block width=auto height=100% tall min-height: 120x60 child=0
flex-column block width=auto height=100% tall padding: 30x15 child=0
-flex-column block width=auto height=calc empty none: 200x100 child=0
-flex-column block width=auto height=calc empty max-height: 60x30 child=0
-flex-column block width=auto height=calc empty min-height: 200x100 child=0
-flex-column block width=auto height=calc empty padding: 220x110 child=0
-flex-column block width=auto height=calc tall none: 200x100 child=0
-flex-column block width=auto height=calc tall max-height: 60x30 child=0
-flex-column block width=auto height=calc tall min-height: 200x100 child=0
-flex-column block width=auto height=calc tall padding: 220x110 child=0
+flex-column block width=auto height=calc empty none: 0x0 child=0
+flex-column block width=auto height=calc empty max-height: 0x0 child=0
+flex-column block width=auto height=calc empty min-height: 120x60 child=0
+flex-column block width=auto height=calc empty padding: 20x10 child=0
+flex-column block width=auto height=calc tall none: 10x5 child=0
+flex-column block width=auto height=calc tall max-height: 10x5 child=0
+flex-column block width=auto height=calc tall min-height: 120x60 child=0
+flex-column block width=auto height=calc tall padding: 30x15 child=0
flex-column block width=auto height=auto empty none: 0x0 child=0
flex-column block width=auto height=auto empty max-height: 0x0 child=0
flex-column block width=auto height=auto empty min-height: 120x60 child=0
@@ -2046,14 +2046,14 @@ flex-column block width=80px height=100% tall none: 80x40 child=20
flex-column block width=80px height=100% tall max-height: 80x30 child=15
flex-column block width=80px height=100% tall min-height: 80x60 child=30
flex-column block width=80px height=100% tall padding: 80x45 child=17.5
-flex-column block width=80px height=calc empty none: 80x100 child=0
-flex-column block width=80px height=calc empty max-height: 80x30 child=0
-flex-column block width=80px height=calc empty min-height: 80x100 child=0
-flex-column block width=80px height=calc empty padding: 80x110 child=0
-flex-column block width=80px height=calc tall none: 80x100 child=0
-flex-column block width=80px height=calc tall max-height: 80x30 child=0
-flex-column block width=80px height=calc tall min-height: 80x100 child=0
-flex-column block width=80px height=calc tall padding: 80x110 child=0
+flex-column block width=80px height=calc empty none: 80x40 child=20
+flex-column block width=80px height=calc empty max-height: 80x30 child=15
+flex-column block width=80px height=calc empty min-height: 80x60 child=30
+flex-column block width=80px height=calc empty padding: 80x45 child=17.5
+flex-column block width=80px height=calc tall none: 80x40 child=20
+flex-column block width=80px height=calc tall max-height: 80x30 child=15
+flex-column block width=80px height=calc tall min-height: 80x60 child=30
+flex-column block width=80px height=calc tall padding: 80x45 child=17.5
flex-column block width=80px height=auto empty none: 80x40 child=20
flex-column block width=80px height=auto empty max-height: 80x30 child=15
flex-column block width=80px height=auto empty min-height: 80x60 child=30
@@ -2070,14 +2070,14 @@ flex-column block width=50% height=100% tall none: 100x50 child=25
flex-column block width=50% height=100% tall max-height: 100x30 child=15
flex-column block width=50% height=100% tall min-height: 100x60 child=30
flex-column block width=50% height=100% tall padding: 100x55 child=22.5
-flex-column block width=50% height=calc empty none: 100x100 child=0
-flex-column block width=50% height=calc empty max-height: 100x30 child=0
-flex-column block width=50% height=calc empty min-height: 100x100 child=0
-flex-column block width=50% height=calc empty padding: 100x110 child=0
-flex-column block width=50% height=calc tall none: 100x100 child=0
-flex-column block width=50% height=calc tall max-height: 100x30 child=0
-flex-column block width=50% height=calc tall min-height: 100x100 child=0
-flex-column block width=50% height=calc tall padding: 100x110 child=0
+flex-column block width=50% height=calc empty none: 100x50 child=25
+flex-column block width=50% height=calc empty max-height: 100x30 child=15
+flex-column block width=50% height=calc empty min-height: 100x60 child=30
+flex-column block width=50% height=calc empty padding: 100x55 child=22.5
+flex-column block width=50% height=calc tall none: 100x50 child=25
+flex-column block width=50% height=calc tall max-height: 100x30 child=15
+flex-column block width=50% height=calc tall min-height: 100x60 child=30
+flex-column block width=50% height=calc tall padding: 100x55 child=22.5
flex-column block width=50% height=auto empty none: 100x50 child=25
flex-column block width=50% height=auto empty max-height: 100x30 child=15
flex-column block width=50% height=auto empty min-height: 100x60 child=30
@@ -2094,14 +2094,14 @@ flex-column flow-root width=auto height=100% tall none: 10x5 child=0
flex-column flow-root width=auto height=100% tall max-height: 10x5 child=0
flex-column flow-root width=auto height=100% tall min-height: 120x60 child=0
flex-column flow-root width=auto height=100% tall padding: 30x15 child=0
-flex-column flow-root width=auto height=calc empty none: 200x100 child=0
-flex-column flow-root width=auto height=calc empty max-height: 60x30 child=0
-flex-column flow-root width=auto height=calc empty min-height: 200x100 child=0
-flex-column flow-root width=auto height=calc empty padding: 220x110 child=0
-flex-column flow-root width=auto height=calc tall none: 200x100 child=0
-flex-column flow-root width=auto height=calc tall max-height: 60x30 child=0
-flex-column flow-root width=auto height=calc tall min-height: 200x100 child=0
-flex-column flow-root width=auto height=calc tall padding: 220x110 child=0
+flex-column flow-root width=auto height=calc empty none: 0x0 child=0
+flex-column flow-root width=auto height=calc empty max-height: 0x0 child=0
+flex-column flow-root width=auto height=calc empty min-height: 120x60 child=0
+flex-column flow-root width=auto height=calc empty padding: 20x10 child=0
+flex-column flow-root width=auto height=calc tall none: 10x5 child=0
+flex-column flow-root width=auto height=calc tall max-height: 10x5 child=0
+flex-column flow-root width=auto height=calc tall min-height: 120x60 child=0
+flex-column flow-root width=auto height=calc tall padding: 30x15 child=0
flex-column flow-root width=auto height=auto empty none: 0x0 child=0
flex-column flow-root width=auto height=auto empty max-height: 0x0 child=0
flex-column flow-root width=auto height=auto empty min-height: 120x60 child=0
@@ -2118,14 +2118,14 @@ flex-column flow-root width=80px height=100% tall none: 80x40 child=20
flex-column flow-root width=80px height=100% tall max-height: 80x30 child=15
flex-column flow-root width=80px height=100% tall min-height: 80x60 child=30
flex-column flow-root width=80px height=100% tall padding: 80x45 child=17.5
-flex-column flow-root width=80px height=calc empty none: 80x100 child=0
-flex-column flow-root width=80px height=calc empty max-height: 80x30 child=0
-flex-column flow-root width=80px height=calc empty min-height: 80x100 child=0
-flex-column flow-root width=80px height=calc empty padding: 80x110 child=0
-flex-column flow-root width=80px height=calc tall none: 80x100 child=0
-flex-column flow-root width=80px height=calc tall max-height: 80x30 child=0
-flex-column flow-root width=80px height=calc tall min-height: 80x100 child=0
-flex-column flow-root width=80px height=calc tall padding: 80x110 child=0
+flex-column flow-root width=80px height=calc empty none: 80x40 child=20
+flex-column flow-root width=80px height=calc empty max-height: 80x30 child=15
+flex-column flow-root width=80px height=calc empty min-height: 80x60 child=30
+flex-column flow-root width=80px height=calc empty padding: 80x45 child=17.5
+flex-column flow-root width=80px height=calc tall none: 80x40 child=20
+flex-column flow-root width=80px height=calc tall max-height: 80x30 child=15
+flex-column flow-root width=80px height=calc tall min-height: 80x60 child=30
+flex-column flow-root width=80px height=calc tall padding: 80x45 child=17.5
flex-column flow-root width=80px height=auto empty none: 80x40 child=20
flex-column flow-root width=80px height=auto empty max-height: 80x30 child=15
flex-column flow-root width=80px height=auto empty min-height: 80x60 child=30
@@ -2142,14 +2142,14 @@ flex-column flow-root width=50% height=100% tall none: 100x50 child=25
flex-column flow-root width=50% height=100% tall max-height: 100x30 child=15
flex-column flow-root width=50% height=100% tall min-height: 100x60 child=30
flex-column flow-root width=50% height=100% tall padding: 100x55 child=22.5
-flex-column flow-root width=50% height=calc empty none: 100x100 child=0
-flex-column flow-root width=50% height=calc empty max-height: 100x30 child=0
-flex-column flow-root width=50% height=calc empty min-height: 100x100 child=0
-flex-column flow-root width=50% height=calc empty padding: 100x110 child=0
-flex-column flow-root width=50% height=calc tall none: 100x100 child=0
-flex-column flow-root width=50% height=calc tall max-height: 100x30 child=0
-flex-column flow-root width=50% height=calc tall min-height: 100x100 child=0
-flex-column flow-root width=50% height=calc tall padding: 100x110 child=0
+flex-column flow-root width=50% height=calc empty none: 100x50 child=25
+flex-column flow-root width=50% height=calc empty max-height: 100x30 child=15
+flex-column flow-root width=50% height=calc empty min-height: 100x60 child=30
+flex-column flow-root width=50% height=calc empty padding: 100x55 child=22.5
+flex-column flow-root width=50% height=calc tall none: 100x50 child=25
+flex-column flow-root width=50% height=calc tall max-height: 100x30 child=15
+flex-column flow-root width=50% height=calc tall min-height: 100x60 child=30
+flex-column flow-root width=50% height=calc tall padding: 100x55 child=22.5
flex-column flow-root width=50% height=auto empty none: 100x50 child=25
flex-column flow-root width=50% height=auto empty max-height: 100x30 child=15
flex-column flow-root width=50% height=auto empty min-height: 100x60 child=30
@@ -2166,14 +2166,14 @@ flex-column inline-block width=auto height=100% tall none: 10x5 child=0
flex-column inline-block width=auto height=100% tall max-height: 10x5 child=0
flex-column inline-block width=auto height=100% tall min-height: 120x60 child=0
flex-column inline-block width=auto height=100% tall padding: 30x15 child=0
-flex-column inline-block width=auto height=calc empty none: 200x100 child=0
-flex-column inline-block width=auto height=calc empty max-height: 60x30 child=0
-flex-column inline-block width=auto height=calc empty min-height: 200x100 child=0
-flex-column inline-block width=auto height=calc empty padding: 220x110 child=0
-flex-column inline-block width=auto height=calc tall none: 200x100 child=0
-flex-column inline-block width=auto height=calc tall max-height: 60x30 child=0
-flex-column inline-block width=auto height=calc tall min-height: 200x100 child=0
-flex-column inline-block width=auto height=calc tall padding: 220x110 child=0
+flex-column inline-block width=auto height=calc empty none: 0x0 child=0
+flex-column inline-block width=auto height=calc empty max-height: 0x0 child=0
+flex-column inline-block width=auto height=calc empty min-height: 120x60 child=0
+flex-column inline-block width=auto height=calc empty padding: 20x10 child=0
+flex-column inline-block width=auto height=calc tall none: 10x5 child=0
+flex-column inline-block width=auto height=calc tall max-height: 10x5 child=0
+flex-column inline-block width=auto height=calc tall min-height: 120x60 child=0
+flex-column inline-block width=auto height=calc tall padding: 30x15 child=0
flex-column inline-block width=auto height=auto empty none: 0x0 child=0
flex-column inline-block width=auto height=auto empty max-height: 0x0 child=0
flex-column inline-block width=auto height=auto empty min-height: 120x60 child=0
@@ -2190,14 +2190,14 @@ flex-column inline-block width=80px height=100% tall none: 80x40 child=20
flex-column inline-block width=80px height=100% tall max-height: 80x30 child=15
flex-column inline-block width=80px height=100% tall min-height: 80x60 child=30
flex-column inline-block width=80px height=100% tall padding: 80x45 child=17.5
-flex-column inline-block width=80px height=calc empty none: 80x100 child=0
-flex-column inline-block width=80px height=calc empty max-height: 80x30 child=0
-flex-column inline-block width=80px height=calc empty min-height: 80x100 child=0
-flex-column inline-block width=80px height=calc empty padding: 80x110 child=0
-flex-column inline-block width=80px height=calc tall none: 80x100 child=0
-flex-column inline-block width=80px height=calc tall max-height: 80x30 child=0
-flex-column inline-block width=80px height=calc tall min-height: 80x100 child=0
-flex-column inline-block width=80px height=calc tall padding: 80x110 child=0
+flex-column inline-block width=80px height=calc empty none: 80x40 child=20
+flex-column inline-block width=80px height=calc empty max-height: 80x30 child=15
+flex-column inline-block width=80px height=calc empty min-height: 80x60 child=30
+flex-column inline-block width=80px height=calc empty padding: 80x45 child=17.5
+flex-column inline-block width=80px height=calc tall none: 80x40 child=20
+flex-column inline-block width=80px height=calc tall max-height: 80x30 child=15
+flex-column inline-block width=80px height=calc tall min-height: 80x60 child=30
+flex-column inline-block width=80px height=calc tall padding: 80x45 child=17.5
flex-column inline-block width=80px height=auto empty none: 80x40 child=20
flex-column inline-block width=80px height=auto empty max-height: 80x30 child=15
flex-column inline-block width=80px height=auto empty min-height: 80x60 child=30
@@ -2214,14 +2214,14 @@ flex-column inline-block width=50% height=100% tall none: 100x50 child=25
flex-column inline-block width=50% height=100% tall max-height: 100x30 child=15
flex-column inline-block width=50% height=100% tall min-height: 100x60 child=30
flex-column inline-block width=50% height=100% tall padding: 100x55 child=22.5
-flex-column inline-block width=50% height=calc empty none: 100x100 child=0
-flex-column inline-block width=50% height=calc empty max-height: 100x30 child=0
-flex-column inline-block width=50% height=calc empty min-height: 100x100 child=0
-flex-column inline-block width=50% height=calc empty padding: 100x110 child=0
-flex-column inline-block width=50% height=calc tall none: 100x100 child=0
-flex-column inline-block width=50% height=calc tall max-height: 100x30 child=0
-flex-column inline-block width=50% height=calc tall min-height: 100x100 child=0
-flex-column inline-block width=50% height=calc tall padding: 100x110 child=0
+flex-column inline-block width=50% height=calc empty none: 100x50 child=25
+flex-column inline-block width=50% height=calc empty max-height: 100x30 child=15
+flex-column inline-block width=50% height=calc empty min-height: 100x60 child=30
+flex-column inline-block width=50% height=calc empty padding: 100x55 child=22.5
+flex-column inline-block width=50% height=calc tall none: 100x50 child=25
+flex-column inline-block width=50% height=calc tall max-height: 100x30 child=15
+flex-column inline-block width=50% height=calc tall min-height: 100x60 child=30
+flex-column inline-block width=50% height=calc tall padding: 100x55 child=22.5
flex-column inline-block width=50% height=auto empty none: 100x50 child=25
flex-column inline-block width=50% height=auto empty max-height: 100x30 child=15
flex-column inline-block width=50% height=auto empty min-height: 100x60 child=30
@@ -2238,14 +2238,14 @@ flex-column float width=auto height=100% tall none: 10x5 child=0
flex-column float width=auto height=100% tall max-height: 10x5 child=0
flex-column float width=auto height=100% tall min-height: 120x60 child=0
flex-column float width=auto height=100% tall padding: 30x15 child=0
-flex-column float width=auto height=calc empty none: 200x100 child=0
-flex-column float width=auto height=calc empty max-height: 60x30 child=0
-flex-column float width=auto height=calc empty min-height: 200x100 child=0
-flex-column float width=auto height=calc empty padding: 220x110 child=0
-flex-column float width=auto height=calc tall none: 200x100 child=0
-flex-column float width=auto height=calc tall max-height: 60x30 child=0
-flex-column float width=auto height=calc tall min-height: 200x100 child=0
-flex-column float width=auto height=calc tall padding: 220x110 child=0
+flex-column float width=auto height=calc empty none: 0x0 child=0
+flex-column float width=auto height=calc empty max-height: 0x0 child=0
+flex-column float width=auto height=calc empty min-height: 120x60 child=0
+flex-column float width=auto height=calc empty padding: 20x10 child=0
+flex-column float width=auto height=calc tall none: 10x5 child=0
+flex-column float width=auto height=calc tall max-height: 10x5 child=0
+flex-column float width=auto height=calc tall min-height: 120x60 child=0
+flex-column float width=auto height=calc tall padding: 30x15 child=0
flex-column float width=auto height=auto empty none: 0x0 child=0
flex-column float width=auto height=auto empty max-height: 0x0 child=0
flex-column float width=auto height=auto empty min-height: 120x60 child=0
@@ -2262,14 +2262,14 @@ flex-column float width=80px height=100% tall none: 80x40 child=20
flex-column float width=80px height=100% tall max-height: 80x30 child=15
flex-column float width=80px height=100% tall min-height: 80x60 child=30
flex-column float width=80px height=100% tall padding: 80x45 child=17.5
-flex-column float width=80px height=calc empty none: 80x100 child=0
-flex-column float width=80px height=calc empty max-height: 80x30 child=0
-flex-column float width=80px height=calc empty min-height: 80x100 child=0
-flex-column float width=80px height=calc empty padding: 80x110 child=0
-flex-column float width=80px height=calc tall none: 80x100 child=0
-flex-column float width=80px height=calc tall max-height: 80x30 child=0
-flex-column float width=80px height=calc tall min-height: 80x100 child=0
-flex-column float width=80px height=calc tall padding: 80x110 child=0
+flex-column float width=80px height=calc empty none: 80x40 child=20
+flex-column float width=80px height=calc empty max-height: 80x30 child=15
+flex-column float width=80px height=calc empty min-height: 80x60 child=30
+flex-column float width=80px height=calc empty padding: 80x45 child=17.5
+flex-column float width=80px height=calc tall none: 80x40 child=20
+flex-column float width=80px height=calc tall max-height: 80x30 child=15
+flex-column float width=80px height=calc tall min-height: 80x60 child=30
+flex-column float width=80px height=calc tall padding: 80x45 child=17.5
flex-column float width=80px height=auto empty none: 80x40 child=20
flex-column float width=80px height=auto empty max-height: 80x30 child=15
flex-column float width=80px height=auto empty min-height: 80x60 child=30
@@ -2286,14 +2286,14 @@ flex-column float width=50% height=100% tall none: 100x50 child=25
flex-column float width=50% height=100% tall max-height: 100x30 child=15
flex-column float width=50% height=100% tall min-height: 100x60 child=30
flex-column float width=50% height=100% tall padding: 100x55 child=22.5
-flex-column float width=50% height=calc empty none: 100x100 child=0
-flex-column float width=50% height=calc empty max-height: 100x30 child=0
-flex-column float width=50% height=calc empty min-height: 100x100 child=0
-flex-column float width=50% height=calc empty padding: 100x110 child=0
-flex-column float width=50% height=calc tall none: 100x100 child=0
-flex-column float width=50% height=calc tall max-height: 100x30 child=0
-flex-column float width=50% height=calc tall min-height: 100x100 child=0
-flex-column float width=50% height=calc tall padding: 100x110 child=0
+flex-column float width=50% height=calc empty none: 100x50 child=25
+flex-column float width=50% height=calc empty max-height: 100x30 child=15
+flex-column float width=50% height=calc empty min-height: 100x60 child=30
+flex-column float width=50% height=calc empty padding: 100x55 child=22.5
+flex-column float width=50% height=calc tall none: 100x50 child=25
+flex-column float width=50% height=calc tall max-height: 100x30 child=15
+flex-column float width=50% height=calc tall min-height: 100x60 child=30
+flex-column float width=50% height=calc tall padding: 100x55 child=22.5
flex-column float width=50% height=auto empty none: 100x50 child=25
flex-column float width=50% height=auto empty max-height: 100x30 child=15
flex-column float width=50% height=auto empty min-height: 100x60 child=30
@@ -2310,13 +2310,13 @@ flex-column flex width=auto height=100% tall none: 600x300 child=0
flex-column flex width=auto height=100% tall max-height: 60x30 child=0
flex-column flex width=auto height=100% tall min-height: 120x60 child=0
flex-column flex width=auto height=100% tall padding: 620x310 child=0
-flex-column flex width=auto height=calc empty none: 200x100 child=0
-flex-column flex width=auto height=calc empty max-height: 60x30 child=0
-flex-column flex width=auto height=calc empty min-height: 200x100 child=0
-flex-column flex width=auto height=calc empty padding: 220x110 child=0
+flex-column flex width=auto height=calc empty none: 0x0 child=0
+flex-column flex width=auto height=calc empty max-height: 0x0 child=0
+flex-column flex width=auto height=calc empty min-height: 120x60 child=0
+flex-column flex width=auto height=calc empty padding: 20x10 child=0
flex-column flex width=auto height=calc tall none: 600x300 child=0
flex-column flex width=auto height=calc tall max-height: 60x30 child=0
-flex-column flex width=auto height=calc tall min-height: 200x100 child=0
+flex-column flex width=auto height=calc tall min-height: 120x60 child=0
flex-column flex width=auto height=calc tall padding: 620x310 child=0
flex-column flex width=auto height=auto empty none: 0x0 child=0
flex-column flex width=auto height=auto empty max-height: 0x0 child=0
@@ -2334,14 +2334,14 @@ flex-column flex width=80px height=100% tall none: 80x300 child=150
flex-column flex width=80px height=100% tall max-height: 80x30 child=15
flex-column flex width=80px height=100% tall min-height: 80x60 child=30
flex-column flex width=80px height=100% tall padding: 80x310 child=150
-flex-column flex width=80px height=calc empty none: 80x100 child=0
-flex-column flex width=80px height=calc empty max-height: 80x30 child=0
-flex-column flex width=80px height=calc empty min-height: 80x100 child=0
-flex-column flex width=80px height=calc empty padding: 80x110 child=0
-flex-column flex width=80px height=calc tall none: 80x300 child=0
-flex-column flex width=80px height=calc tall max-height: 80x30 child=0
-flex-column flex width=80px height=calc tall min-height: 80x100 child=0
-flex-column flex width=80px height=calc tall padding: 80x310 child=0
+flex-column flex width=80px height=calc empty none: 80x40 child=20
+flex-column flex width=80px height=calc empty max-height: 80x30 child=15
+flex-column flex width=80px height=calc empty min-height: 80x60 child=30
+flex-column flex width=80px height=calc empty padding: 80x40 child=15
+flex-column flex width=80px height=calc tall none: 80x300 child=150
+flex-column flex width=80px height=calc tall max-height: 80x30 child=15
+flex-column flex width=80px height=calc tall min-height: 80x60 child=30
+flex-column flex width=80px height=calc tall padding: 80x310 child=150
flex-column flex width=80px height=auto empty none: 80x40 child=20
flex-column flex width=80px height=auto empty max-height: 80x30 child=15
flex-column flex width=80px height=auto empty min-height: 80x60 child=30
@@ -2358,14 +2358,14 @@ flex-column flex width=50% height=100% tall none: 100x300 child=150
flex-column flex width=50% height=100% tall max-height: 100x30 child=15
flex-column flex width=50% height=100% tall min-height: 100x60 child=30
flex-column flex width=50% height=100% tall padding: 100x310 child=150
-flex-column flex width=50% height=calc empty none: 100x100 child=0
-flex-column flex width=50% height=calc empty max-height: 100x30 child=0
-flex-column flex width=50% height=calc empty min-height: 100x100 child=0
-flex-column flex width=50% height=calc empty padding: 100x110 child=0
-flex-column flex width=50% height=calc tall none: 100x300 child=0
-flex-column flex width=50% height=calc tall max-height: 100x30 child=0
-flex-column flex width=50% height=calc tall min-height: 100x100 child=0
-flex-column flex width=50% height=calc tall padding: 100x310 child=0
+flex-column flex width=50% height=calc empty none: 100x50 child=25
+flex-column flex width=50% height=calc empty max-height: 100x30 child=15
+flex-column flex width=50% height=calc empty min-height: 100x60 child=30
+flex-column flex width=50% height=calc empty padding: 100x50 child=20
+flex-column flex width=50% height=calc tall none: 100x300 child=150
+flex-column flex width=50% height=calc tall max-height: 100x30 child=15
+flex-column flex width=50% height=calc tall min-height: 100x60 child=30
+flex-column flex width=50% height=calc tall padding: 100x310 child=150
flex-column flex width=50% height=auto empty none: 100x50 child=25
flex-column flex width=50% height=auto empty max-height: 100x30 child=15
flex-column flex width=50% height=auto empty min-height: 100x60 child=30
@@ -2382,13 +2382,13 @@ flex-column grid width=auto height=100% tall none: 600x300 child=0
flex-column grid width=auto height=100% tall max-height: 60x30 child=0
flex-column grid width=auto height=100% tall min-height: 120x60 child=0
flex-column grid width=auto height=100% tall padding: 620x310 child=0
-flex-column grid width=auto height=calc empty none: 200x100 child=0
-flex-column grid width=auto height=calc empty max-height: 60x30 child=0
-flex-column grid width=auto height=calc empty min-height: 200x100 child=30
-flex-column grid width=auto height=calc empty padding: 220x110 child=0
+flex-column grid width=auto height=calc empty none: 0x0 child=0
+flex-column grid width=auto height=calc empty max-height: 0x0 child=0
+flex-column grid width=auto height=calc empty min-height: 120x60 child=30
+flex-column grid width=auto height=calc empty padding: 20x10 child=0
flex-column grid width=auto height=calc tall none: 600x300 child=0
flex-column grid width=auto height=calc tall max-height: 60x30 child=0
-flex-column grid width=auto height=calc tall min-height: 200x100 child=0
+flex-column grid width=auto height=calc tall min-height: 120x60 child=0
flex-column grid width=auto height=calc tall padding: 620x310 child=0
flex-column grid width=auto height=auto empty none: 0x0 child=0
flex-column grid width=auto height=auto empty max-height: 0x0 child=0
@@ -2406,13 +2406,13 @@ flex-column grid width=80px height=100% tall none: 80x300 child=0
flex-column grid width=80px height=100% tall max-height: 80x30 child=0
flex-column grid width=80px height=100% tall min-height: 80x60 child=0
flex-column grid width=80px height=100% tall padding: 80x310 child=0
-flex-column grid width=80px height=calc empty none: 80x100 child=0
-flex-column grid width=80px height=calc empty max-height: 80x30 child=0
-flex-column grid width=80px height=calc empty min-height: 80x100 child=30
-flex-column grid width=80px height=calc empty padding: 80x110 child=0
+flex-column grid width=80px height=calc empty none: 80x40 child=20
+flex-column grid width=80px height=calc empty max-height: 80x30 child=15
+flex-column grid width=80px height=calc empty min-height: 80x60 child=30
+flex-column grid width=80px height=calc empty padding: 80x40 child=15
flex-column grid width=80px height=calc tall none: 80x300 child=0
flex-column grid width=80px height=calc tall max-height: 80x30 child=0
-flex-column grid width=80px height=calc tall min-height: 80x100 child=0
+flex-column grid width=80px height=calc tall min-height: 80x60 child=0
flex-column grid width=80px height=calc tall padding: 80x310 child=0
flex-column grid width=80px height=auto empty none: 80x40 child=20
flex-column grid width=80px height=auto empty max-height: 80x30 child=15
@@ -2430,13 +2430,13 @@ flex-column grid width=50% height=100% tall none: 100x300 child=0
flex-column grid width=50% height=100% tall max-height: 100x30 child=0
flex-column grid width=50% height=100% tall min-height: 100x60 child=0
flex-column grid width=50% height=100% tall padding: 100x310 child=0
-flex-column grid width=50% height=calc empty none: 100x100 child=0
-flex-column grid width=50% height=calc empty max-height: 100x30 child=0
-flex-column grid width=50% height=calc empty min-height: 100x100 child=30
-flex-column grid width=50% height=calc empty padding: 100x110 child=0
+flex-column grid width=50% height=calc empty none: 100x50 child=25
+flex-column grid width=50% height=calc empty max-height: 100x30 child=15
+flex-column grid width=50% height=calc empty min-height: 100x60 child=30
+flex-column grid width=50% height=calc empty padding: 100x50 child=20
flex-column grid width=50% height=calc tall none: 100x300 child=0
flex-column grid width=50% height=calc tall max-height: 100x30 child=0
-flex-column grid width=50% height=calc tall min-height: 100x100 child=0
+flex-column grid width=50% height=calc tall min-height: 100x60 child=0
flex-column grid width=50% height=calc tall padding: 100x310 child=0
flex-column grid width=50% height=auto empty none: 100x50 child=25
flex-column grid width=50% height=auto empty max-height: 100x30 child=15