Skip to content

Truly independent web browser

LibWeb: Apply aspect-ratio minimum only to auto preferred sizes

Andreas Kling2e67746a446a
diff --git a/Libraries/LibWeb/Rust/src/layout/sizing_context.rs b/Libraries/LibWeb/Rust/src/layout/sizing_context.rs
index d8facf1685d..b63872d3d2c 100644
--- a/Libraries/LibWeb/Rust/src/layout/sizing_context.rs
+++ b/Libraries/LibWeb/Rust/src/layout/sizing_context.rs
@@ -1347,11 +1347,13 @@ impl<'pass> SizingContext<'pass> {
content_size: Option<CssPixels>,
) -> Option<CssPixels> {
let style = self.style(node);
- let min_size = match axis {
- SizingAxis::Inline => style.min_width(),
- SizingAxis::Block => style.min_height(),
+ let (preferred_size, min_size) = match axis {
+ SizingAxis::Inline => (style.width(), style.min_width()),
+ SizingAxis::Block => (style.height(), style.min_height()),
};
- if !self.has_automatic_minimum_size_from_aspect_ratio(node, min_size) {
+ // INTEROP: Other engines only apply this minimum when the preferred size is auto, not when it is a percentage
+ // that is treated as auto.
+ if !preferred_size.is_auto() || !self.has_automatic_minimum_size_from_aspect_ratio(node, min_size) {
return None;
}
let minimum = content_size.unwrap_or_else(|| {
diff --git a/Tests/LibWeb/Text/expected/css/aspect-ratio-min-max-transfer-matrix.txt b/Tests/LibWeb/Text/expected/css/aspect-ratio-min-max-transfer-matrix.txt
index 83d9fbca94a..150f0590dda 100644
--- a/Tests/LibWeb/Text/expected/css/aspect-ratio-min-max-transfer-matrix.txt
+++ b/Tests/LibWeb/Text/expected/css/aspect-ratio-min-max-transfer-matrix.txt
@@ -2295,13 +2295,13 @@ flex-row block width=auto height=100% empty border-box-min-height: 120x60 child=
flex-row block width=auto height=100% empty border-box-max-width: 10x10 child=0
flex-row block width=auto height=100% tall min-height: 120x60 child=30
flex-row block width=auto height=100% tall min-height-large: 300x150 child=75
-flex-row block width=auto height=100% tall max-height: 10x30 child=15
-flex-row block width=auto height=100% tall min-width: 150x337.5 child=168.75
-flex-row block width=auto height=100% tall max-width: 10x302.5 child=151.25
+flex-row block width=auto height=100% tall max-height: 10x5 child=2.5
+flex-row block width=auto height=100% tall min-width: 150x75 child=37.5
+flex-row block width=auto height=100% tall max-width: 10x5 child=2.5
flex-row block width=auto height=100% tall min-width-max-height: 150x30 child=15
flex-row block width=auto height=100% tall max-width-min-height: 40x60 child=30
flex-row block width=auto height=100% tall border-box-min-height: 120x60 child=25
-flex-row block width=auto height=100% tall border-box-max-width: 20x310 child=150
+flex-row block width=auto height=100% tall border-box-max-width: 20x10 child=0
flex-row block width=auto height=40px empty min-height: 120x60 child=30
flex-row block width=auto height=40px empty min-height-large: 300x150 child=75
flex-row block width=auto height=40px empty max-height: 60x30 child=15
@@ -2350,12 +2350,12 @@ flex-row block width=80px height=100% empty border-box-max-width: 40x20 child=5
flex-row block width=80px height=100% tall min-height: 80x60 child=30
flex-row block width=80px height=100% tall min-height-large: 80x150 child=75
flex-row block width=80px height=100% tall max-height: 80x30 child=15
-flex-row block width=80px height=100% tall min-width: 150x337.5 child=168.75
-flex-row block width=80px height=100% tall max-width: 40x310 child=155
+flex-row block width=80px height=100% tall min-width: 150x75 child=37.5
+flex-row block width=80px height=100% tall max-width: 40x20 child=10
flex-row block width=80px height=100% tall min-width-max-height: 150x30 child=15
flex-row block width=80px height=100% tall max-width-min-height: 40x60 child=30
flex-row block width=80px height=100% tall border-box-min-height: 80x60 child=25
-flex-row block width=80px height=100% tall border-box-max-width: 40x315 child=152.5
+flex-row block width=80px height=100% tall border-box-max-width: 40x20 child=5
flex-row block width=80px height=40px empty min-height: 80x60 child=30
flex-row block width=80px height=40px empty min-height-large: 80x150 child=75
flex-row block width=80px height=40px empty max-height: 80x30 child=15
@@ -2404,12 +2404,12 @@ flex-row block width=50% height=100% empty border-box-max-width: 40x20 child=5
flex-row block width=50% height=100% tall min-height: 100x60 child=30
flex-row block width=50% height=100% tall min-height-large: 100x150 child=75
flex-row block width=50% height=100% tall max-height: 100x30 child=15
-flex-row block width=50% height=100% tall min-width: 150x337.5 child=168.75
-flex-row block width=50% height=100% tall max-width: 40x310 child=155
+flex-row block width=50% height=100% tall min-width: 150x75 child=37.5
+flex-row block width=50% height=100% tall max-width: 40x20 child=10
flex-row block width=50% height=100% tall min-width-max-height: 150x30 child=15
flex-row block width=50% height=100% tall max-width-min-height: 40x60 child=30
flex-row block width=50% height=100% tall border-box-min-height: 100x60 child=25
-flex-row block width=50% height=100% tall border-box-max-width: 40x315 child=152.5
+flex-row block width=50% height=100% tall border-box-max-width: 40x20 child=5
flex-row block width=50% height=40px empty min-height: 100x60 child=30
flex-row block width=50% height=40px empty min-height-large: 100x150 child=75
flex-row block width=50% height=40px empty max-height: 100x30 child=15
@@ -2457,13 +2457,13 @@ flex-row flow-root width=auto height=100% empty border-box-min-height: 120x60 ch
flex-row flow-root width=auto height=100% empty border-box-max-width: 10x10 child=0
flex-row flow-root width=auto height=100% tall min-height: 120x60 child=30
flex-row flow-root width=auto height=100% tall min-height-large: 300x150 child=75
-flex-row flow-root width=auto height=100% tall max-height: 10x30 child=15
-flex-row flow-root width=auto height=100% tall min-width: 150x337.5 child=168.75
-flex-row flow-root width=auto height=100% tall max-width: 10x302.5 child=151.25
+flex-row flow-root width=auto height=100% tall max-height: 10x5 child=2.5
+flex-row flow-root width=auto height=100% tall min-width: 150x75 child=37.5
+flex-row flow-root width=auto height=100% tall max-width: 10x5 child=2.5
flex-row flow-root width=auto height=100% tall min-width-max-height: 150x30 child=15
flex-row flow-root width=auto height=100% tall max-width-min-height: 40x60 child=30
flex-row flow-root width=auto height=100% tall border-box-min-height: 120x60 child=25
-flex-row flow-root width=auto height=100% tall border-box-max-width: 20x310 child=150
+flex-row flow-root width=auto height=100% tall border-box-max-width: 20x10 child=0
flex-row flow-root width=auto height=40px empty min-height: 120x60 child=30
flex-row flow-root width=auto height=40px empty min-height-large: 300x150 child=75
flex-row flow-root width=auto height=40px empty max-height: 60x30 child=15
@@ -2512,12 +2512,12 @@ flex-row flow-root width=80px height=100% empty border-box-max-width: 40x20 chil
flex-row flow-root width=80px height=100% tall min-height: 80x60 child=30
flex-row flow-root width=80px height=100% tall min-height-large: 80x150 child=75
flex-row flow-root width=80px height=100% tall max-height: 80x30 child=15
-flex-row flow-root width=80px height=100% tall min-width: 150x337.5 child=168.75
-flex-row flow-root width=80px height=100% tall max-width: 40x310 child=155
+flex-row flow-root width=80px height=100% tall min-width: 150x75 child=37.5
+flex-row flow-root width=80px height=100% tall max-width: 40x20 child=10
flex-row flow-root width=80px height=100% tall min-width-max-height: 150x30 child=15
flex-row flow-root width=80px height=100% tall max-width-min-height: 40x60 child=30
flex-row flow-root width=80px height=100% tall border-box-min-height: 80x60 child=25
-flex-row flow-root width=80px height=100% tall border-box-max-width: 40x315 child=152.5
+flex-row flow-root width=80px height=100% tall border-box-max-width: 40x20 child=5
flex-row flow-root width=80px height=40px empty min-height: 80x60 child=30
flex-row flow-root width=80px height=40px empty min-height-large: 80x150 child=75
flex-row flow-root width=80px height=40px empty max-height: 80x30 child=15
@@ -2566,12 +2566,12 @@ flex-row flow-root width=50% height=100% empty border-box-max-width: 40x20 child
flex-row flow-root width=50% height=100% tall min-height: 100x60 child=30
flex-row flow-root width=50% height=100% tall min-height-large: 100x150 child=75
flex-row flow-root width=50% height=100% tall max-height: 100x30 child=15
-flex-row flow-root width=50% height=100% tall min-width: 150x337.5 child=168.75
-flex-row flow-root width=50% height=100% tall max-width: 40x310 child=155
+flex-row flow-root width=50% height=100% tall min-width: 150x75 child=37.5
+flex-row flow-root width=50% height=100% tall max-width: 40x20 child=10
flex-row flow-root width=50% height=100% tall min-width-max-height: 150x30 child=15
flex-row flow-root width=50% height=100% tall max-width-min-height: 40x60 child=30
flex-row flow-root width=50% height=100% tall border-box-min-height: 100x60 child=25
-flex-row flow-root width=50% height=100% tall border-box-max-width: 40x315 child=152.5
+flex-row flow-root width=50% height=100% tall border-box-max-width: 40x20 child=5
flex-row flow-root width=50% height=40px empty min-height: 100x60 child=30
flex-row flow-root width=50% height=40px empty min-height-large: 100x150 child=75
flex-row flow-root width=50% height=40px empty max-height: 100x30 child=15
@@ -2619,13 +2619,13 @@ flex-row inline-block width=auto height=100% empty border-box-min-height: 120x60
flex-row inline-block width=auto height=100% empty border-box-max-width: 10x10 child=0
flex-row inline-block width=auto height=100% tall min-height: 120x60 child=30
flex-row inline-block width=auto height=100% tall min-height-large: 300x150 child=75
-flex-row inline-block width=auto height=100% tall max-height: 10x30 child=15
-flex-row inline-block width=auto height=100% tall min-width: 150x337.5 child=168.75
-flex-row inline-block width=auto height=100% tall max-width: 10x302.5 child=151.25
+flex-row inline-block width=auto height=100% tall max-height: 10x5 child=2.5
+flex-row inline-block width=auto height=100% tall min-width: 150x75 child=37.5
+flex-row inline-block width=auto height=100% tall max-width: 10x5 child=2.5
flex-row inline-block width=auto height=100% tall min-width-max-height: 150x30 child=15
flex-row inline-block width=auto height=100% tall max-width-min-height: 40x60 child=30
flex-row inline-block width=auto height=100% tall border-box-min-height: 120x60 child=25
-flex-row inline-block width=auto height=100% tall border-box-max-width: 20x310 child=150
+flex-row inline-block width=auto height=100% tall border-box-max-width: 20x10 child=0
flex-row inline-block width=auto height=40px empty min-height: 120x60 child=30
flex-row inline-block width=auto height=40px empty min-height-large: 300x150 child=75
flex-row inline-block width=auto height=40px empty max-height: 60x30 child=15
@@ -2674,12 +2674,12 @@ flex-row inline-block width=80px height=100% empty border-box-max-width: 40x20 c
flex-row inline-block width=80px height=100% tall min-height: 80x60 child=30
flex-row inline-block width=80px height=100% tall min-height-large: 80x150 child=75
flex-row inline-block width=80px height=100% tall max-height: 80x30 child=15
-flex-row inline-block width=80px height=100% tall min-width: 150x337.5 child=168.75
-flex-row inline-block width=80px height=100% tall max-width: 40x310 child=155
+flex-row inline-block width=80px height=100% tall min-width: 150x75 child=37.5
+flex-row inline-block width=80px height=100% tall max-width: 40x20 child=10
flex-row inline-block width=80px height=100% tall min-width-max-height: 150x30 child=15
flex-row inline-block width=80px height=100% tall max-width-min-height: 40x60 child=30
flex-row inline-block width=80px height=100% tall border-box-min-height: 80x60 child=25
-flex-row inline-block width=80px height=100% tall border-box-max-width: 40x315 child=152.5
+flex-row inline-block width=80px height=100% tall border-box-max-width: 40x20 child=5
flex-row inline-block width=80px height=40px empty min-height: 80x60 child=30
flex-row inline-block width=80px height=40px empty min-height-large: 80x150 child=75
flex-row inline-block width=80px height=40px empty max-height: 80x30 child=15
@@ -2728,12 +2728,12 @@ flex-row inline-block width=50% height=100% empty border-box-max-width: 40x20 ch
flex-row inline-block width=50% height=100% tall min-height: 100x60 child=30
flex-row inline-block width=50% height=100% tall min-height-large: 100x150 child=75
flex-row inline-block width=50% height=100% tall max-height: 100x30 child=15
-flex-row inline-block width=50% height=100% tall min-width: 150x337.5 child=168.75
-flex-row inline-block width=50% height=100% tall max-width: 40x310 child=155
+flex-row inline-block width=50% height=100% tall min-width: 150x75 child=37.5
+flex-row inline-block width=50% height=100% tall max-width: 40x20 child=10
flex-row inline-block width=50% height=100% tall min-width-max-height: 150x30 child=15
flex-row inline-block width=50% height=100% tall max-width-min-height: 40x60 child=30
flex-row inline-block width=50% height=100% tall border-box-min-height: 100x60 child=25
-flex-row inline-block width=50% height=100% tall border-box-max-width: 40x315 child=152.5
+flex-row inline-block width=50% height=100% tall border-box-max-width: 40x20 child=5
flex-row inline-block width=50% height=40px empty min-height: 100x60 child=30
flex-row inline-block width=50% height=40px empty min-height-large: 100x150 child=75
flex-row inline-block width=50% height=40px empty max-height: 100x30 child=15
@@ -2781,13 +2781,13 @@ flex-row float width=auto height=100% empty border-box-min-height: 120x60 child=
flex-row float width=auto height=100% empty border-box-max-width: 10x10 child=0
flex-row float width=auto height=100% tall min-height: 120x60 child=30
flex-row float width=auto height=100% tall min-height-large: 300x150 child=75
-flex-row float width=auto height=100% tall max-height: 10x30 child=15
-flex-row float width=auto height=100% tall min-width: 150x337.5 child=168.75
-flex-row float width=auto height=100% tall max-width: 10x302.5 child=151.25
+flex-row float width=auto height=100% tall max-height: 10x5 child=2.5
+flex-row float width=auto height=100% tall min-width: 150x75 child=37.5
+flex-row float width=auto height=100% tall max-width: 10x5 child=2.5
flex-row float width=auto height=100% tall min-width-max-height: 150x30 child=15
flex-row float width=auto height=100% tall max-width-min-height: 40x60 child=30
flex-row float width=auto height=100% tall border-box-min-height: 120x60 child=25
-flex-row float width=auto height=100% tall border-box-max-width: 20x310 child=150
+flex-row float width=auto height=100% tall border-box-max-width: 20x10 child=0
flex-row float width=auto height=40px empty min-height: 120x60 child=30
flex-row float width=auto height=40px empty min-height-large: 300x150 child=75
flex-row float width=auto height=40px empty max-height: 60x30 child=15
@@ -2836,12 +2836,12 @@ flex-row float width=80px height=100% empty border-box-max-width: 40x20 child=5
flex-row float width=80px height=100% tall min-height: 80x60 child=30
flex-row float width=80px height=100% tall min-height-large: 80x150 child=75
flex-row float width=80px height=100% tall max-height: 80x30 child=15
-flex-row float width=80px height=100% tall min-width: 150x337.5 child=168.75
-flex-row float width=80px height=100% tall max-width: 40x310 child=155
+flex-row float width=80px height=100% tall min-width: 150x75 child=37.5
+flex-row float width=80px height=100% tall max-width: 40x20 child=10
flex-row float width=80px height=100% tall min-width-max-height: 150x30 child=15
flex-row float width=80px height=100% tall max-width-min-height: 40x60 child=30
flex-row float width=80px height=100% tall border-box-min-height: 80x60 child=25
-flex-row float width=80px height=100% tall border-box-max-width: 40x315 child=152.5
+flex-row float width=80px height=100% tall border-box-max-width: 40x20 child=5
flex-row float width=80px height=40px empty min-height: 80x60 child=30
flex-row float width=80px height=40px empty min-height-large: 80x150 child=75
flex-row float width=80px height=40px empty max-height: 80x30 child=15
@@ -2890,12 +2890,12 @@ flex-row float width=50% height=100% empty border-box-max-width: 40x20 child=5
flex-row float width=50% height=100% tall min-height: 100x60 child=30
flex-row float width=50% height=100% tall min-height-large: 100x150 child=75
flex-row float width=50% height=100% tall max-height: 100x30 child=15
-flex-row float width=50% height=100% tall min-width: 150x337.5 child=168.75
-flex-row float width=50% height=100% tall max-width: 40x310 child=155
+flex-row float width=50% height=100% tall min-width: 150x75 child=37.5
+flex-row float width=50% height=100% tall max-width: 40x20 child=10
flex-row float width=50% height=100% tall min-width-max-height: 150x30 child=15
flex-row float width=50% height=100% tall max-width-min-height: 40x60 child=30
flex-row float width=50% height=100% tall border-box-min-height: 100x60 child=25
-flex-row float width=50% height=100% tall border-box-max-width: 40x315 child=152.5
+flex-row float width=50% height=100% tall border-box-max-width: 40x20 child=5
flex-row float width=50% height=40px empty min-height: 100x60 child=30
flex-row float width=50% height=40px empty min-height-large: 100x150 child=75
flex-row float width=50% height=40px empty max-height: 100x30 child=15
@@ -2943,13 +2943,13 @@ flex-row flex width=auto height=100% empty border-box-min-height: 120x60 child=2
flex-row flex width=auto height=100% empty border-box-max-width: 10x10 child=0
flex-row flex width=auto height=100% tall min-height: 120x60 child=30
flex-row flex width=auto height=100% tall min-height-large: 300x150 child=75
-flex-row flex width=auto height=100% tall max-height: 10x30 child=15
-flex-row flex width=auto height=100% tall min-width: 150x300 child=150
-flex-row flex width=auto height=100% tall max-width: 10x300 child=150
+flex-row flex width=auto height=100% tall max-height: 10x5 child=2.5
+flex-row flex width=auto height=100% tall min-width: 150x75 child=37.5
+flex-row flex width=auto height=100% tall max-width: 10x5 child=2.5
flex-row flex width=auto height=100% tall min-width-max-height: 150x30 child=15
flex-row flex width=auto height=100% tall max-width-min-height: 40x60 child=30
flex-row flex width=auto height=100% tall border-box-min-height: 120x60 child=25
-flex-row flex width=auto height=100% tall border-box-max-width: 20x310 child=150
+flex-row flex width=auto height=100% tall border-box-max-width: 20x10 child=0
flex-row flex width=auto height=40px empty min-height: 120x60 child=30
flex-row flex width=auto height=40px empty min-height-large: 300x150 child=75
flex-row flex width=auto height=40px empty max-height: 60x30 child=15
@@ -2998,12 +2998,12 @@ flex-row flex width=80px height=100% empty border-box-max-width: 40x20 child=5
flex-row flex width=80px height=100% tall min-height: 80x60 child=30
flex-row flex width=80px height=100% tall min-height-large: 80x150 child=75
flex-row flex width=80px height=100% tall max-height: 80x30 child=15
-flex-row flex width=80px height=100% tall min-width: 150x300 child=150
-flex-row flex width=80px height=100% tall max-width: 40x300 child=150
+flex-row flex width=80px height=100% tall min-width: 150x75 child=37.5
+flex-row flex width=80px height=100% tall max-width: 40x20 child=10
flex-row flex width=80px height=100% tall min-width-max-height: 150x30 child=15
flex-row flex width=80px height=100% tall max-width-min-height: 40x60 child=30
flex-row flex width=80px height=100% tall border-box-min-height: 80x60 child=25
-flex-row flex width=80px height=100% tall border-box-max-width: 40x310 child=150
+flex-row flex width=80px height=100% tall border-box-max-width: 40x20 child=5
flex-row flex width=80px height=40px empty min-height: 80x60 child=30
flex-row flex width=80px height=40px empty min-height-large: 80x150 child=75
flex-row flex width=80px height=40px empty max-height: 80x30 child=15
@@ -3052,12 +3052,12 @@ flex-row flex width=50% height=100% empty border-box-max-width: 40x20 child=5
flex-row flex width=50% height=100% tall min-height: 100x60 child=30
flex-row flex width=50% height=100% tall min-height-large: 100x150 child=75
flex-row flex width=50% height=100% tall max-height: 100x30 child=15
-flex-row flex width=50% height=100% tall min-width: 150x300 child=150
-flex-row flex width=50% height=100% tall max-width: 40x300 child=150
+flex-row flex width=50% height=100% tall min-width: 150x75 child=37.5
+flex-row flex width=50% height=100% tall max-width: 40x20 child=10
flex-row flex width=50% height=100% tall min-width-max-height: 150x30 child=15
flex-row flex width=50% height=100% tall max-width-min-height: 40x60 child=30
flex-row flex width=50% height=100% tall border-box-min-height: 100x60 child=25
-flex-row flex width=50% height=100% tall border-box-max-width: 40x310 child=150
+flex-row flex width=50% height=100% tall border-box-max-width: 40x20 child=5
flex-row flex width=50% height=40px empty min-height: 100x60 child=30
flex-row flex width=50% height=40px empty min-height-large: 100x150 child=75
flex-row flex width=50% height=40px empty max-height: 100x30 child=15
@@ -3105,13 +3105,13 @@ flex-row grid width=auto height=100% empty border-box-min-height: 120x60 child=2
flex-row grid width=auto height=100% empty border-box-max-width: 10x10 child=0
flex-row grid width=auto height=100% tall min-height: 120x60 child=0
flex-row grid width=auto height=100% tall min-height-large: 300x150 child=0
-flex-row grid width=auto height=100% tall max-height: 10x30 child=0
-flex-row grid width=auto height=100% tall min-width: 150x300 child=0
-flex-row grid width=auto height=100% tall max-width: 10x300 child=0
+flex-row grid width=auto height=100% tall max-height: 10x5 child=0
+flex-row grid width=auto height=100% tall min-width: 150x75 child=0
+flex-row grid width=auto height=100% tall max-width: 10x5 child=0
flex-row grid width=auto height=100% tall min-width-max-height: 150x30 child=0
flex-row grid width=auto height=100% tall max-width-min-height: 40x60 child=0
flex-row grid width=auto height=100% tall border-box-min-height: 120x60 child=0
-flex-row grid width=auto height=100% tall border-box-max-width: 20x310 child=0
+flex-row grid width=auto height=100% tall border-box-max-width: 20x10 child=0
flex-row grid width=auto height=40px empty min-height: 120x60 child=30
flex-row grid width=auto height=40px empty min-height-large: 300x150 child=75
flex-row grid width=auto height=40px empty max-height: 60x30 child=15
@@ -3160,12 +3160,12 @@ flex-row grid width=80px height=100% empty border-box-max-width: 40x20 child=5
flex-row grid width=80px height=100% tall min-height: 80x60 child=0
flex-row grid width=80px height=100% tall min-height-large: 80x150 child=0
flex-row grid width=80px height=100% tall max-height: 80x30 child=0
-flex-row grid width=80px height=100% tall min-width: 150x300 child=0
-flex-row grid width=80px height=100% tall max-width: 40x300 child=0
+flex-row grid width=80px height=100% tall min-width: 150x75 child=0
+flex-row grid width=80px height=100% tall max-width: 40x20 child=0
flex-row grid width=80px height=100% tall min-width-max-height: 150x30 child=0
flex-row grid width=80px height=100% tall max-width-min-height: 40x60 child=0
flex-row grid width=80px height=100% tall border-box-min-height: 80x60 child=0
-flex-row grid width=80px height=100% tall border-box-max-width: 40x310 child=0
+flex-row grid width=80px height=100% tall border-box-max-width: 40x20 child=0
flex-row grid width=80px height=40px empty min-height: 80x60 child=30
flex-row grid width=80px height=40px empty min-height-large: 80x150 child=75
flex-row grid width=80px height=40px empty max-height: 80x30 child=15
@@ -3214,12 +3214,12 @@ flex-row grid width=50% height=100% empty border-box-max-width: 40x20 child=5
flex-row grid width=50% height=100% tall min-height: 100x60 child=0
flex-row grid width=50% height=100% tall min-height-large: 100x150 child=0
flex-row grid width=50% height=100% tall max-height: 100x30 child=0
-flex-row grid width=50% height=100% tall min-width: 150x300 child=0
-flex-row grid width=50% height=100% tall max-width: 40x300 child=0
+flex-row grid width=50% height=100% tall min-width: 150x75 child=0
+flex-row grid width=50% height=100% tall max-width: 40x20 child=0
flex-row grid width=50% height=100% tall min-width-max-height: 150x30 child=0
flex-row grid width=50% height=100% tall max-width-min-height: 40x60 child=0
flex-row grid width=50% height=100% tall border-box-min-height: 100x60 child=0
-flex-row grid width=50% height=100% tall border-box-max-width: 40x310 child=0
+flex-row grid width=50% height=100% tall border-box-max-width: 40x20 child=0
flex-row grid width=50% height=40px empty min-height: 100x60 child=30
flex-row grid width=50% height=40px empty min-height-large: 100x150 child=75
flex-row grid width=50% height=40px empty max-height: 100x30 child=15
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 fe7cd77736d..4cb3c43a477 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
@@ -1010,18 +1010,18 @@ flex-row block width=auto height=100% empty none: 0x0 child=0
flex-row block width=auto height=100% empty max-height: 0x0 child=0
flex-row block width=auto height=100% empty min-height: 120x60 child=30
flex-row block width=auto height=100% empty padding: 10x10 child=0
-flex-row block width=auto height=100% tall none: 10x302.5 child=151.25
-flex-row block width=auto height=100% tall max-height: 10x30 child=15
+flex-row block width=auto height=100% tall none: 10x5 child=2.5
+flex-row block width=auto height=100% tall max-height: 10x5 child=2.5
flex-row block width=auto height=100% tall min-height: 120x60 child=30
-flex-row block width=auto height=100% tall padding: 20x310 child=150
+flex-row block width=auto height=100% tall padding: 20x10 child=0
flex-row block width=auto height=calc empty none: 0x0 child=0
flex-row block width=auto height=calc empty max-height: 0x0 child=0
flex-row block width=auto height=calc empty min-height: 120x60 child=30
flex-row block width=auto height=calc empty padding: 10x10 child=0
-flex-row block width=auto height=calc tall none: 10x302.5 child=151.25
-flex-row block width=auto height=calc tall max-height: 10x30 child=15
+flex-row block width=auto height=calc tall none: 10x5 child=2.5
+flex-row block width=auto height=calc tall max-height: 10x5 child=2.5
flex-row block width=auto height=calc tall min-height: 120x60 child=30
-flex-row block width=auto height=calc tall padding: 20x310 child=150
+flex-row block width=auto height=calc tall padding: 20x10 child=0
flex-row block width=auto height=auto empty none: 0x0 child=0
flex-row block width=auto height=auto empty max-height: 0x0 child=0
flex-row block width=auto height=auto empty min-height: 120x60 child=30
@@ -1034,18 +1034,18 @@ flex-row block width=80px height=100% empty none: 80x40 child=20
flex-row block width=80px height=100% empty max-height: 80x30 child=15
flex-row block width=80px height=100% empty min-height: 80x60 child=30
flex-row block width=80px height=100% empty padding: 80x40 child=15
-flex-row block width=80px height=100% tall none: 80x320 child=160
+flex-row block width=80px height=100% tall none: 80x40 child=20
flex-row block width=80px height=100% tall max-height: 80x30 child=15
flex-row block width=80px height=100% tall min-height: 80x60 child=30
-flex-row block width=80px height=100% tall padding: 80x325 child=157.5
+flex-row block width=80px height=100% tall padding: 80x40 child=15
flex-row block width=80px height=calc empty none: 80x40 child=20
flex-row block width=80px height=calc empty max-height: 80x30 child=15
flex-row block width=80px height=calc empty min-height: 80x60 child=30
flex-row block width=80px height=calc empty padding: 80x40 child=15
-flex-row block width=80px height=calc tall none: 80x320 child=160
+flex-row block width=80px height=calc tall none: 80x40 child=20
flex-row block width=80px height=calc tall max-height: 80x30 child=15
flex-row block width=80px height=calc tall min-height: 80x60 child=30
-flex-row block width=80px height=calc tall padding: 80x325 child=157.5
+flex-row block width=80px height=calc tall padding: 80x40 child=15
flex-row block width=80px height=auto empty none: 80x40 child=20
flex-row block width=80px height=auto empty max-height: 80x30 child=15
flex-row block width=80px height=auto empty min-height: 80x60 child=30
@@ -1058,18 +1058,18 @@ flex-row block width=50% height=100% empty none: 100x50 child=25
flex-row block width=50% height=100% empty max-height: 100x30 child=15
flex-row block width=50% height=100% empty min-height: 100x60 child=30
flex-row block width=50% height=100% empty padding: 100x50 child=20
-flex-row block width=50% height=100% tall none: 100x325 child=162.5
+flex-row block width=50% height=100% tall none: 100x50 child=25
flex-row block width=50% height=100% tall max-height: 100x30 child=15
flex-row block width=50% height=100% tall min-height: 100x60 child=30
-flex-row block width=50% height=100% tall padding: 100x330 child=160
+flex-row block width=50% height=100% tall padding: 100x50 child=20
flex-row block width=50% height=calc empty none: 100x50 child=25
flex-row block width=50% height=calc empty max-height: 100x30 child=15
flex-row block width=50% height=calc empty min-height: 100x60 child=30
flex-row block width=50% height=calc empty padding: 100x50 child=20
-flex-row block width=50% height=calc tall none: 100x325 child=162.5
+flex-row block width=50% height=calc tall none: 100x50 child=25
flex-row block width=50% height=calc tall max-height: 100x30 child=15
flex-row block width=50% height=calc tall min-height: 100x60 child=30
-flex-row block width=50% height=calc tall padding: 100x330 child=160
+flex-row block width=50% height=calc tall padding: 100x50 child=20
flex-row block width=50% height=auto empty none: 100x50 child=25
flex-row block width=50% height=auto empty max-height: 100x30 child=15
flex-row block width=50% height=auto empty min-height: 100x60 child=30
@@ -1082,18 +1082,18 @@ flex-row flow-root width=auto height=100% empty none: 0x0 child=0
flex-row flow-root width=auto height=100% empty max-height: 0x0 child=0
flex-row flow-root width=auto height=100% empty min-height: 120x60 child=30
flex-row flow-root width=auto height=100% empty padding: 10x10 child=0
-flex-row flow-root width=auto height=100% tall none: 10x302.5 child=151.25
-flex-row flow-root width=auto height=100% tall max-height: 10x30 child=15
+flex-row flow-root width=auto height=100% tall none: 10x5 child=2.5
+flex-row flow-root width=auto height=100% tall max-height: 10x5 child=2.5
flex-row flow-root width=auto height=100% tall min-height: 120x60 child=30
-flex-row flow-root width=auto height=100% tall padding: 20x310 child=150
+flex-row flow-root width=auto height=100% tall padding: 20x10 child=0
flex-row flow-root width=auto height=calc empty none: 0x0 child=0
flex-row flow-root width=auto height=calc empty max-height: 0x0 child=0
flex-row flow-root width=auto height=calc empty min-height: 120x60 child=30
flex-row flow-root width=auto height=calc empty padding: 10x10 child=0
-flex-row flow-root width=auto height=calc tall none: 10x302.5 child=151.25
-flex-row flow-root width=auto height=calc tall max-height: 10x30 child=15
+flex-row flow-root width=auto height=calc tall none: 10x5 child=2.5
+flex-row flow-root width=auto height=calc tall max-height: 10x5 child=2.5
flex-row flow-root width=auto height=calc tall min-height: 120x60 child=30
-flex-row flow-root width=auto height=calc tall padding: 20x310 child=150
+flex-row flow-root width=auto height=calc tall padding: 20x10 child=0
flex-row flow-root width=auto height=auto empty none: 0x0 child=0
flex-row flow-root width=auto height=auto empty max-height: 0x0 child=0
flex-row flow-root width=auto height=auto empty min-height: 120x60 child=30
@@ -1106,18 +1106,18 @@ flex-row flow-root width=80px height=100% empty none: 80x40 child=20
flex-row flow-root width=80px height=100% empty max-height: 80x30 child=15
flex-row flow-root width=80px height=100% empty min-height: 80x60 child=30
flex-row flow-root width=80px height=100% empty padding: 80x40 child=15
-flex-row flow-root width=80px height=100% tall none: 80x320 child=160
+flex-row flow-root width=80px height=100% tall none: 80x40 child=20
flex-row flow-root width=80px height=100% tall max-height: 80x30 child=15
flex-row flow-root width=80px height=100% tall min-height: 80x60 child=30
-flex-row flow-root width=80px height=100% tall padding: 80x325 child=157.5
+flex-row flow-root width=80px height=100% tall padding: 80x40 child=15
flex-row flow-root width=80px height=calc empty none: 80x40 child=20
flex-row flow-root width=80px height=calc empty max-height: 80x30 child=15
flex-row flow-root width=80px height=calc empty min-height: 80x60 child=30
flex-row flow-root width=80px height=calc empty padding: 80x40 child=15
-flex-row flow-root width=80px height=calc tall none: 80x320 child=160
+flex-row flow-root width=80px height=calc tall none: 80x40 child=20
flex-row flow-root width=80px height=calc tall max-height: 80x30 child=15
flex-row flow-root width=80px height=calc tall min-height: 80x60 child=30
-flex-row flow-root width=80px height=calc tall padding: 80x325 child=157.5
+flex-row flow-root width=80px height=calc tall padding: 80x40 child=15
flex-row flow-root width=80px height=auto empty none: 80x40 child=20
flex-row flow-root width=80px height=auto empty max-height: 80x30 child=15
flex-row flow-root width=80px height=auto empty min-height: 80x60 child=30
@@ -1130,18 +1130,18 @@ flex-row flow-root width=50% height=100% empty none: 100x50 child=25
flex-row flow-root width=50% height=100% empty max-height: 100x30 child=15
flex-row flow-root width=50% height=100% empty min-height: 100x60 child=30
flex-row flow-root width=50% height=100% empty padding: 100x50 child=20
-flex-row flow-root width=50% height=100% tall none: 100x325 child=162.5
+flex-row flow-root width=50% height=100% tall none: 100x50 child=25
flex-row flow-root width=50% height=100% tall max-height: 100x30 child=15
flex-row flow-root width=50% height=100% tall min-height: 100x60 child=30
-flex-row flow-root width=50% height=100% tall padding: 100x330 child=160
+flex-row flow-root width=50% height=100% tall padding: 100x50 child=20
flex-row flow-root width=50% height=calc empty none: 100x50 child=25
flex-row flow-root width=50% height=calc empty max-height: 100x30 child=15
flex-row flow-root width=50% height=calc empty min-height: 100x60 child=30
flex-row flow-root width=50% height=calc empty padding: 100x50 child=20
-flex-row flow-root width=50% height=calc tall none: 100x325 child=162.5
+flex-row flow-root width=50% height=calc tall none: 100x50 child=25
flex-row flow-root width=50% height=calc tall max-height: 100x30 child=15
flex-row flow-root width=50% height=calc tall min-height: 100x60 child=30
-flex-row flow-root width=50% height=calc tall padding: 100x330 child=160
+flex-row flow-root width=50% height=calc tall padding: 100x50 child=20
flex-row flow-root width=50% height=auto empty none: 100x50 child=25
flex-row flow-root width=50% height=auto empty max-height: 100x30 child=15
flex-row flow-root width=50% height=auto empty min-height: 100x60 child=30
@@ -1154,18 +1154,18 @@ flex-row inline-block width=auto height=100% empty none: 0x0 child=0
flex-row inline-block width=auto height=100% empty max-height: 0x0 child=0
flex-row inline-block width=auto height=100% empty min-height: 120x60 child=30
flex-row inline-block width=auto height=100% empty padding: 10x10 child=0
-flex-row inline-block width=auto height=100% tall none: 10x302.5 child=151.25
-flex-row inline-block width=auto height=100% tall max-height: 10x30 child=15
+flex-row inline-block width=auto height=100% tall none: 10x5 child=2.5
+flex-row inline-block width=auto height=100% tall max-height: 10x5 child=2.5
flex-row inline-block width=auto height=100% tall min-height: 120x60 child=30
-flex-row inline-block width=auto height=100% tall padding: 20x310 child=150
+flex-row inline-block width=auto height=100% tall padding: 20x10 child=0
flex-row inline-block width=auto height=calc empty none: 0x0 child=0
flex-row inline-block width=auto height=calc empty max-height: 0x0 child=0
flex-row inline-block width=auto height=calc empty min-height: 120x60 child=30
flex-row inline-block width=auto height=calc empty padding: 10x10 child=0
-flex-row inline-block width=auto height=calc tall none: 10x302.5 child=151.25
-flex-row inline-block width=auto height=calc tall max-height: 10x30 child=15
+flex-row inline-block width=auto height=calc tall none: 10x5 child=2.5
+flex-row inline-block width=auto height=calc tall max-height: 10x5 child=2.5
flex-row inline-block width=auto height=calc tall min-height: 120x60 child=30
-flex-row inline-block width=auto height=calc tall padding: 20x310 child=150
+flex-row inline-block width=auto height=calc tall padding: 20x10 child=0
flex-row inline-block width=auto height=auto empty none: 0x0 child=0
flex-row inline-block width=auto height=auto empty max-height: 0x0 child=0
flex-row inline-block width=auto height=auto empty min-height: 120x60 child=30
@@ -1178,18 +1178,18 @@ flex-row inline-block width=80px height=100% empty none: 80x40 child=20
flex-row inline-block width=80px height=100% empty max-height: 80x30 child=15
flex-row inline-block width=80px height=100% empty min-height: 80x60 child=30
flex-row inline-block width=80px height=100% empty padding: 80x40 child=15
-flex-row inline-block width=80px height=100% tall none: 80x320 child=160
+flex-row inline-block width=80px height=100% tall none: 80x40 child=20
flex-row inline-block width=80px height=100% tall max-height: 80x30 child=15
flex-row inline-block width=80px height=100% tall min-height: 80x60 child=30
-flex-row inline-block width=80px height=100% tall padding: 80x325 child=157.5
+flex-row inline-block width=80px height=100% tall padding: 80x40 child=15
flex-row inline-block width=80px height=calc empty none: 80x40 child=20
flex-row inline-block width=80px height=calc empty max-height: 80x30 child=15
flex-row inline-block width=80px height=calc empty min-height: 80x60 child=30
flex-row inline-block width=80px height=calc empty padding: 80x40 child=15
-flex-row inline-block width=80px height=calc tall none: 80x320 child=160
+flex-row inline-block width=80px height=calc tall none: 80x40 child=20
flex-row inline-block width=80px height=calc tall max-height: 80x30 child=15
flex-row inline-block width=80px height=calc tall min-height: 80x60 child=30
-flex-row inline-block width=80px height=calc tall padding: 80x325 child=157.5
+flex-row inline-block width=80px height=calc tall padding: 80x40 child=15
flex-row inline-block width=80px height=auto empty none: 80x40 child=20
flex-row inline-block width=80px height=auto empty max-height: 80x30 child=15
flex-row inline-block width=80px height=auto empty min-height: 80x60 child=30
@@ -1202,18 +1202,18 @@ flex-row inline-block width=50% height=100% empty none: 100x50 child=25
flex-row inline-block width=50% height=100% empty max-height: 100x30 child=15
flex-row inline-block width=50% height=100% empty min-height: 100x60 child=30
flex-row inline-block width=50% height=100% empty padding: 100x50 child=20
-flex-row inline-block width=50% height=100% tall none: 100x325 child=162.5
+flex-row inline-block width=50% height=100% tall none: 100x50 child=25
flex-row inline-block width=50% height=100% tall max-height: 100x30 child=15
flex-row inline-block width=50% height=100% tall min-height: 100x60 child=30
-flex-row inline-block width=50% height=100% tall padding: 100x330 child=160
+flex-row inline-block width=50% height=100% tall padding: 100x50 child=20
flex-row inline-block width=50% height=calc empty none: 100x50 child=25
flex-row inline-block width=50% height=calc empty max-height: 100x30 child=15
flex-row inline-block width=50% height=calc empty min-height: 100x60 child=30
flex-row inline-block width=50% height=calc empty padding: 100x50 child=20
-flex-row inline-block width=50% height=calc tall none: 100x325 child=162.5
+flex-row inline-block width=50% height=calc tall none: 100x50 child=25
flex-row inline-block width=50% height=calc tall max-height: 100x30 child=15
flex-row inline-block width=50% height=calc tall min-height: 100x60 child=30
-flex-row inline-block width=50% height=calc tall padding: 100x330 child=160
+flex-row inline-block width=50% height=calc tall padding: 100x50 child=20
flex-row inline-block width=50% height=auto empty none: 100x50 child=25
flex-row inline-block width=50% height=auto empty max-height: 100x30 child=15
flex-row inline-block width=50% height=auto empty min-height: 100x60 child=30
@@ -1226,18 +1226,18 @@ flex-row float width=auto height=100% empty none: 0x0 child=0
flex-row float width=auto height=100% empty max-height: 0x0 child=0
flex-row float width=auto height=100% empty min-height: 120x60 child=30
flex-row float width=auto height=100% empty padding: 10x10 child=0
-flex-row float width=auto height=100% tall none: 10x302.5 child=151.25
-flex-row float width=auto height=100% tall max-height: 10x30 child=15
+flex-row float width=auto height=100% tall none: 10x5 child=2.5
+flex-row float width=auto height=100% tall max-height: 10x5 child=2.5
flex-row float width=auto height=100% tall min-height: 120x60 child=30
-flex-row float width=auto height=100% tall padding: 20x310 child=150
+flex-row float width=auto height=100% tall padding: 20x10 child=0
flex-row float width=auto height=calc empty none: 0x0 child=0
flex-row float width=auto height=calc empty max-height: 0x0 child=0
flex-row float width=auto height=calc empty min-height: 120x60 child=30
flex-row float width=auto height=calc empty padding: 10x10 child=0
-flex-row float width=auto height=calc tall none: 10x302.5 child=151.25
-flex-row float width=auto height=calc tall max-height: 10x30 child=15
+flex-row float width=auto height=calc tall none: 10x5 child=2.5
+flex-row float width=auto height=calc tall max-height: 10x5 child=2.5
flex-row float width=auto height=calc tall min-height: 120x60 child=30
-flex-row float width=auto height=calc tall padding: 20x310 child=150
+flex-row float width=auto height=calc tall padding: 20x10 child=0
flex-row float width=auto height=auto empty none: 0x0 child=0
flex-row float width=auto height=auto empty max-height: 0x0 child=0
flex-row float width=auto height=auto empty min-height: 120x60 child=30
@@ -1250,18 +1250,18 @@ flex-row float width=80px height=100% empty none: 80x40 child=20
flex-row float width=80px height=100% empty max-height: 80x30 child=15
flex-row float width=80px height=100% empty min-height: 80x60 child=30
flex-row float width=80px height=100% empty padding: 80x40 child=15
-flex-row float width=80px height=100% tall none: 80x320 child=160
+flex-row float width=80px height=100% tall none: 80x40 child=20
flex-row float width=80px height=100% tall max-height: 80x30 child=15
flex-row float width=80px height=100% tall min-height: 80x60 child=30
-flex-row float width=80px height=100% tall padding: 80x325 child=157.5
+flex-row float width=80px height=100% tall padding: 80x40 child=15
flex-row float width=80px height=calc empty none: 80x40 child=20
flex-row float width=80px height=calc empty max-height: 80x30 child=15
flex-row float width=80px height=calc empty min-height: 80x60 child=30
flex-row float width=80px height=calc empty padding: 80x40 child=15
-flex-row float width=80px height=calc tall none: 80x320 child=160
+flex-row float width=80px height=calc tall none: 80x40 child=20
flex-row float width=80px height=calc tall max-height: 80x30 child=15
flex-row float width=80px height=calc tall min-height: 80x60 child=30
-flex-row float width=80px height=calc tall padding: 80x325 child=157.5
+flex-row float width=80px height=calc tall padding: 80x40 child=15
flex-row float width=80px height=auto empty none: 80x40 child=20
flex-row float width=80px height=auto empty max-height: 80x30 child=15
flex-row float width=80px height=auto empty min-height: 80x60 child=30
@@ -1274,18 +1274,18 @@ flex-row float width=50% height=100% empty none: 100x50 child=25
flex-row float width=50% height=100% empty max-height: 100x30 child=15
flex-row float width=50% height=100% empty min-height: 100x60 child=30
flex-row float width=50% height=100% empty padding: 100x50 child=20
-flex-row float width=50% height=100% tall none: 100x325 child=162.5
+flex-row float width=50% height=100% tall none: 100x50 child=25
flex-row float width=50% height=100% tall max-height: 100x30 child=15
flex-row float width=50% height=100% tall min-height: 100x60 child=30
-flex-row float width=50% height=100% tall padding: 100x330 child=160
+flex-row float width=50% height=100% tall padding: 100x50 child=20
flex-row float width=50% height=calc empty none: 100x50 child=25
flex-row float width=50% height=calc empty max-height: 100x30 child=15
flex-row float width=50% height=calc empty min-height: 100x60 child=30
flex-row float width=50% height=calc empty padding: 100x50 child=20
-flex-row float width=50% height=calc tall none: 100x325 child=162.5
+flex-row float width=50% height=calc tall none: 100x50 child=25
flex-row float width=50% height=calc tall max-height: 100x30 child=15
flex-row float width=50% height=calc tall min-height: 100x60 child=30
-flex-row float width=50% height=calc tall padding: 100x330 child=160
+flex-row float width=50% height=calc tall padding: 100x50 child=20
flex-row float width=50% height=auto empty none: 100x50 child=25
flex-row float width=50% height=auto empty max-height: 100x30 child=15
flex-row float width=50% height=auto empty min-height: 100x60 child=30
@@ -1298,18 +1298,18 @@ flex-row flex width=auto height=100% empty none: 0x0 child=0
flex-row flex width=auto height=100% empty max-height: 0x0 child=0
flex-row flex width=auto height=100% empty min-height: 120x60 child=30
flex-row flex width=auto height=100% empty padding: 10x10 child=0
-flex-row flex width=auto height=100% tall none: 10x300 child=150
-flex-row flex width=auto height=100% tall max-height: 10x30 child=15
+flex-row flex width=auto height=100% tall none: 10x5 child=2.5
+flex-row flex width=auto height=100% tall max-height: 10x5 child=2.5
flex-row flex width=auto height=100% tall min-height: 120x60 child=30
-flex-row flex width=auto height=100% tall padding: 20x310 child=150
+flex-row flex width=auto height=100% tall padding: 20x10 child=0
flex-row flex width=auto height=calc empty none: 0x0 child=0
flex-row flex width=auto height=calc empty max-height: 0x0 child=0
flex-row flex width=auto height=calc empty min-height: 120x60 child=30
flex-row flex width=auto height=calc empty padding: 10x10 child=0
-flex-row flex width=auto height=calc tall none: 10x300 child=150
-flex-row flex width=auto height=calc tall max-height: 10x30 child=15
+flex-row flex width=auto height=calc tall none: 10x5 child=2.5
+flex-row flex width=auto height=calc tall max-height: 10x5 child=2.5
flex-row flex width=auto height=calc tall min-height: 120x60 child=30
-flex-row flex width=auto height=calc tall padding: 20x310 child=150
+flex-row flex width=auto height=calc tall padding: 20x10 child=0
flex-row flex width=auto height=auto empty none: 0x0 child=0
flex-row flex width=auto height=auto empty max-height: 0x0 child=0
flex-row flex width=auto height=auto empty min-height: 120x60 child=30
@@ -1322,18 +1322,18 @@ flex-row flex width=80px height=100% empty none: 80x40 child=20
flex-row flex width=80px height=100% empty max-height: 80x30 child=15
flex-row flex width=80px height=100% empty min-height: 80x60 child=30
flex-row flex width=80px height=100% empty padding: 80x40 child=15
-flex-row flex width=80px height=100% tall none: 80x300 child=150
+flex-row flex width=80px height=100% tall none: 80x40 child=20
flex-row flex width=80px height=100% tall max-height: 80x30 child=15
flex-row flex width=80px height=100% tall min-height: 80x60 child=30
-flex-row flex width=80px height=100% tall padding: 80x310 child=150
+flex-row flex width=80px height=100% tall padding: 80x40 child=15
flex-row flex width=80px height=calc empty none: 80x40 child=20
flex-row flex width=80px height=calc empty max-height: 80x30 child=15
flex-row flex width=80px height=calc empty min-height: 80x60 child=30
flex-row flex width=80px height=calc empty padding: 80x40 child=15
-flex-row flex width=80px height=calc tall none: 80x300 child=150
+flex-row flex width=80px height=calc tall none: 80x40 child=20
flex-row flex width=80px height=calc tall max-height: 80x30 child=15
flex-row flex width=80px height=calc tall min-height: 80x60 child=30
-flex-row flex width=80px height=calc tall padding: 80x310 child=150
+flex-row flex width=80px height=calc tall padding: 80x40 child=15
flex-row flex width=80px height=auto empty none: 80x40 child=20
flex-row flex width=80px height=auto empty max-height: 80x30 child=15
flex-row flex width=80px height=auto empty min-height: 80x60 child=30
@@ -1346,18 +1346,18 @@ flex-row flex width=50% height=100% empty none: 100x50 child=25
flex-row flex width=50% height=100% empty max-height: 100x30 child=15
flex-row flex width=50% height=100% empty min-height: 100x60 child=30
flex-row flex width=50% height=100% empty padding: 100x50 child=20
-flex-row flex width=50% height=100% tall none: 100x300 child=150
+flex-row flex width=50% height=100% tall none: 100x50 child=25
flex-row flex width=50% height=100% tall max-height: 100x30 child=15
flex-row flex width=50% height=100% tall min-height: 100x60 child=30
-flex-row flex width=50% height=100% tall padding: 100x310 child=150
+flex-row flex width=50% height=100% tall padding: 100x50 child=20
flex-row flex width=50% height=calc empty none: 100x50 child=25
flex-row flex width=50% height=calc empty max-height: 100x30 child=15
flex-row flex width=50% height=calc empty min-height: 100x60 child=30
flex-row flex width=50% height=calc empty padding: 100x50 child=20
-flex-row flex width=50% height=calc tall none: 100x300 child=150
+flex-row flex width=50% height=calc tall none: 100x50 child=25
flex-row flex width=50% height=calc tall max-height: 100x30 child=15
flex-row flex width=50% height=calc tall min-height: 100x60 child=30
-flex-row flex width=50% height=calc tall padding: 100x310 child=150
+flex-row flex width=50% height=calc tall padding: 100x50 child=20
flex-row flex width=50% height=auto empty none: 100x50 child=25
flex-row flex width=50% height=auto empty max-height: 100x30 child=15
flex-row flex width=50% height=auto empty min-height: 100x60 child=30
@@ -1370,18 +1370,18 @@ flex-row grid width=auto height=100% empty none: 0x0 child=0
flex-row grid width=auto height=100% empty max-height: 0x0 child=0
flex-row grid width=auto height=100% empty min-height: 120x60 child=30
flex-row grid width=auto height=100% empty padding: 10x10 child=0
-flex-row grid width=auto height=100% tall none: 10x300 child=0
-flex-row grid width=auto height=100% tall max-height: 10x30 child=0
+flex-row grid width=auto height=100% tall none: 10x5 child=0
+flex-row grid width=auto height=100% tall max-height: 10x5 child=0
flex-row grid width=auto height=100% tall min-height: 120x60 child=0
-flex-row grid width=auto height=100% tall padding: 20x310 child=0
+flex-row grid width=auto height=100% tall padding: 20x10 child=0
flex-row grid width=auto height=calc empty none: 0x0 child=0
flex-row grid width=auto height=calc empty max-height: 0x0 child=0
flex-row grid width=auto height=calc empty min-height: 120x60 child=30
flex-row grid width=auto height=calc empty padding: 10x10 child=0
-flex-row grid width=auto height=calc tall none: 10x300 child=0
-flex-row grid width=auto height=calc tall max-height: 10x30 child=0
+flex-row grid width=auto height=calc tall none: 10x5 child=0
+flex-row grid width=auto height=calc tall max-height: 10x5 child=0
flex-row grid width=auto height=calc tall min-height: 120x60 child=0
-flex-row grid width=auto height=calc tall padding: 20x310 child=0
+flex-row grid width=auto height=calc tall padding: 20x10 child=0
flex-row grid width=auto height=auto empty none: 0x0 child=0
flex-row grid width=auto height=auto empty max-height: 0x0 child=0
flex-row grid width=auto height=auto empty min-height: 120x60 child=30
@@ -1394,18 +1394,18 @@ flex-row grid width=80px height=100% empty none: 80x40 child=20
flex-row grid width=80px height=100% empty max-height: 80x30 child=15
flex-row grid width=80px height=100% empty min-height: 80x60 child=30
flex-row grid width=80px height=100% empty padding: 80x40 child=15
-flex-row grid width=80px height=100% tall none: 80x300 child=0
+flex-row grid width=80px height=100% tall none: 80x40 child=0
flex-row grid width=80px height=100% tall max-height: 80x30 child=0
flex-row grid width=80px height=100% tall min-height: 80x60 child=0
-flex-row grid width=80px height=100% tall padding: 80x310 child=0
+flex-row grid width=80px height=100% tall padding: 80x40 child=0
flex-row grid width=80px height=calc empty none: 80x40 child=20
flex-row grid width=80px height=calc empty max-height: 80x30 child=15
flex-row grid width=80px height=calc empty min-height: 80x60 child=30
flex-row grid width=80px height=calc empty padding: 80x40 child=15
-flex-row grid width=80px height=calc tall none: 80x300 child=0
+flex-row grid width=80px height=calc tall none: 80x40 child=0
flex-row grid width=80px height=calc tall max-height: 80x30 child=0
flex-row grid width=80px height=calc tall min-height: 80x60 child=0
-flex-row grid width=80px height=calc tall padding: 80x310 child=0
+flex-row grid width=80px height=calc tall padding: 80x40 child=0
flex-row grid width=80px height=auto empty none: 80x40 child=20
flex-row grid width=80px height=auto empty max-height: 80x30 child=15
flex-row grid width=80px height=auto empty min-height: 80x60 child=30
@@ -1418,18 +1418,18 @@ flex-row grid width=50% height=100% empty none: 100x50 child=25
flex-row grid width=50% height=100% empty max-height: 100x30 child=15
flex-row grid width=50% height=100% empty min-height: 100x60 child=30
flex-row grid width=50% height=100% empty padding: 100x50 child=20
-flex-row grid width=50% height=100% tall none: 100x300 child=0
+flex-row grid width=50% height=100% tall none: 100x50 child=0
flex-row grid width=50% height=100% tall max-height: 100x30 child=0
flex-row grid width=50% height=100% tall min-height: 100x60 child=0
-flex-row grid width=50% height=100% tall padding: 100x310 child=0
+flex-row grid width=50% height=100% tall padding: 100x50 child=0
flex-row grid width=50% height=calc empty none: 100x50 child=25
flex-row grid width=50% height=calc empty max-height: 100x30 child=15
flex-row grid width=50% height=calc empty min-height: 100x60 child=30
flex-row grid width=50% height=calc empty padding: 100x50 child=20
-flex-row grid width=50% height=calc tall none: 100x300 child=0
+flex-row grid width=50% height=calc tall none: 100x50 child=0
flex-row grid width=50% height=calc tall max-height: 100x30 child=0
flex-row grid width=50% height=calc tall min-height: 100x60 child=0
-flex-row grid width=50% height=calc tall padding: 100x310 child=0
+flex-row grid width=50% height=calc tall padding: 100x50 child=0
flex-row grid width=50% height=auto empty none: 100x50 child=25
flex-row grid width=50% height=auto empty max-height: 100x30 child=15
flex-row grid width=50% height=auto empty min-height: 100x60 child=30