Skip to content

Truly independent web browser

LibWeb: Size min-content heights of aspect-ratio boxes from the ratio

Andreas Klingb12d0eae00de
diff --git a/Libraries/LibWeb/Rust/src/layout/sizing_context.rs b/Libraries/LibWeb/Rust/src/layout/sizing_context.rs
index a8ac3fc1091..cd49bd65ec9 100644
--- a/Libraries/LibWeb/Rust/src/layout/sizing_context.rs
+++ b/Libraries/LibWeb/Rust/src/layout/sizing_context.rs
@@ -2666,7 +2666,11 @@ impl<'pass> SizingContext<'pass> {
// https://www.w3.org/TR/css-sizing-3/#min-content-block-size
let facts = self.facts(node);
// For block containers, tables, and inline boxes, this is equivalent to the max-content block size.
- if facts.is_block_container() || facts.is_table_box() {
+ // NB: So it is for a non-replaced box with a preferred aspect ratio, whose block size follows from its inline size.
+ if facts.is_block_container()
+ || facts.is_table_box()
+ || (!facts.is_replaced_box() && facts.has_preferred_aspect_ratio())
+ {
return self.calculate_max_content_block_size(node, inline_size, constraints);
}
let auto_size = self.auto_content_size(node);
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 969faf6f223..974691753e3 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
@@ -5211,13 +5211,13 @@ flex-column flex width=auto height=100% empty border-box-min-height: 120x60 chil
flex-column flex width=auto height=100% empty border-box-max-width: 20x10 child=0
flex-column flex width=auto height=100% tall min-height: 120x60 child=30
flex-column flex width=auto height=100% tall min-height-large: 300x150 child=75
-flex-column flex width=auto height=100% tall max-height: 60x30 child=15
-flex-column flex width=auto height=100% tall min-width: 600x300 child=150
-flex-column flex width=auto height=100% tall max-width: 40x20 child=10
+flex-column flex width=auto height=100% tall max-height: 10x5 child=2.5
+flex-column flex width=auto height=100% tall min-width: 150x75 child=37.5
+flex-column flex width=auto height=100% tall max-width: 10x5 child=2.5
flex-column flex width=auto height=100% tall min-width-max-height: 150x30 child=15
flex-column flex width=auto height=100% tall max-width-min-height: 40x60 child=30
flex-column flex width=auto height=100% tall border-box-min-height: 120x60 child=25
-flex-column flex width=auto height=100% tall border-box-max-width: 40x20 child=5
+flex-column flex width=auto height=100% tall border-box-max-width: 20x10 child=0
flex-column flex width=auto height=40px empty min-height: 120x60 child=30
flex-column flex width=auto height=40px empty min-height-large: 300x150 child=75
flex-column flex width=auto height=40px empty max-height: 60x30 child=15
@@ -5266,7 +5266,7 @@ flex-column flex width=80px height=100% empty border-box-max-width: 40x20 child=
flex-column flex width=80px height=100% tall min-height: 80x60 child=30
flex-column flex width=80px height=100% tall min-height-large: 80x150 child=75
flex-column flex width=80px height=100% tall max-height: 80x30 child=15
-flex-column flex width=80px height=100% tall min-width: 150x300 child=150
+flex-column flex width=80px height=100% tall min-width: 150x75 child=37.5
flex-column flex width=80px height=100% tall max-width: 40x20 child=10
flex-column flex width=80px height=100% tall min-width-max-height: 150x30 child=15
flex-column flex width=80px height=100% tall max-width-min-height: 40x60 child=30
@@ -5320,7 +5320,7 @@ flex-column flex width=50% height=100% empty border-box-max-width: 40x20 child=5
flex-column flex width=50% height=100% tall min-height: 100x60 child=30
flex-column flex width=50% height=100% tall min-height-large: 100x150 child=75
flex-column flex width=50% height=100% tall max-height: 100x30 child=15
-flex-column flex width=50% height=100% tall min-width: 150x300 child=150
+flex-column flex width=50% height=100% tall min-width: 150x75 child=37.5
flex-column flex width=50% height=100% tall max-width: 40x20 child=10
flex-column flex width=50% height=100% tall min-width-max-height: 150x30 child=15
flex-column flex width=50% height=100% tall max-width-min-height: 40x60 child=30
@@ -5373,13 +5373,13 @@ flex-column grid width=auto height=100% empty border-box-min-height: 120x60 chil
flex-column grid width=auto height=100% empty border-box-max-width: 20x10 child=0
flex-column grid width=auto height=100% tall min-height: 120x60 child=0
flex-column grid width=auto height=100% tall min-height-large: 300x150 child=0
-flex-column grid width=auto height=100% tall max-height: 60x30 child=0
-flex-column grid width=auto height=100% tall min-width: 600x300 child=0
-flex-column grid width=auto height=100% tall max-width: 40x20 child=0
+flex-column grid width=auto height=100% tall max-height: 10x5 child=0
+flex-column grid width=auto height=100% tall min-width: 150x75 child=0
+flex-column grid width=auto height=100% tall max-width: 10x5 child=0
flex-column grid width=auto height=100% tall min-width-max-height: 150x30 child=0
flex-column grid width=auto height=100% tall max-width-min-height: 40x60 child=0
flex-column grid width=auto height=100% tall border-box-min-height: 120x60 child=0
-flex-column grid width=auto height=100% tall border-box-max-width: 40x20 child=0
+flex-column grid width=auto height=100% tall border-box-max-width: 20x10 child=0
flex-column grid width=auto height=40px empty min-height: 120x60 child=30
flex-column grid width=auto height=40px empty min-height-large: 300x150 child=75
flex-column grid width=auto height=40px empty max-height: 60x30 child=15
@@ -5428,7 +5428,7 @@ flex-column grid width=80px height=100% empty border-box-max-width: 40x20 child=
flex-column grid width=80px height=100% tall min-height: 80x60 child=0
flex-column grid width=80px height=100% tall min-height-large: 80x150 child=0
flex-column grid width=80px height=100% tall max-height: 80x30 child=0
-flex-column grid width=80px height=100% tall min-width: 150x300 child=0
+flex-column grid width=80px height=100% tall min-width: 150x75 child=0
flex-column grid width=80px height=100% tall max-width: 40x20 child=0
flex-column grid width=80px height=100% tall min-width-max-height: 150x30 child=0
flex-column grid width=80px height=100% tall max-width-min-height: 40x60 child=0
@@ -5482,7 +5482,7 @@ flex-column grid width=50% height=100% empty border-box-max-width: 40x20 child=5
flex-column grid width=50% height=100% tall min-height: 100x60 child=0
flex-column grid width=50% height=100% tall min-height-large: 100x150 child=0
flex-column grid width=50% height=100% tall max-height: 100x30 child=0
-flex-column grid width=50% height=100% tall min-width: 150x300 child=0
+flex-column grid width=50% height=100% tall min-width: 150x75 child=0
flex-column grid width=50% height=100% tall max-width: 40x20 child=0
flex-column grid width=50% height=100% tall min-width-max-height: 150x30 child=0
flex-column grid width=50% height=100% tall max-width-min-height: 40x60 child=0
@@ -6343,15 +6343,15 @@ grid flex width=auto height=100% empty min-width-max-height: 150x30 child=15
grid flex width=auto height=100% empty max-width-min-height: 40x60 child=30
grid flex width=auto height=100% empty border-box-min-height: 120x60 child=25
grid flex width=auto height=100% empty border-box-max-width: 20x10 child=0
-grid flex width=auto height=100% tall min-height: 120x300 child=150
-grid flex width=auto height=100% tall min-height-large: 300x300 child=150
-grid flex width=auto height=100% tall max-height: 10x30 child=15
-grid flex width=auto height=100% tall min-width: 150x300 child=150
-grid flex width=auto height=100% tall max-width: 10x300 child=150
+grid flex width=auto height=100% tall min-height: 120x60 child=30
+grid flex width=auto height=100% tall min-height-large: 300x150 child=75
+grid flex width=auto height=100% tall max-height: 10x5 child=2.5
+grid flex width=auto height=100% tall min-width: 150x75 child=37.5
+grid flex width=auto height=100% tall max-width: 10x5 child=2.5
grid flex width=auto height=100% tall min-width-max-height: 150x30 child=15
-grid flex width=auto height=100% tall max-width-min-height: 40x300 child=150
-grid flex width=auto height=100% tall border-box-min-height: 120x310 child=150
-grid flex width=auto height=100% tall border-box-max-width: 20x310 child=150
+grid flex width=auto height=100% tall max-width-min-height: 40x60 child=30
+grid flex width=auto height=100% tall border-box-min-height: 120x60 child=25
+grid flex width=auto height=100% tall border-box-max-width: 20x10 child=0
grid flex width=auto height=40px empty min-height: 120x60 child=30
grid flex width=auto height=40px empty min-height-large: 300x150 child=75
grid flex width=auto height=40px empty max-height: 60x30 child=15
@@ -6397,15 +6397,15 @@ grid flex width=80px height=100% empty min-width-max-height: 150x30 child=15
grid flex width=80px height=100% empty max-width-min-height: 40x60 child=30
grid flex width=80px height=100% empty border-box-min-height: 80x60 child=25
grid flex width=80px height=100% empty border-box-max-width: 40x20 child=5
-grid flex width=80px height=100% tall min-height: 80x300 child=150
-grid flex width=80px height=100% tall min-height-large: 80x300 child=150
+grid flex width=80px height=100% tall min-height: 80x60 child=30
+grid flex width=80px height=100% tall min-height-large: 80x150 child=75
grid flex width=80px height=100% tall max-height: 80x30 child=15
-grid flex width=80px height=100% tall min-width: 150x300 child=150
-grid flex width=80px height=100% tall max-width: 40x300 child=150
+grid flex width=80px height=100% tall min-width: 150x75 child=37.5
+grid flex width=80px height=100% tall max-width: 40x20 child=10
grid flex width=80px height=100% tall min-width-max-height: 150x30 child=15
-grid flex width=80px height=100% tall max-width-min-height: 40x300 child=150
-grid flex width=80px height=100% tall border-box-min-height: 80x310 child=150
-grid flex width=80px height=100% tall border-box-max-width: 40x310 child=150
+grid flex width=80px height=100% tall max-width-min-height: 40x60 child=30
+grid flex width=80px height=100% tall border-box-min-height: 80x60 child=25
+grid flex width=80px height=100% tall border-box-max-width: 40x20 child=5
grid flex width=80px height=40px empty min-height: 80x60 child=30
grid flex width=80px height=40px empty min-height-large: 80x150 child=75
grid flex width=80px height=40px empty max-height: 80x30 child=15
@@ -6451,15 +6451,15 @@ grid flex width=50% height=100% empty min-width-max-height: 150x30 child=15
grid flex width=50% height=100% empty max-width-min-height: 40x60 child=30
grid flex width=50% height=100% empty border-box-min-height: 100x60 child=25
grid flex width=50% height=100% empty border-box-max-width: 40x20 child=5
-grid flex width=50% height=100% tall min-height: 100x300 child=150
-grid flex width=50% height=100% tall min-height-large: 150x300 child=150
+grid flex width=50% height=100% tall min-height: 100x60 child=30
+grid flex width=50% height=100% tall min-height-large: 150x150 child=75
grid flex width=50% height=100% tall max-height: 100x30 child=15
-grid flex width=50% height=100% tall min-width: 150x300 child=150
-grid flex width=50% height=100% tall max-width: 40x300 child=150
+grid flex width=50% height=100% tall min-width: 150x75 child=37.5
+grid flex width=50% height=100% tall max-width: 40x20 child=10
grid flex width=50% height=100% tall min-width-max-height: 150x30 child=15
-grid flex width=50% height=100% tall max-width-min-height: 40x300 child=150
-grid flex width=50% height=100% tall border-box-min-height: 100x310 child=150
-grid flex width=50% height=100% tall border-box-max-width: 40x310 child=150
+grid flex width=50% height=100% tall max-width-min-height: 40x60 child=30
+grid flex width=50% height=100% tall border-box-min-height: 100x60 child=25
+grid flex width=50% height=100% tall border-box-max-width: 40x20 child=5
grid flex width=50% height=40px empty min-height: 100x60 child=30
grid flex width=50% height=40px empty min-height-large: 150x150 child=75
grid flex width=50% height=40px empty max-height: 100x30 child=15
@@ -6505,15 +6505,15 @@ grid grid width=auto height=100% empty min-width-max-height: 150x30 child=15
grid grid width=auto height=100% empty max-width-min-height: 40x60 child=30
grid grid width=auto height=100% empty border-box-min-height: 120x60 child=25
grid grid width=auto height=100% empty border-box-max-width: 20x10 child=0
-grid grid width=auto height=100% tall min-height: 120x300 child=0
-grid grid width=auto height=100% tall min-height-large: 300x300 child=0
-grid grid width=auto height=100% tall max-height: 10x30 child=0
-grid grid width=auto height=100% tall min-width: 150x300 child=0
-grid grid width=auto height=100% tall max-width: 10x300 child=0
+grid grid width=auto height=100% tall min-height: 120x60 child=0
+grid grid width=auto height=100% tall min-height-large: 300x150 child=0
+grid grid width=auto height=100% tall max-height: 10x5 child=0
+grid grid width=auto height=100% tall min-width: 150x75 child=0
+grid grid width=auto height=100% tall max-width: 10x5 child=0
grid grid width=auto height=100% tall min-width-max-height: 150x30 child=0
-grid grid width=auto height=100% tall max-width-min-height: 40x300 child=0
-grid grid width=auto height=100% tall border-box-min-height: 120x310 child=0
-grid grid width=auto height=100% tall border-box-max-width: 20x310 child=0
+grid grid width=auto height=100% tall max-width-min-height: 40x60 child=0
+grid grid width=auto height=100% tall border-box-min-height: 120x60 child=0
+grid grid width=auto height=100% tall border-box-max-width: 20x10 child=0
grid grid width=auto height=40px empty min-height: 120x60 child=30
grid grid width=auto height=40px empty min-height-large: 300x150 child=75
grid grid width=auto height=40px empty max-height: 60x30 child=15
@@ -6559,15 +6559,15 @@ grid grid width=80px height=100% empty min-width-max-height: 150x30 child=15
grid grid width=80px height=100% empty max-width-min-height: 40x60 child=30
grid grid width=80px height=100% empty border-box-min-height: 80x60 child=25
grid grid width=80px height=100% empty border-box-max-width: 40x20 child=5
-grid grid width=80px height=100% tall min-height: 80x300 child=0
-grid grid width=80px height=100% tall min-height-large: 80x300 child=0
+grid grid width=80px height=100% tall min-height: 80x60 child=0
+grid grid width=80px height=100% tall min-height-large: 80x150 child=0
grid grid width=80px height=100% tall max-height: 80x30 child=0
-grid grid width=80px height=100% tall min-width: 150x300 child=0
-grid grid width=80px height=100% tall max-width: 40x300 child=0
+grid grid width=80px height=100% tall min-width: 150x75 child=0
+grid grid width=80px height=100% tall max-width: 40x20 child=0
grid grid width=80px height=100% tall min-width-max-height: 150x30 child=0
-grid grid width=80px height=100% tall max-width-min-height: 40x300 child=0
-grid grid width=80px height=100% tall border-box-min-height: 80x310 child=0
-grid grid width=80px height=100% tall border-box-max-width: 40x310 child=0
+grid grid width=80px height=100% tall max-width-min-height: 40x60 child=0
+grid grid width=80px height=100% tall border-box-min-height: 80x60 child=0
+grid grid width=80px height=100% tall border-box-max-width: 40x20 child=0
grid grid width=80px height=40px empty min-height: 80x60 child=30
grid grid width=80px height=40px empty min-height-large: 80x150 child=75
grid grid width=80px height=40px empty max-height: 80x30 child=15
@@ -6613,15 +6613,15 @@ grid grid width=50% height=100% empty min-width-max-height: 150x30 child=15
grid grid width=50% height=100% empty max-width-min-height: 40x60 child=30
grid grid width=50% height=100% empty border-box-min-height: 100x60 child=25
grid grid width=50% height=100% empty border-box-max-width: 40x20 child=5
-grid grid width=50% height=100% tall min-height: 100x300 child=0
-grid grid width=50% height=100% tall min-height-large: 150x300 child=0
+grid grid width=50% height=100% tall min-height: 100x60 child=0
+grid grid width=50% height=100% tall min-height-large: 150x150 child=0
grid grid width=50% height=100% tall max-height: 100x30 child=0
-grid grid width=50% height=100% tall min-width: 150x300 child=0
-grid grid width=50% height=100% tall max-width: 40x300 child=0
+grid grid width=50% height=100% tall min-width: 150x75 child=0
+grid grid width=50% height=100% tall max-width: 40x20 child=0
grid grid width=50% height=100% tall min-width-max-height: 150x30 child=0
-grid grid width=50% height=100% tall max-width-min-height: 40x300 child=0
-grid grid width=50% height=100% tall border-box-min-height: 100x310 child=0
-grid grid width=50% height=100% tall border-box-max-width: 40x310 child=0
+grid grid width=50% height=100% tall max-width-min-height: 40x60 child=0
+grid grid width=50% height=100% tall border-box-min-height: 100x60 child=0
+grid grid width=50% height=100% tall border-box-max-width: 40x20 child=0
grid grid width=50% height=40px empty min-height: 100x60 child=30
grid grid width=50% height=40px empty min-height-large: 150x150 child=75
grid 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 62188a172ab..73fa3f77b0c 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
@@ -2306,18 +2306,18 @@ flex-column flex width=auto height=100% empty none: 0x0 child=0
flex-column flex width=auto height=100% empty max-height: 0x0 child=0
flex-column flex width=auto height=100% empty min-height: 120x60 child=30
flex-column flex width=auto height=100% empty padding: 20x10 child=0
-flex-column flex width=auto height=100% tall none: 600x300 child=150
-flex-column flex width=auto height=100% tall max-height: 60x30 child=15
+flex-column flex width=auto height=100% tall none: 10x5 child=2.5
+flex-column flex width=auto height=100% tall max-height: 10x5 child=2.5
flex-column flex width=auto height=100% tall min-height: 120x60 child=30
-flex-column flex width=auto height=100% tall padding: 620x310 child=150
+flex-column flex width=auto height=100% tall padding: 20x10 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=30
flex-column flex width=auto height=calc empty padding: 20x10 child=0
-flex-column flex width=auto height=calc tall none: 600x300 child=150
-flex-column flex width=auto height=calc tall max-height: 60x30 child=15
+flex-column flex width=auto height=calc tall none: 10x5 child=2.5
+flex-column flex width=auto height=calc tall max-height: 10x5 child=2.5
flex-column flex width=auto height=calc tall min-height: 120x60 child=30
-flex-column flex width=auto height=calc tall padding: 620x310 child=150
+flex-column flex width=auto height=calc tall padding: 20x10 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
flex-column flex width=auto height=auto empty min-height: 120x60 child=30
@@ -2330,18 +2330,18 @@ flex-column flex width=80px height=100% empty none: 80x40 child=20
flex-column flex width=80px height=100% empty max-height: 80x30 child=15
flex-column flex width=80px height=100% empty min-height: 80x60 child=30
flex-column flex width=80px height=100% empty padding: 80x40 child=15
-flex-column flex width=80px height=100% tall none: 80x300 child=150
+flex-column flex width=80px height=100% tall none: 80x40 child=20
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=100% tall padding: 80x40 child=15
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 none: 80x40 child=20
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=calc tall padding: 80x40 child=15
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
@@ -2354,18 +2354,18 @@ flex-column flex width=50% height=100% empty none: 100x50 child=25
flex-column flex width=50% height=100% empty max-height: 100x30 child=15
flex-column flex width=50% height=100% empty min-height: 100x60 child=30
flex-column flex width=50% height=100% empty padding: 100x50 child=20
-flex-column flex width=50% height=100% tall none: 100x300 child=150
+flex-column flex width=50% height=100% tall none: 100x50 child=25
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=100% tall padding: 100x50 child=20
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 none: 100x50 child=25
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=calc tall padding: 100x50 child=20
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
@@ -2378,18 +2378,18 @@ flex-column grid width=auto height=100% empty none: 0x0 child=0
flex-column grid width=auto height=100% empty max-height: 0x0 child=0
flex-column grid width=auto height=100% empty min-height: 120x60 child=30
flex-column grid width=auto height=100% empty padding: 20x10 child=0
-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 none: 10x5 child=0
+flex-column grid width=auto height=100% tall max-height: 10x5 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=100% tall padding: 20x10 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 none: 10x5 child=0
+flex-column grid width=auto height=calc tall max-height: 10x5 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=calc tall padding: 20x10 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
flex-column grid width=auto height=auto empty min-height: 120x60 child=30
@@ -2402,18 +2402,18 @@ flex-column grid width=80px height=100% empty none: 80x40 child=20
flex-column grid width=80px height=100% empty max-height: 80x30 child=15
flex-column grid width=80px height=100% empty min-height: 80x60 child=30
flex-column grid width=80px height=100% empty padding: 80x40 child=15
-flex-column grid width=80px height=100% tall none: 80x300 child=0
+flex-column grid width=80px height=100% tall none: 80x40 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=100% tall padding: 80x40 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 none: 80x40 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: 80x60 child=0
-flex-column grid width=80px height=calc tall padding: 80x310 child=0
+flex-column grid width=80px height=calc tall padding: 80x40 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
flex-column grid width=80px height=auto empty min-height: 80x60 child=30
@@ -2426,18 +2426,18 @@ flex-column grid width=50% height=100% empty none: 100x50 child=25
flex-column grid width=50% height=100% empty max-height: 100x30 child=15
flex-column grid width=50% height=100% empty min-height: 100x60 child=30
flex-column grid width=50% height=100% empty padding: 100x50 child=20
-flex-column grid width=50% height=100% tall none: 100x300 child=0
+flex-column grid width=50% height=100% tall none: 100x50 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=100% tall padding: 100x50 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 none: 100x50 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: 100x60 child=0
-flex-column grid width=50% height=calc tall padding: 100x310 child=0
+flex-column grid width=50% height=calc tall padding: 100x50 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
flex-column grid width=50% height=auto empty min-height: 100x60 child=30
@@ -2810,18 +2810,18 @@ grid flex width=auto height=100% empty none: 0x0 child=0
grid flex width=auto height=100% empty max-height: 0x0 child=0
grid flex width=auto height=100% empty min-height: 120x60 child=30
grid flex width=auto height=100% empty padding: 20x10 child=0
-grid flex width=auto height=100% tall none: 10x300 child=150
-grid flex width=auto height=100% tall max-height: 10x30 child=15
-grid flex width=auto height=100% tall min-height: 120x300 child=150
-grid flex width=auto height=100% tall padding: 20x310 child=150
+grid flex width=auto height=100% tall none: 10x5 child=2.5
+grid flex width=auto height=100% tall max-height: 10x5 child=2.5
+grid flex width=auto height=100% tall min-height: 120x60 child=30
+grid flex width=auto height=100% tall padding: 20x10 child=0
grid flex width=auto height=calc empty none: 0x10 child=5
grid flex width=auto height=calc empty max-height: 0x10 child=5
grid flex width=auto height=calc empty min-height: 120x60 child=30
grid flex width=auto height=calc empty padding: 20x15 child=2.5
-grid flex width=auto height=calc tall none: 10x160 child=80
-grid flex width=auto height=calc tall max-height: 10x25 child=12.5
-grid flex width=auto height=calc tall min-height: 120x160 child=80
-grid flex width=auto height=calc tall padding: 20x165 child=77.5
+grid flex width=auto height=calc tall none: 10x12.5 child=6.25
+grid flex width=auto height=calc tall max-height: 10x12.5 child=6.25
+grid flex width=auto height=calc tall min-height: 120x60 child=30
+grid flex width=auto height=calc tall padding: 20x15 child=2.5
grid flex width=auto height=auto empty none: 0x0 child=0
grid flex width=auto height=auto empty max-height: 0x0 child=0
grid flex width=auto height=auto empty min-height: 120x60 child=30
@@ -2834,18 +2834,18 @@ grid flex width=80px height=100% empty none: 80x40 child=20
grid flex width=80px height=100% empty max-height: 80x30 child=15
grid flex width=80px height=100% empty min-height: 80x60 child=30
grid flex width=80px height=100% empty padding: 80x40 child=15
-grid flex width=80px height=100% tall none: 80x300 child=150
+grid flex width=80px height=100% tall none: 80x40 child=20
grid flex width=80px height=100% tall max-height: 80x30 child=15
-grid flex width=80px height=100% tall min-height: 80x300 child=150
-grid flex width=80px height=100% tall padding: 80x310 child=150
+grid flex width=80px height=100% tall min-height: 80x60 child=30
+grid flex width=80px height=100% tall padding: 80x40 child=15
grid flex width=80px height=calc empty none: 80x30 child=15
grid flex width=80px height=calc empty max-height: 80x25 child=12.5
grid flex width=80px height=calc empty min-height: 80x60 child=30
grid flex width=80px height=calc empty padding: 80x30 child=10
-grid flex width=80px height=calc tall none: 80x160 child=80
+grid flex width=80px height=calc tall none: 80x30 child=15
grid flex width=80px height=calc tall max-height: 80x25 child=12.5
-grid flex width=80px height=calc tall min-height: 80x160 child=80
-grid flex width=80px height=calc tall padding: 80x165 child=77.5
+grid flex width=80px height=calc tall min-height: 80x60 child=30
+grid flex width=80px height=calc tall padding: 80x30 child=10
grid flex width=80px height=auto empty none: 80x40 child=20
grid flex width=80px height=auto empty max-height: 80x30 child=15
grid flex width=80px height=auto empty min-height: 80x60 child=30
@@ -2858,18 +2858,18 @@ grid flex width=50% height=100% empty none: 100x50 child=25
grid flex width=50% height=100% empty max-height: 100x30 child=15
grid flex width=50% height=100% empty min-height: 100x60 child=30
grid flex width=50% height=100% empty padding: 100x50 child=20
-grid flex width=50% height=100% tall none: 100x300 child=150
+grid flex width=50% height=100% tall none: 100x50 child=25
grid flex width=50% height=100% tall max-height: 100x30 child=15
-grid flex width=50% height=100% tall min-height: 100x300 child=150
-grid flex width=50% height=100% tall padding: 100x310 child=150
+grid flex width=50% height=100% tall min-height: 100x60 child=30
+grid flex width=50% height=100% tall padding: 100x50 child=20
grid flex width=50% height=calc empty none: 100x35 child=17.5
grid flex width=50% height=calc empty max-height: 100x25 child=12.5
grid flex width=50% height=calc empty min-height: 100x60 child=30
grid flex width=50% height=calc empty padding: 100x35 child=12.5
-grid flex width=50% height=calc tall none: 100x160 child=80
+grid flex width=50% height=calc tall none: 100x35 child=17.5
grid flex width=50% height=calc tall max-height: 100x25 child=12.5
-grid flex width=50% height=calc tall min-height: 100x160 child=80
-grid flex width=50% height=calc tall padding: 100x165 child=77.5
+grid flex width=50% height=calc tall min-height: 100x60 child=30
+grid flex width=50% height=calc tall padding: 100x35 child=12.5
grid flex width=50% height=auto empty none: 100x50 child=25
grid flex width=50% height=auto empty max-height: 100x30 child=15
grid flex width=50% height=auto empty min-height: 100x60 child=30
@@ -2882,18 +2882,18 @@ grid grid width=auto height=100% empty none: 0x0 child=0
grid grid width=auto height=100% empty max-height: 0x0 child=0
grid grid width=auto height=100% empty min-height: 120x60 child=30
grid grid width=auto height=100% empty padding: 20x10 child=0
-grid grid width=auto height=100% tall none: 10x300 child=0
-grid grid width=auto height=100% tall max-height: 10x30 child=0
-grid grid width=auto height=100% tall min-height: 120x300 child=0
-grid grid width=auto height=100% tall padding: 20x310 child=0
+grid grid width=auto height=100% tall none: 10x5 child=0
+grid grid width=auto height=100% tall max-height: 10x5 child=0
+grid grid width=auto height=100% tall min-height: 120x60 child=0
+grid grid width=auto height=100% tall padding: 20x10 child=0
grid grid width=auto height=calc empty none: 0x10 child=5
grid grid width=auto height=calc empty max-height: 0x10 child=5
grid grid width=auto height=calc empty min-height: 120x60 child=30
grid grid width=auto height=calc empty padding: 20x15 child=2.5
-grid grid width=auto height=calc tall none: 10x160 child=0
-grid grid width=auto height=calc tall max-height: 10x25 child=0
-grid grid width=auto height=calc tall min-height: 120x160 child=0
-grid grid width=auto height=calc tall padding: 20x165 child=0
+grid grid width=auto height=calc tall none: 10x12.5 child=0
+grid grid width=auto height=calc tall max-height: 10x12.5 child=0
+grid grid width=auto height=calc tall min-height: 120x60 child=0
+grid grid width=auto height=calc tall padding: 20x15 child=0
grid grid width=auto height=auto empty none: 0x0 child=0
grid grid width=auto height=auto empty max-height: 0x0 child=0
grid grid width=auto height=auto empty min-height: 120x60 child=30
@@ -2906,18 +2906,18 @@ grid grid width=80px height=100% empty none: 80x40 child=20
grid grid width=80px height=100% empty max-height: 80x30 child=15
grid grid width=80px height=100% empty min-height: 80x60 child=30
grid grid width=80px height=100% empty padding: 80x40 child=15
-grid grid width=80px height=100% tall none: 80x300 child=0
+grid grid width=80px height=100% tall none: 80x40 child=0
grid grid width=80px height=100% tall max-height: 80x30 child=0
-grid grid width=80px height=100% tall min-height: 80x300 child=0
-grid grid width=80px height=100% tall padding: 80x310 child=0
+grid grid width=80px height=100% tall min-height: 80x60 child=0
+grid grid width=80px height=100% tall padding: 80x40 child=0
grid grid width=80px height=calc empty none: 80x30 child=15
grid grid width=80px height=calc empty max-height: 80x25 child=12.5
grid grid width=80px height=calc empty min-height: 80x60 child=30
grid grid width=80px height=calc empty padding: 80x30 child=10
-grid grid width=80px height=calc tall none: 80x160 child=0
+grid grid width=80px height=calc tall none: 80x30 child=0
grid grid width=80px height=calc tall max-height: 80x25 child=0
-grid grid width=80px height=calc tall min-height: 80x160 child=0
-grid grid width=80px height=calc tall padding: 80x165 child=0
+grid grid width=80px height=calc tall min-height: 80x60 child=0
+grid grid width=80px height=calc tall padding: 80x30 child=0
grid grid width=80px height=auto empty none: 80x40 child=20
grid grid width=80px height=auto empty max-height: 80x30 child=15
grid grid width=80px height=auto empty min-height: 80x60 child=30
@@ -2930,18 +2930,18 @@ grid grid width=50% height=100% empty none: 100x50 child=25
grid grid width=50% height=100% empty max-height: 100x30 child=15
grid grid width=50% height=100% empty min-height: 100x60 child=30
grid grid width=50% height=100% empty padding: 100x50 child=20
-grid grid width=50% height=100% tall none: 100x300 child=0
+grid grid width=50% height=100% tall none: 100x50 child=0
grid grid width=50% height=100% tall max-height: 100x30 child=0
-grid grid width=50% height=100% tall min-height: 100x300 child=0
-grid grid width=50% height=100% tall padding: 100x310 child=0
+grid grid width=50% height=100% tall min-height: 100x60 child=0
+grid grid width=50% height=100% tall padding: 100x50 child=0
grid grid width=50% height=calc empty none: 100x35 child=17.5
grid grid width=50% height=calc empty max-height: 100x25 child=12.5
grid grid width=50% height=calc empty min-height: 100x60 child=30
grid grid width=50% height=calc empty padding: 100x35 child=12.5
-grid grid width=50% height=calc tall none: 100x160 child=0
+grid grid width=50% height=calc tall none: 100x35 child=0
grid grid width=50% height=calc tall max-height: 100x25 child=0
-grid grid width=50% height=calc tall min-height: 100x160 child=0
-grid grid width=50% height=calc tall padding: 100x165 child=0
+grid grid width=50% height=calc tall min-height: 100x60 child=0
+grid grid width=50% height=calc tall padding: 100x35 child=0
grid grid width=50% height=auto empty none: 100x50 child=25
grid grid width=50% height=auto empty max-height: 100x30 child=15
grid grid width=50% height=auto empty min-height: 100x60 child=30