Skip to content

Truly independent web browser

LibWeb: Grow max-content heights of aspect-ratio boxes to content

Andreas Klinge69cac6c46eb
diff --git a/Libraries/LibWeb/Rust/src/layout/flex_formatting_context.rs b/Libraries/LibWeb/Rust/src/layout/flex_formatting_context.rs
index 6c3d0e5541b..0a6b77d7550 100644
--- a/Libraries/LibWeb/Rust/src/layout/flex_formatting_context.rs
+++ b/Libraries/LibWeb/Rust/src/layout/flex_formatting_context.rs
@@ -1150,15 +1150,18 @@ impl<'pass> FlexFormattingContext<'pass> {
// intrinsic size and no cross size to resolve the ratio against.
// - in response to cross size min/max constraints.
let facts = self.facts(node);
- if facts.has_auto_content_aspect_ratio() {
- if !basis_is_definite
- && !facts.has_auto_content_width()
- && !facts.has_auto_content_height()
- && !self.has_definite_cross_size(index)
- && self.has_definite_main_size_used(self.container_used())
- {
- flex_base_size = self.inner_main_size_used(self.container_used());
- }
+ if facts.has_auto_content_aspect_ratio()
+ && !basis_is_definite
+ && !facts.has_auto_content_width()
+ && !facts.has_auto_content_height()
+ && !self.has_definite_cross_size(index)
+ && self.has_definite_main_size_used(self.container_used())
+ {
+ flex_base_size = self.inner_main_size_used(self.container_used());
+ }
+ // https://drafts.csswg.org/css-sizing-4/#aspect-ratio-size-transfers
+ // NB: Cross axis limits transfer to an indefinite main size.
+ if facts.has_auto_content_aspect_ratio() || (facts.has_preferred_aspect_ratio() && !basis_is_definite) {
let (min_cross, _) = self.computed_cross_min_size(node);
let (max_cross, _) = self.computed_cross_max_size(node);
flex_base_size = self.adjust_main_size_through_aspect_ratio(node, flex_base_size, min_cross, max_cross);
diff --git a/Libraries/LibWeb/Rust/src/layout/sizing_context.rs b/Libraries/LibWeb/Rust/src/layout/sizing_context.rs
index b63872d3d2c..1508e38af07 100644
--- a/Libraries/LibWeb/Rust/src/layout/sizing_context.rs
+++ b/Libraries/LibWeb/Rust/src/layout/sizing_context.rs
@@ -2615,8 +2615,39 @@ impl<'pass> SizingContext<'pass> {
inline_size: CssPixels,
constraints: ContainingBlockConstraints,
) -> CssPixels {
- if let Some(ratio) = self.facts(node).preferred_aspect_ratio() {
- return ratio.divide(inline_size);
+ if self.facts(node).has_preferred_aspect_ratio() {
+ // OPTIMIZATION: The automatic minimum size measures the content, so the result is cached.
+ let kind = IntrinsicSizeCacheKind::MaxContentBlock;
+ let key = formatting_context::cache_key(Some(inline_size), None, constraints);
+ if let Some(cached) = self.intrinsic_block_cache_get(node, kind, key) {
+ return cached.size;
+ }
+ let block_size = self.content_block_size_from_aspect_ratio(node, inline_size);
+ // https://drafts.csswg.org/css-sizing-4/#aspect-ratio-minimum
+ let minimum = self.automatic_minimum_size_from_aspect_ratio(
+ node,
+ SizingAxis::Block,
+ inline_size,
+ block_size,
+ AvailableSpace {
+ inline_size: AvailableSize::definite(inline_size),
+ block_size: AvailableSize::Indefinite,
+ },
+ constraints,
+ None,
+ );
+ let size = minimum.map_or(block_size, |minimum| block_size.max(minimum));
+ self.intrinsic_block_cache_put(
+ node,
+ kind,
+ key,
+ IntrinsicBlockSizeMeasurement {
+ size,
+ depends_on_percentage_block_size: self.own_style_depends_on_percentage_block_size(node),
+ depends_on_percentage_inline_basis: self.measurement_root_observes_percentage_inline_basis(node),
+ },
+ );
+ return size;
}
let auto_size = self.auto_content_size(node);
if let Some(height) = auto_size.height {
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 122ab6444a0..c1972e2eeb3 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
@@ -4545,13 +4545,13 @@ flex-column block width=auto height=auto empty border-box-min-height: 120x60 chi
flex-column block width=auto height=auto empty border-box-max-width: 20x10 child=0
flex-column block width=auto height=auto tall min-height: 120x60 child=0
flex-column block width=auto height=auto tall min-height-large: 300x150 child=0
-flex-column block width=auto height=auto tall max-height: 10x5 child=0
-flex-column block width=auto height=auto tall min-width: 150x75 child=0
-flex-column block width=auto height=auto tall max-width: 10x5 child=0
+flex-column block width=auto height=auto tall max-height: 60x30 child=0
+flex-column block width=auto height=auto tall min-width: 675x337.5 child=0
+flex-column block width=auto height=auto tall max-width: 40x20 child=0
flex-column block width=auto height=auto tall min-width-max-height: 150x30 child=0
flex-column block width=auto height=auto tall max-width-min-height: 40x60 child=0
flex-column block width=auto height=auto tall border-box-min-height: 120x60 child=0
-flex-column block width=auto height=auto tall border-box-max-width: 30x15 child=0
+flex-column block width=auto height=auto tall border-box-max-width: 40x20 child=0
flex-column block width=auto height=100% empty min-height: 120x60 child=0
flex-column block width=auto height=100% empty min-height-large: 300x150 child=0
flex-column block width=auto height=100% empty max-height: 0x0 child=0
@@ -4569,7 +4569,7 @@ flex-column block width=auto height=100% tall max-width: 10x5 child=0
flex-column block width=auto height=100% tall min-width-max-height: 150x30 child=0
flex-column block width=auto height=100% tall max-width-min-height: 40x60 child=0
flex-column block width=auto height=100% tall border-box-min-height: 120x60 child=0
-flex-column block width=auto height=100% tall border-box-max-width: 30x15 child=0
+flex-column block width=auto height=100% tall border-box-max-width: 20x10 child=0
flex-column block width=auto height=40px empty min-height: 120x60 child=30
flex-column block width=auto height=40px empty min-height-large: 300x150 child=75
flex-column block width=auto height=40px empty max-height: 60x30 child=15
@@ -4600,7 +4600,7 @@ flex-column block width=80px height=auto empty border-box-max-width: 40x20 child
flex-column block width=80px height=auto tall min-height: 80x60 child=30
flex-column block width=80px height=auto tall min-height-large: 80x150 child=75
flex-column block width=80px height=auto tall max-height: 80x30 child=15
-flex-column block width=80px height=auto tall min-width: 150x75 child=37.5
+flex-column block width=80px height=auto tall min-width: 150x337.5 child=168.75
flex-column block width=80px height=auto tall max-width: 40x20 child=10
flex-column block width=80px height=auto tall min-width-max-height: 150x30 child=15
flex-column block width=80px height=auto tall max-width-min-height: 40x60 child=30
@@ -4654,7 +4654,7 @@ flex-column block width=50% height=auto empty border-box-max-width: 40x20 child=
flex-column block width=50% height=auto tall min-height: 100x60 child=30
flex-column block width=50% height=auto tall min-height-large: 100x150 child=75
flex-column block width=50% height=auto tall max-height: 100x30 child=15
-flex-column block width=50% height=auto tall min-width: 150x75 child=37.5
+flex-column block width=50% height=auto tall min-width: 150x337.5 child=168.75
flex-column block width=50% height=auto tall max-width: 40x20 child=10
flex-column block width=50% height=auto tall min-width-max-height: 150x30 child=15
flex-column block width=50% height=auto tall max-width-min-height: 40x60 child=30
@@ -4707,13 +4707,13 @@ flex-column flow-root width=auto height=auto empty border-box-min-height: 120x60
flex-column flow-root width=auto height=auto empty border-box-max-width: 20x10 child=0
flex-column flow-root width=auto height=auto tall min-height: 120x60 child=0
flex-column flow-root width=auto height=auto tall min-height-large: 300x150 child=0
-flex-column flow-root width=auto height=auto tall max-height: 10x5 child=0
-flex-column flow-root width=auto height=auto tall min-width: 150x75 child=0
-flex-column flow-root width=auto height=auto tall max-width: 10x5 child=0
+flex-column flow-root width=auto height=auto tall max-height: 60x30 child=0
+flex-column flow-root width=auto height=auto tall min-width: 675x337.5 child=0
+flex-column flow-root width=auto height=auto tall max-width: 40x20 child=0
flex-column flow-root width=auto height=auto tall min-width-max-height: 150x30 child=0
flex-column flow-root width=auto height=auto tall max-width-min-height: 40x60 child=0
flex-column flow-root width=auto height=auto tall border-box-min-height: 120x60 child=0
-flex-column flow-root width=auto height=auto tall border-box-max-width: 30x15 child=0
+flex-column flow-root width=auto height=auto tall border-box-max-width: 40x20 child=0
flex-column flow-root width=auto height=100% empty min-height: 120x60 child=0
flex-column flow-root width=auto height=100% empty min-height-large: 300x150 child=0
flex-column flow-root width=auto height=100% empty max-height: 0x0 child=0
@@ -4731,7 +4731,7 @@ flex-column flow-root width=auto height=100% tall max-width: 10x5 child=0
flex-column flow-root width=auto height=100% tall min-width-max-height: 150x30 child=0
flex-column flow-root width=auto height=100% tall max-width-min-height: 40x60 child=0
flex-column flow-root width=auto height=100% tall border-box-min-height: 120x60 child=0
-flex-column flow-root width=auto height=100% tall border-box-max-width: 30x15 child=0
+flex-column flow-root width=auto height=100% tall border-box-max-width: 20x10 child=0
flex-column flow-root width=auto height=40px empty min-height: 120x60 child=30
flex-column flow-root width=auto height=40px empty min-height-large: 300x150 child=75
flex-column flow-root width=auto height=40px empty max-height: 60x30 child=15
@@ -4762,7 +4762,7 @@ flex-column flow-root width=80px height=auto empty border-box-max-width: 40x20 c
flex-column flow-root width=80px height=auto tall min-height: 80x60 child=30
flex-column flow-root width=80px height=auto tall min-height-large: 80x150 child=75
flex-column flow-root width=80px height=auto tall max-height: 80x30 child=15
-flex-column flow-root width=80px height=auto tall min-width: 150x75 child=37.5
+flex-column flow-root width=80px height=auto tall min-width: 150x337.5 child=168.75
flex-column flow-root width=80px height=auto tall max-width: 40x20 child=10
flex-column flow-root width=80px height=auto tall min-width-max-height: 150x30 child=15
flex-column flow-root width=80px height=auto tall max-width-min-height: 40x60 child=30
@@ -4816,7 +4816,7 @@ flex-column flow-root width=50% height=auto empty border-box-max-width: 40x20 ch
flex-column flow-root width=50% height=auto tall min-height: 100x60 child=30
flex-column flow-root width=50% height=auto tall min-height-large: 100x150 child=75
flex-column flow-root width=50% height=auto tall max-height: 100x30 child=15
-flex-column flow-root width=50% height=auto tall min-width: 150x75 child=37.5
+flex-column flow-root width=50% height=auto tall min-width: 150x337.5 child=168.75
flex-column flow-root width=50% height=auto tall max-width: 40x20 child=10
flex-column flow-root width=50% height=auto tall min-width-max-height: 150x30 child=15
flex-column flow-root width=50% height=auto tall max-width-min-height: 40x60 child=30
@@ -4869,13 +4869,13 @@ flex-column inline-block width=auto height=auto empty border-box-min-height: 120
flex-column inline-block width=auto height=auto empty border-box-max-width: 20x10 child=0
flex-column inline-block width=auto height=auto tall min-height: 120x60 child=0
flex-column inline-block width=auto height=auto tall min-height-large: 300x150 child=0
-flex-column inline-block width=auto height=auto tall max-height: 10x5 child=0
-flex-column inline-block width=auto height=auto tall min-width: 150x75 child=0
-flex-column inline-block width=auto height=auto tall max-width: 10x5 child=0
+flex-column inline-block width=auto height=auto tall max-height: 60x30 child=0
+flex-column inline-block width=auto height=auto tall min-width: 675x337.5 child=0
+flex-column inline-block width=auto height=auto tall max-width: 40x20 child=0
flex-column inline-block width=auto height=auto tall min-width-max-height: 150x30 child=0
flex-column inline-block width=auto height=auto tall max-width-min-height: 40x60 child=0
flex-column inline-block width=auto height=auto tall border-box-min-height: 120x60 child=0
-flex-column inline-block width=auto height=auto tall border-box-max-width: 30x15 child=0
+flex-column inline-block width=auto height=auto tall border-box-max-width: 40x20 child=0
flex-column inline-block width=auto height=100% empty min-height: 120x60 child=0
flex-column inline-block width=auto height=100% empty min-height-large: 300x150 child=0
flex-column inline-block width=auto height=100% empty max-height: 0x0 child=0
@@ -4893,7 +4893,7 @@ flex-column inline-block width=auto height=100% tall max-width: 10x5 child=0
flex-column inline-block width=auto height=100% tall min-width-max-height: 150x30 child=0
flex-column inline-block width=auto height=100% tall max-width-min-height: 40x60 child=0
flex-column inline-block width=auto height=100% tall border-box-min-height: 120x60 child=0
-flex-column inline-block width=auto height=100% tall border-box-max-width: 30x15 child=0
+flex-column inline-block width=auto height=100% tall border-box-max-width: 20x10 child=0
flex-column inline-block width=auto height=40px empty min-height: 120x60 child=30
flex-column inline-block width=auto height=40px empty min-height-large: 300x150 child=75
flex-column inline-block width=auto height=40px empty max-height: 60x30 child=15
@@ -4924,7 +4924,7 @@ flex-column inline-block width=80px height=auto empty border-box-max-width: 40x2
flex-column inline-block width=80px height=auto tall min-height: 80x60 child=30
flex-column inline-block width=80px height=auto tall min-height-large: 80x150 child=75
flex-column inline-block width=80px height=auto tall max-height: 80x30 child=15
-flex-column inline-block width=80px height=auto tall min-width: 150x75 child=37.5
+flex-column inline-block width=80px height=auto tall min-width: 150x337.5 child=168.75
flex-column inline-block width=80px height=auto tall max-width: 40x20 child=10
flex-column inline-block width=80px height=auto tall min-width-max-height: 150x30 child=15
flex-column inline-block width=80px height=auto tall max-width-min-height: 40x60 child=30
@@ -4978,7 +4978,7 @@ flex-column inline-block width=50% height=auto empty border-box-max-width: 40x20
flex-column inline-block width=50% height=auto tall min-height: 100x60 child=30
flex-column inline-block width=50% height=auto tall min-height-large: 100x150 child=75
flex-column inline-block width=50% height=auto tall max-height: 100x30 child=15
-flex-column inline-block width=50% height=auto tall min-width: 150x75 child=37.5
+flex-column inline-block width=50% height=auto tall min-width: 150x337.5 child=168.75
flex-column inline-block width=50% height=auto tall max-width: 40x20 child=10
flex-column inline-block width=50% height=auto tall min-width-max-height: 150x30 child=15
flex-column inline-block width=50% height=auto tall max-width-min-height: 40x60 child=30
@@ -5031,13 +5031,13 @@ flex-column float width=auto height=auto empty border-box-min-height: 120x60 chi
flex-column float width=auto height=auto empty border-box-max-width: 20x10 child=0
flex-column float width=auto height=auto tall min-height: 120x60 child=0
flex-column float width=auto height=auto tall min-height-large: 300x150 child=0
-flex-column float width=auto height=auto tall max-height: 10x5 child=0
-flex-column float width=auto height=auto tall min-width: 150x75 child=0
-flex-column float width=auto height=auto tall max-width: 10x5 child=0
+flex-column float width=auto height=auto tall max-height: 60x30 child=0
+flex-column float width=auto height=auto tall min-width: 675x337.5 child=0
+flex-column float width=auto height=auto tall max-width: 40x20 child=0
flex-column float width=auto height=auto tall min-width-max-height: 150x30 child=0
flex-column float width=auto height=auto tall max-width-min-height: 40x60 child=0
flex-column float width=auto height=auto tall border-box-min-height: 120x60 child=0
-flex-column float width=auto height=auto tall border-box-max-width: 30x15 child=0
+flex-column float width=auto height=auto tall border-box-max-width: 40x20 child=0
flex-column float width=auto height=100% empty min-height: 120x60 child=0
flex-column float width=auto height=100% empty min-height-large: 300x150 child=0
flex-column float width=auto height=100% empty max-height: 0x0 child=0
@@ -5055,7 +5055,7 @@ flex-column float width=auto height=100% tall max-width: 10x5 child=0
flex-column float width=auto height=100% tall min-width-max-height: 150x30 child=0
flex-column float width=auto height=100% tall max-width-min-height: 40x60 child=0
flex-column float width=auto height=100% tall border-box-min-height: 120x60 child=0
-flex-column float width=auto height=100% tall border-box-max-width: 30x15 child=0
+flex-column float width=auto height=100% tall border-box-max-width: 20x10 child=0
flex-column float width=auto height=40px empty min-height: 120x60 child=30
flex-column float width=auto height=40px empty min-height-large: 300x150 child=75
flex-column float width=auto height=40px empty max-height: 60x30 child=15
@@ -5086,7 +5086,7 @@ flex-column float width=80px height=auto empty border-box-max-width: 40x20 child
flex-column float width=80px height=auto tall min-height: 80x60 child=30
flex-column float width=80px height=auto tall min-height-large: 80x150 child=75
flex-column float width=80px height=auto tall max-height: 80x30 child=15
-flex-column float width=80px height=auto tall min-width: 150x75 child=37.5
+flex-column float width=80px height=auto tall min-width: 150x337.5 child=168.75
flex-column float width=80px height=auto tall max-width: 40x20 child=10
flex-column float width=80px height=auto tall min-width-max-height: 150x30 child=15
flex-column float width=80px height=auto tall max-width-min-height: 40x60 child=30
@@ -5140,7 +5140,7 @@ flex-column float width=50% height=auto empty border-box-max-width: 40x20 child=
flex-column float width=50% height=auto tall min-height: 100x60 child=30
flex-column float width=50% height=auto tall min-height-large: 100x150 child=75
flex-column float width=50% height=auto tall max-height: 100x30 child=15
-flex-column float width=50% height=auto tall min-width: 150x75 child=37.5
+flex-column float width=50% height=auto tall min-width: 150x337.5 child=168.75
flex-column float width=50% height=auto tall max-width: 40x20 child=10
flex-column float width=50% height=auto tall min-width-max-height: 150x30 child=15
flex-column float width=50% height=auto tall max-width-min-height: 40x60 child=30
@@ -5703,7 +5703,7 @@ grid block width=auto height=100% tall max-width: 10x5 child=2.5
grid block width=auto height=100% tall min-width-max-height: 150x30 child=15
grid block width=auto height=100% tall max-width-min-height: 10x60 child=30
grid block width=auto height=100% tall border-box-min-height: 20x60 child=25
-grid block width=auto height=100% tall border-box-max-width: 20x15 child=2.5
+grid block width=auto height=100% tall border-box-max-width: 20x10 child=0
grid block width=auto height=40px empty min-height: 0x60 child=30
grid block width=auto height=40px empty min-height-large: 0x150 child=75
grid block width=auto height=40px empty max-height: 0x30 child=15
@@ -5802,7 +5802,7 @@ grid block width=50% height=100% empty max-width: 40x20 child=10
grid block width=50% height=100% empty min-width-max-height: 150x30 child=15
grid block width=50% height=100% empty max-width-min-height: 40x60 child=30
grid block width=50% height=100% empty border-box-min-height: 100x60 child=25
-grid block width=50% height=100% empty border-box-max-width: 40x25 child=7.5
+grid block width=50% height=100% empty border-box-max-width: 40x20 child=5
grid block width=50% height=100% tall min-height: 100x60 child=30
grid block width=50% height=100% tall min-height-large: 100x150 child=75
grid block width=50% height=100% tall max-height: 100x30 child=15
@@ -5811,7 +5811,7 @@ grid block width=50% height=100% tall max-width: 40x20 child=10
grid block width=50% height=100% tall min-width-max-height: 150x30 child=15
grid block width=50% height=100% tall max-width-min-height: 40x60 child=30
grid block width=50% height=100% tall border-box-min-height: 100x60 child=25
-grid block width=50% height=100% tall border-box-max-width: 40x25 child=7.5
+grid block width=50% height=100% tall border-box-max-width: 40x20 child=5
grid block width=50% height=40px empty min-height: 100x60 child=30
grid block width=50% height=40px empty min-height-large: 100x150 child=75
grid block width=50% height=40px empty max-height: 100x30 child=15
@@ -5865,7 +5865,7 @@ grid flow-root width=auto height=100% tall max-width: 10x5 child=2.5
grid flow-root width=auto height=100% tall min-width-max-height: 150x30 child=15
grid flow-root width=auto height=100% tall max-width-min-height: 10x60 child=30
grid flow-root width=auto height=100% tall border-box-min-height: 20x60 child=25
-grid flow-root width=auto height=100% tall border-box-max-width: 20x15 child=2.5
+grid flow-root width=auto height=100% tall border-box-max-width: 20x10 child=0
grid flow-root width=auto height=40px empty min-height: 0x60 child=30
grid flow-root width=auto height=40px empty min-height-large: 0x150 child=75
grid flow-root width=auto height=40px empty max-height: 0x30 child=15
@@ -5964,7 +5964,7 @@ grid flow-root width=50% height=100% empty max-width: 40x20 child=10
grid flow-root width=50% height=100% empty min-width-max-height: 150x30 child=15
grid flow-root width=50% height=100% empty max-width-min-height: 40x60 child=30
grid flow-root width=50% height=100% empty border-box-min-height: 100x60 child=25
-grid flow-root width=50% height=100% empty border-box-max-width: 40x25 child=7.5
+grid flow-root width=50% height=100% empty border-box-max-width: 40x20 child=5
grid flow-root width=50% height=100% tall min-height: 100x60 child=30
grid flow-root width=50% height=100% tall min-height-large: 100x150 child=75
grid flow-root width=50% height=100% tall max-height: 100x30 child=15
@@ -5973,7 +5973,7 @@ grid flow-root width=50% height=100% tall max-width: 40x20 child=10
grid flow-root width=50% height=100% tall min-width-max-height: 150x30 child=15
grid flow-root width=50% height=100% tall max-width-min-height: 40x60 child=30
grid flow-root width=50% height=100% tall border-box-min-height: 100x60 child=25
-grid flow-root width=50% height=100% tall border-box-max-width: 40x25 child=7.5
+grid flow-root width=50% height=100% tall border-box-max-width: 40x20 child=5
grid flow-root width=50% height=40px empty min-height: 100x60 child=30
grid flow-root width=50% height=40px empty min-height-large: 100x150 child=75
grid flow-root width=50% height=40px empty max-height: 100x30 child=15
@@ -6027,7 +6027,7 @@ grid inline-block width=auto height=100% tall max-width: 10x5 child=2.5
grid inline-block width=auto height=100% tall min-width-max-height: 150x30 child=15
grid inline-block width=auto height=100% tall max-width-min-height: 10x60 child=30
grid inline-block width=auto height=100% tall border-box-min-height: 20x60 child=25
-grid inline-block width=auto height=100% tall border-box-max-width: 20x15 child=2.5
+grid inline-block width=auto height=100% tall border-box-max-width: 20x10 child=0
grid inline-block width=auto height=40px empty min-height: 0x60 child=30
grid inline-block width=auto height=40px empty min-height-large: 0x150 child=75
grid inline-block width=auto height=40px empty max-height: 0x30 child=15
@@ -6126,7 +6126,7 @@ grid inline-block width=50% height=100% empty max-width: 40x20 child=10
grid inline-block width=50% height=100% empty min-width-max-height: 150x30 child=15
grid inline-block width=50% height=100% empty max-width-min-height: 40x60 child=30
grid inline-block width=50% height=100% empty border-box-min-height: 100x60 child=25
-grid inline-block width=50% height=100% empty border-box-max-width: 40x25 child=7.5
+grid inline-block width=50% height=100% empty border-box-max-width: 40x20 child=5
grid inline-block width=50% height=100% tall min-height: 100x60 child=30
grid inline-block width=50% height=100% tall min-height-large: 100x150 child=75
grid inline-block width=50% height=100% tall max-height: 100x30 child=15
@@ -6135,7 +6135,7 @@ grid inline-block width=50% height=100% tall max-width: 40x20 child=10
grid inline-block width=50% height=100% tall min-width-max-height: 150x30 child=15
grid inline-block width=50% height=100% tall max-width-min-height: 40x60 child=30
grid inline-block width=50% height=100% tall border-box-min-height: 100x60 child=25
-grid inline-block width=50% height=100% tall border-box-max-width: 40x25 child=7.5
+grid inline-block width=50% height=100% tall border-box-max-width: 40x20 child=5
grid inline-block width=50% height=40px empty min-height: 100x60 child=30
grid inline-block width=50% height=40px empty min-height-large: 100x150 child=75
grid inline-block width=50% height=40px empty max-height: 100x30 child=15
@@ -6189,7 +6189,7 @@ grid float width=auto height=100% tall max-width: 10x5 child=2.5
grid float width=auto height=100% tall min-width-max-height: 150x30 child=15
grid float width=auto height=100% tall max-width-min-height: 10x60 child=30
grid float width=auto height=100% tall border-box-min-height: 20x60 child=25
-grid float width=auto height=100% tall border-box-max-width: 20x15 child=2.5
+grid float width=auto height=100% tall border-box-max-width: 20x10 child=0
grid float width=auto height=40px empty min-height: 0x60 child=30
grid float width=auto height=40px empty min-height-large: 0x150 child=75
grid float width=auto height=40px empty max-height: 0x30 child=15
@@ -6288,7 +6288,7 @@ grid float width=50% height=100% empty max-width: 40x20 child=10
grid float width=50% height=100% empty min-width-max-height: 150x30 child=15
grid float width=50% height=100% empty max-width-min-height: 40x60 child=30
grid float width=50% height=100% empty border-box-min-height: 100x60 child=25
-grid float width=50% height=100% empty border-box-max-width: 40x25 child=7.5
+grid float width=50% height=100% empty border-box-max-width: 40x20 child=5
grid float width=50% height=100% tall min-height: 100x60 child=30
grid float width=50% height=100% tall min-height-large: 100x150 child=75
grid float width=50% height=100% tall max-height: 100x30 child=15
@@ -6297,7 +6297,7 @@ grid float width=50% height=100% tall max-width: 40x20 child=10
grid float width=50% height=100% tall min-width-max-height: 150x30 child=15
grid float width=50% height=100% tall max-width-min-height: 40x60 child=30
grid float width=50% height=100% tall border-box-min-height: 100x60 child=25
-grid float width=50% height=100% tall border-box-max-width: 40x25 child=7.5
+grid float width=50% height=100% tall border-box-max-width: 40x20 child=5
grid float width=50% height=40px empty min-height: 100x60 child=30
grid float width=50% height=40px empty min-height-large: 100x150 child=75
grid float width=50% height=40px empty max-height: 100x30 child=15
@@ -6450,7 +6450,7 @@ grid flex width=50% height=100% empty max-width: 40x20 child=10
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: 40x25 child=7.5
+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: 100x300 child=150
grid flex width=50% height=100% tall max-height: 100x30 child=15
@@ -6612,7 +6612,7 @@ grid grid width=50% height=100% empty max-width: 40x20 child=10
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: 40x25 child=7.5
+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: 100x300 child=0
grid grid width=50% height=100% tall max-height: 100x30 child=0
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 70a802f8253..e2156c65e30 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
@@ -2021,7 +2021,7 @@ flex-column block width=auto height=100% empty padding: 20x10 child=0
flex-column block width=auto height=100% tall none: 10x5 child=0
flex-column block width=auto height=100% tall max-height: 10x5 child=0
flex-column block width=auto height=100% tall min-height: 120x60 child=0
-flex-column block width=auto height=100% tall padding: 30x15 child=0
+flex-column block width=auto height=100% tall padding: 20x10 child=0
flex-column block width=auto height=calc empty none: 0x0 child=0
flex-column block width=auto height=calc empty max-height: 0x0 child=0
flex-column block width=auto height=calc empty min-height: 120x60 child=0
@@ -2029,63 +2029,63 @@ flex-column block width=auto height=calc empty padding: 20x10 child=0
flex-column block width=auto height=calc tall none: 10x5 child=0
flex-column block width=auto height=calc tall max-height: 10x5 child=0
flex-column block width=auto height=calc tall min-height: 120x60 child=0
-flex-column block width=auto height=calc tall padding: 30x15 child=0
+flex-column block width=auto height=calc tall padding: 20x10 child=0
flex-column block width=auto height=auto empty none: 0x0 child=0
flex-column block width=auto height=auto empty max-height: 0x0 child=0
flex-column block width=auto height=auto empty min-height: 120x60 child=0
flex-column block width=auto height=auto empty padding: 20x10 child=0
-flex-column block width=auto height=auto tall none: 10x5 child=0
-flex-column block width=auto height=auto tall max-height: 10x5 child=0
+flex-column block width=auto height=auto tall none: 605x302.5 child=0
+flex-column block width=auto height=auto tall max-height: 60x30 child=0
flex-column block width=auto height=auto tall min-height: 120x60 child=0
-flex-column block width=auto height=auto tall padding: 30x15 child=0
+flex-column block width=auto height=auto tall padding: 620x310 child=0
flex-column block width=80px height=100% empty none: 80x40 child=20
flex-column block width=80px height=100% empty max-height: 80x30 child=15
flex-column block width=80px height=100% empty min-height: 80x60 child=30
-flex-column block width=80px height=100% empty padding: 80x45 child=17.5
+flex-column block width=80px height=100% empty padding: 80x40 child=15
flex-column block width=80px height=100% tall none: 80x40 child=20
flex-column block width=80px height=100% tall max-height: 80x30 child=15
flex-column block width=80px height=100% tall min-height: 80x60 child=30
-flex-column block width=80px height=100% tall padding: 80x45 child=17.5
+flex-column block width=80px height=100% tall padding: 80x40 child=15
flex-column block width=80px height=calc empty none: 80x40 child=20
flex-column block width=80px height=calc empty max-height: 80x30 child=15
flex-column block width=80px height=calc empty min-height: 80x60 child=30
-flex-column block width=80px height=calc empty padding: 80x45 child=17.5
+flex-column block width=80px height=calc empty padding: 80x40 child=15
flex-column block width=80px height=calc tall none: 80x40 child=20
flex-column block width=80px height=calc tall max-height: 80x30 child=15
flex-column block width=80px height=calc tall min-height: 80x60 child=30
-flex-column block width=80px height=calc tall padding: 80x45 child=17.5
+flex-column block width=80px height=calc tall padding: 80x40 child=15
flex-column block width=80px height=auto empty none: 80x40 child=20
flex-column block width=80px height=auto empty max-height: 80x30 child=15
flex-column block width=80px height=auto empty min-height: 80x60 child=30
-flex-column block width=80px height=auto empty padding: 80x45 child=17.5
-flex-column block width=80px height=auto tall none: 80x40 child=20
+flex-column block width=80px height=auto empty padding: 80x40 child=15
+flex-column block width=80px height=auto tall none: 80x320 child=160
flex-column block width=80px height=auto tall max-height: 80x30 child=15
flex-column block width=80px height=auto tall min-height: 80x60 child=30
-flex-column block width=80px height=auto tall padding: 80x45 child=17.5
+flex-column block width=80px height=auto tall padding: 80x325 child=157.5
flex-column block width=50% height=100% empty none: 100x50 child=25
flex-column block width=50% height=100% empty max-height: 100x30 child=15
flex-column block width=50% height=100% empty min-height: 100x60 child=30
-flex-column block width=50% height=100% empty padding: 100x55 child=22.5
+flex-column block width=50% height=100% empty padding: 100x50 child=20
flex-column block width=50% height=100% tall none: 100x50 child=25
flex-column block width=50% height=100% tall max-height: 100x30 child=15
flex-column block width=50% height=100% tall min-height: 100x60 child=30
-flex-column block width=50% height=100% tall padding: 100x55 child=22.5
+flex-column block width=50% height=100% tall padding: 100x50 child=20
flex-column block width=50% height=calc empty none: 100x50 child=25
flex-column block width=50% height=calc empty max-height: 100x30 child=15
flex-column block width=50% height=calc empty min-height: 100x60 child=30
-flex-column block width=50% height=calc empty padding: 100x55 child=22.5
+flex-column block width=50% height=calc empty padding: 100x50 child=20
flex-column block width=50% height=calc tall none: 100x50 child=25
flex-column block width=50% height=calc tall max-height: 100x30 child=15
flex-column block width=50% height=calc tall min-height: 100x60 child=30
-flex-column block width=50% height=calc tall padding: 100x55 child=22.5
+flex-column block width=50% height=calc tall padding: 100x50 child=20
flex-column block width=50% height=auto empty none: 100x50 child=25
flex-column block width=50% height=auto empty max-height: 100x30 child=15
flex-column block width=50% height=auto empty min-height: 100x60 child=30
-flex-column block width=50% height=auto empty padding: 100x55 child=22.5
-flex-column block width=50% height=auto tall none: 100x50 child=25
+flex-column block width=50% height=auto empty padding: 100x50 child=20
+flex-column block width=50% height=auto tall none: 100x325 child=162.5
flex-column block width=50% height=auto tall max-height: 100x30 child=15
flex-column block width=50% height=auto tall min-height: 100x60 child=30
-flex-column block width=50% height=auto tall padding: 100x55 child=22.5
+flex-column block width=50% height=auto tall padding: 100x330 child=160
flex-column flow-root width=auto height=100% empty none: 0x0 child=0
flex-column flow-root width=auto height=100% empty max-height: 0x0 child=0
flex-column flow-root width=auto height=100% empty min-height: 120x60 child=0
@@ -2093,7 +2093,7 @@ flex-column flow-root width=auto height=100% empty padding: 20x10 child=0
flex-column flow-root width=auto height=100% tall none: 10x5 child=0
flex-column flow-root width=auto height=100% tall max-height: 10x5 child=0
flex-column flow-root width=auto height=100% tall min-height: 120x60 child=0
-flex-column flow-root width=auto height=100% tall padding: 30x15 child=0
+flex-column flow-root width=auto height=100% tall padding: 20x10 child=0
flex-column flow-root width=auto height=calc empty none: 0x0 child=0
flex-column flow-root width=auto height=calc empty max-height: 0x0 child=0
flex-column flow-root width=auto height=calc empty min-height: 120x60 child=0
@@ -2101,63 +2101,63 @@ flex-column flow-root width=auto height=calc empty padding: 20x10 child=0
flex-column flow-root width=auto height=calc tall none: 10x5 child=0
flex-column flow-root width=auto height=calc tall max-height: 10x5 child=0
flex-column flow-root width=auto height=calc tall min-height: 120x60 child=0
-flex-column flow-root width=auto height=calc tall padding: 30x15 child=0
+flex-column flow-root width=auto height=calc tall padding: 20x10 child=0
flex-column flow-root width=auto height=auto empty none: 0x0 child=0
flex-column flow-root width=auto height=auto empty max-height: 0x0 child=0
flex-column flow-root width=auto height=auto empty min-height: 120x60 child=0
flex-column flow-root width=auto height=auto empty padding: 20x10 child=0
-flex-column flow-root width=auto height=auto tall none: 10x5 child=0
-flex-column flow-root width=auto height=auto tall max-height: 10x5 child=0
+flex-column flow-root width=auto height=auto tall none: 605x302.5 child=0
+flex-column flow-root width=auto height=auto tall max-height: 60x30 child=0
flex-column flow-root width=auto height=auto tall min-height: 120x60 child=0
-flex-column flow-root width=auto height=auto tall padding: 30x15 child=0
+flex-column flow-root width=auto height=auto tall padding: 620x310 child=0
flex-column flow-root width=80px height=100% empty none: 80x40 child=20
flex-column flow-root width=80px height=100% empty max-height: 80x30 child=15
flex-column flow-root width=80px height=100% empty min-height: 80x60 child=30
-flex-column flow-root width=80px height=100% empty padding: 80x45 child=17.5
+flex-column flow-root width=80px height=100% empty padding: 80x40 child=15
flex-column flow-root width=80px height=100% tall none: 80x40 child=20
flex-column flow-root width=80px height=100% tall max-height: 80x30 child=15
flex-column flow-root width=80px height=100% tall min-height: 80x60 child=30
-flex-column flow-root width=80px height=100% tall padding: 80x45 child=17.5
+flex-column flow-root width=80px height=100% tall padding: 80x40 child=15
flex-column flow-root width=80px height=calc empty none: 80x40 child=20
flex-column flow-root width=80px height=calc empty max-height: 80x30 child=15
flex-column flow-root width=80px height=calc empty min-height: 80x60 child=30
-flex-column flow-root width=80px height=calc empty padding: 80x45 child=17.5
+flex-column flow-root width=80px height=calc empty padding: 80x40 child=15
flex-column flow-root width=80px height=calc tall none: 80x40 child=20
flex-column flow-root width=80px height=calc tall max-height: 80x30 child=15
flex-column flow-root width=80px height=calc tall min-height: 80x60 child=30
-flex-column flow-root width=80px height=calc tall padding: 80x45 child=17.5
+flex-column flow-root width=80px height=calc tall padding: 80x40 child=15
flex-column flow-root width=80px height=auto empty none: 80x40 child=20
flex-column flow-root width=80px height=auto empty max-height: 80x30 child=15
flex-column flow-root width=80px height=auto empty min-height: 80x60 child=30
-flex-column flow-root width=80px height=auto empty padding: 80x45 child=17.5
-flex-column flow-root width=80px height=auto tall none: 80x40 child=20
+flex-column flow-root width=80px height=auto empty padding: 80x40 child=15
+flex-column flow-root width=80px height=auto tall none: 80x320 child=160
flex-column flow-root width=80px height=auto tall max-height: 80x30 child=15
flex-column flow-root width=80px height=auto tall min-height: 80x60 child=30
-flex-column flow-root width=80px height=auto tall padding: 80x45 child=17.5
+flex-column flow-root width=80px height=auto tall padding: 80x325 child=157.5
flex-column flow-root width=50% height=100% empty none: 100x50 child=25
flex-column flow-root width=50% height=100% empty max-height: 100x30 child=15
flex-column flow-root width=50% height=100% empty min-height: 100x60 child=30
-flex-column flow-root width=50% height=100% empty padding: 100x55 child=22.5
+flex-column flow-root width=50% height=100% empty padding: 100x50 child=20
flex-column flow-root width=50% height=100% tall none: 100x50 child=25
flex-column flow-root width=50% height=100% tall max-height: 100x30 child=15
flex-column flow-root width=50% height=100% tall min-height: 100x60 child=30
-flex-column flow-root width=50% height=100% tall padding: 100x55 child=22.5
+flex-column flow-root width=50% height=100% tall padding: 100x50 child=20
flex-column flow-root width=50% height=calc empty none: 100x50 child=25
flex-column flow-root width=50% height=calc empty max-height: 100x30 child=15
flex-column flow-root width=50% height=calc empty min-height: 100x60 child=30
-flex-column flow-root width=50% height=calc empty padding: 100x55 child=22.5
+flex-column flow-root width=50% height=calc empty padding: 100x50 child=20
flex-column flow-root width=50% height=calc tall none: 100x50 child=25
flex-column flow-root width=50% height=calc tall max-height: 100x30 child=15
flex-column flow-root width=50% height=calc tall min-height: 100x60 child=30
-flex-column flow-root width=50% height=calc tall padding: 100x55 child=22.5
+flex-column flow-root width=50% height=calc tall padding: 100x50 child=20
flex-column flow-root width=50% height=auto empty none: 100x50 child=25
flex-column flow-root width=50% height=auto empty max-height: 100x30 child=15
flex-column flow-root width=50% height=auto empty min-height: 100x60 child=30
-flex-column flow-root width=50% height=auto empty padding: 100x55 child=22.5
-flex-column flow-root width=50% height=auto tall none: 100x50 child=25
+flex-column flow-root width=50% height=auto empty padding: 100x50 child=20
+flex-column flow-root width=50% height=auto tall none: 100x325 child=162.5
flex-column flow-root width=50% height=auto tall max-height: 100x30 child=15
flex-column flow-root width=50% height=auto tall min-height: 100x60 child=30
-flex-column flow-root width=50% height=auto tall padding: 100x55 child=22.5
+flex-column flow-root width=50% height=auto tall padding: 100x330 child=160
flex-column inline-block width=auto height=100% empty none: 0x0 child=0
flex-column inline-block width=auto height=100% empty max-height: 0x0 child=0
flex-column inline-block width=auto height=100% empty min-height: 120x60 child=0
@@ -2165,7 +2165,7 @@ flex-column inline-block width=auto height=100% empty padding: 20x10 child=0
flex-column inline-block width=auto height=100% tall none: 10x5 child=0
flex-column inline-block width=auto height=100% tall max-height: 10x5 child=0
flex-column inline-block width=auto height=100% tall min-height: 120x60 child=0
-flex-column inline-block width=auto height=100% tall padding: 30x15 child=0
+flex-column inline-block width=auto height=100% tall padding: 20x10 child=0
flex-column inline-block width=auto height=calc empty none: 0x0 child=0
flex-column inline-block width=auto height=calc empty max-height: 0x0 child=0
flex-column inline-block width=auto height=calc empty min-height: 120x60 child=0
@@ -2173,63 +2173,63 @@ flex-column inline-block width=auto height=calc empty padding: 20x10 child=0
flex-column inline-block width=auto height=calc tall none: 10x5 child=0
flex-column inline-block width=auto height=calc tall max-height: 10x5 child=0
flex-column inline-block width=auto height=calc tall min-height: 120x60 child=0
-flex-column inline-block width=auto height=calc tall padding: 30x15 child=0
+flex-column inline-block width=auto height=calc tall padding: 20x10 child=0
flex-column inline-block width=auto height=auto empty none: 0x0 child=0
flex-column inline-block width=auto height=auto empty max-height: 0x0 child=0
flex-column inline-block width=auto height=auto empty min-height: 120x60 child=0
flex-column inline-block width=auto height=auto empty padding: 20x10 child=0
-flex-column inline-block width=auto height=auto tall none: 10x5 child=0
-flex-column inline-block width=auto height=auto tall max-height: 10x5 child=0
+flex-column inline-block width=auto height=auto tall none: 605x302.5 child=0
+flex-column inline-block width=auto height=auto tall max-height: 60x30 child=0
flex-column inline-block width=auto height=auto tall min-height: 120x60 child=0
-flex-column inline-block width=auto height=auto tall padding: 30x15 child=0
+flex-column inline-block width=auto height=auto tall padding: 620x310 child=0
flex-column inline-block width=80px height=100% empty none: 80x40 child=20
flex-column inline-block width=80px height=100% empty max-height: 80x30 child=15
flex-column inline-block width=80px height=100% empty min-height: 80x60 child=30
-flex-column inline-block width=80px height=100% empty padding: 80x45 child=17.5
+flex-column inline-block width=80px height=100% empty padding: 80x40 child=15
flex-column inline-block width=80px height=100% tall none: 80x40 child=20
flex-column inline-block width=80px height=100% tall max-height: 80x30 child=15
flex-column inline-block width=80px height=100% tall min-height: 80x60 child=30
-flex-column inline-block width=80px height=100% tall padding: 80x45 child=17.5
+flex-column inline-block width=80px height=100% tall padding: 80x40 child=15
flex-column inline-block width=80px height=calc empty none: 80x40 child=20
flex-column inline-block width=80px height=calc empty max-height: 80x30 child=15
flex-column inline-block width=80px height=calc empty min-height: 80x60 child=30
-flex-column inline-block width=80px height=calc empty padding: 80x45 child=17.5
+flex-column inline-block width=80px height=calc empty padding: 80x40 child=15
flex-column inline-block width=80px height=calc tall none: 80x40 child=20
flex-column inline-block width=80px height=calc tall max-height: 80x30 child=15
flex-column inline-block width=80px height=calc tall min-height: 80x60 child=30
-flex-column inline-block width=80px height=calc tall padding: 80x45 child=17.5
+flex-column inline-block width=80px height=calc tall padding: 80x40 child=15
flex-column inline-block width=80px height=auto empty none: 80x40 child=20
flex-column inline-block width=80px height=auto empty max-height: 80x30 child=15
flex-column inline-block width=80px height=auto empty min-height: 80x60 child=30
-flex-column inline-block width=80px height=auto empty padding: 80x45 child=17.5
-flex-column inline-block width=80px height=auto tall none: 80x40 child=20
+flex-column inline-block width=80px height=auto empty padding: 80x40 child=15
+flex-column inline-block width=80px height=auto tall none: 80x320 child=160
flex-column inline-block width=80px height=auto tall max-height: 80x30 child=15
flex-column inline-block width=80px height=auto tall min-height: 80x60 child=30
-flex-column inline-block width=80px height=auto tall padding: 80x45 child=17.5
+flex-column inline-block width=80px height=auto tall padding: 80x325 child=157.5
flex-column inline-block width=50% height=100% empty none: 100x50 child=25
flex-column inline-block width=50% height=100% empty max-height: 100x30 child=15
flex-column inline-block width=50% height=100% empty min-height: 100x60 child=30
-flex-column inline-block width=50% height=100% empty padding: 100x55 child=22.5
+flex-column inline-block width=50% height=100% empty padding: 100x50 child=20
flex-column inline-block width=50% height=100% tall none: 100x50 child=25
flex-column inline-block width=50% height=100% tall max-height: 100x30 child=15
flex-column inline-block width=50% height=100% tall min-height: 100x60 child=30
-flex-column inline-block width=50% height=100% tall padding: 100x55 child=22.5
+flex-column inline-block width=50% height=100% tall padding: 100x50 child=20
flex-column inline-block width=50% height=calc empty none: 100x50 child=25
flex-column inline-block width=50% height=calc empty max-height: 100x30 child=15
flex-column inline-block width=50% height=calc empty min-height: 100x60 child=30
-flex-column inline-block width=50% height=calc empty padding: 100x55 child=22.5
+flex-column inline-block width=50% height=calc empty padding: 100x50 child=20
flex-column inline-block width=50% height=calc tall none: 100x50 child=25
flex-column inline-block width=50% height=calc tall max-height: 100x30 child=15
flex-column inline-block width=50% height=calc tall min-height: 100x60 child=30
-flex-column inline-block width=50% height=calc tall padding: 100x55 child=22.5
+flex-column inline-block width=50% height=calc tall padding: 100x50 child=20
flex-column inline-block width=50% height=auto empty none: 100x50 child=25
flex-column inline-block width=50% height=auto empty max-height: 100x30 child=15
flex-column inline-block width=50% height=auto empty min-height: 100x60 child=30
-flex-column inline-block width=50% height=auto empty padding: 100x55 child=22.5
-flex-column inline-block width=50% height=auto tall none: 100x50 child=25
+flex-column inline-block width=50% height=auto empty padding: 100x50 child=20
+flex-column inline-block width=50% height=auto tall none: 100x325 child=162.5
flex-column inline-block width=50% height=auto tall max-height: 100x30 child=15
flex-column inline-block width=50% height=auto tall min-height: 100x60 child=30
-flex-column inline-block width=50% height=auto tall padding: 100x55 child=22.5
+flex-column inline-block width=50% height=auto tall padding: 100x330 child=160
flex-column float width=auto height=100% empty none: 0x0 child=0
flex-column float width=auto height=100% empty max-height: 0x0 child=0
flex-column float width=auto height=100% empty min-height: 120x60 child=0
@@ -2237,7 +2237,7 @@ flex-column float width=auto height=100% empty padding: 20x10 child=0
flex-column float width=auto height=100% tall none: 10x5 child=0
flex-column float width=auto height=100% tall max-height: 10x5 child=0
flex-column float width=auto height=100% tall min-height: 120x60 child=0
-flex-column float width=auto height=100% tall padding: 30x15 child=0
+flex-column float width=auto height=100% tall padding: 20x10 child=0
flex-column float width=auto height=calc empty none: 0x0 child=0
flex-column float width=auto height=calc empty max-height: 0x0 child=0
flex-column float width=auto height=calc empty min-height: 120x60 child=0
@@ -2245,63 +2245,63 @@ flex-column float width=auto height=calc empty padding: 20x10 child=0
flex-column float width=auto height=calc tall none: 10x5 child=0
flex-column float width=auto height=calc tall max-height: 10x5 child=0
flex-column float width=auto height=calc tall min-height: 120x60 child=0
-flex-column float width=auto height=calc tall padding: 30x15 child=0
+flex-column float width=auto height=calc tall padding: 20x10 child=0
flex-column float width=auto height=auto empty none: 0x0 child=0
flex-column float width=auto height=auto empty max-height: 0x0 child=0
flex-column float width=auto height=auto empty min-height: 120x60 child=0
flex-column float width=auto height=auto empty padding: 20x10 child=0
-flex-column float width=auto height=auto tall none: 10x5 child=0
-flex-column float width=auto height=auto tall max-height: 10x5 child=0
+flex-column float width=auto height=auto tall none: 605x302.5 child=0
+flex-column float width=auto height=auto tall max-height: 60x30 child=0
flex-column float width=auto height=auto tall min-height: 120x60 child=0
-flex-column float width=auto height=auto tall padding: 30x15 child=0
+flex-column float width=auto height=auto tall padding: 620x310 child=0
flex-column float width=80px height=100% empty none: 80x40 child=20
flex-column float width=80px height=100% empty max-height: 80x30 child=15
flex-column float width=80px height=100% empty min-height: 80x60 child=30
-flex-column float width=80px height=100% empty padding: 80x45 child=17.5
+flex-column float width=80px height=100% empty padding: 80x40 child=15
flex-column float width=80px height=100% tall none: 80x40 child=20
flex-column float width=80px height=100% tall max-height: 80x30 child=15
flex-column float width=80px height=100% tall min-height: 80x60 child=30
-flex-column float width=80px height=100% tall padding: 80x45 child=17.5
+flex-column float width=80px height=100% tall padding: 80x40 child=15
flex-column float width=80px height=calc empty none: 80x40 child=20
flex-column float width=80px height=calc empty max-height: 80x30 child=15
flex-column float width=80px height=calc empty min-height: 80x60 child=30
-flex-column float width=80px height=calc empty padding: 80x45 child=17.5
+flex-column float width=80px height=calc empty padding: 80x40 child=15
flex-column float width=80px height=calc tall none: 80x40 child=20
flex-column float width=80px height=calc tall max-height: 80x30 child=15
flex-column float width=80px height=calc tall min-height: 80x60 child=30
-flex-column float width=80px height=calc tall padding: 80x45 child=17.5
+flex-column float width=80px height=calc tall padding: 80x40 child=15
flex-column float width=80px height=auto empty none: 80x40 child=20
flex-column float width=80px height=auto empty max-height: 80x30 child=15
flex-column float width=80px height=auto empty min-height: 80x60 child=30
-flex-column float width=80px height=auto empty padding: 80x45 child=17.5
-flex-column float width=80px height=auto tall none: 80x40 child=20
+flex-column float width=80px height=auto empty padding: 80x40 child=15
+flex-column float width=80px height=auto tall none: 80x320 child=160
flex-column float width=80px height=auto tall max-height: 80x30 child=15
flex-column float width=80px height=auto tall min-height: 80x60 child=30
-flex-column float width=80px height=auto tall padding: 80x45 child=17.5
+flex-column float width=80px height=auto tall padding: 80x325 child=157.5
flex-column float width=50% height=100% empty none: 100x50 child=25
flex-column float width=50% height=100% empty max-height: 100x30 child=15
flex-column float width=50% height=100% empty min-height: 100x60 child=30
-flex-column float width=50% height=100% empty padding: 100x55 child=22.5
+flex-column float width=50% height=100% empty padding: 100x50 child=20
flex-column float width=50% height=100% tall none: 100x50 child=25
flex-column float width=50% height=100% tall max-height: 100x30 child=15
flex-column float width=50% height=100% tall min-height: 100x60 child=30
-flex-column float width=50% height=100% tall padding: 100x55 child=22.5
+flex-column float width=50% height=100% tall padding: 100x50 child=20
flex-column float width=50% height=calc empty none: 100x50 child=25
flex-column float width=50% height=calc empty max-height: 100x30 child=15
flex-column float width=50% height=calc empty min-height: 100x60 child=30
-flex-column float width=50% height=calc empty padding: 100x55 child=22.5
+flex-column float width=50% height=calc empty padding: 100x50 child=20
flex-column float width=50% height=calc tall none: 100x50 child=25
flex-column float width=50% height=calc tall max-height: 100x30 child=15
flex-column float width=50% height=calc tall min-height: 100x60 child=30
-flex-column float width=50% height=calc tall padding: 100x55 child=22.5
+flex-column float width=50% height=calc tall padding: 100x50 child=20
flex-column float width=50% height=auto empty none: 100x50 child=25
flex-column float width=50% height=auto empty max-height: 100x30 child=15
flex-column float width=50% height=auto empty min-height: 100x60 child=30
-flex-column float width=50% height=auto empty padding: 100x55 child=22.5
-flex-column float width=50% height=auto tall none: 100x50 child=25
+flex-column float width=50% height=auto empty padding: 100x50 child=20
+flex-column float width=50% height=auto tall none: 100x325 child=162.5
flex-column float width=50% height=auto tall max-height: 100x30 child=15
flex-column float width=50% height=auto tall min-height: 100x60 child=30
-flex-column float width=50% height=auto tall padding: 100x55 child=22.5
+flex-column float width=50% height=auto tall padding: 100x330 child=160
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=0
@@ -2525,7 +2525,7 @@ grid block width=auto height=100% empty padding: 10x10 child=0
grid block width=auto height=100% tall none: 10x5 child=2.5
grid block width=auto height=100% tall max-height: 10x5 child=2.5
grid block width=auto height=100% tall min-height: 10x60 child=30
-grid block width=auto height=100% tall padding: 20x15 child=2.5
+grid block width=auto height=100% tall padding: 20x10 child=0
grid block width=auto height=calc empty none: 0x10 child=5
grid block width=auto height=calc empty max-height: 0x10 child=5
grid block width=auto height=calc empty min-height: 0x60 child=30
@@ -2533,7 +2533,7 @@ grid block width=auto height=calc empty padding: 10x15 child=2.5
grid block width=auto height=calc tall none: 10x12.5 child=6.25
grid block width=auto height=calc tall max-height: 10x12.5 child=6.25
grid block width=auto height=calc tall min-height: 10x60 child=30
-grid block width=auto height=calc tall padding: 20x17.5 child=3.75
+grid block width=auto height=calc tall padding: 20x15 child=2.5
grid block width=auto height=auto empty none: 0x0 child=0
grid block width=auto height=auto empty max-height: 0x0 child=0
grid block width=auto height=auto empty min-height: 0x60 child=30
@@ -2569,19 +2569,19 @@ grid block width=80px height=auto tall padding: 80x325 child=157.5
grid block width=50% height=100% empty none: 100x50 child=25
grid block width=50% height=100% empty max-height: 100x30 child=15
grid block width=50% height=100% empty min-height: 100x60 child=30
-grid block width=50% height=100% empty padding: 100x55 child=22.5
+grid block width=50% height=100% empty padding: 100x50 child=20
grid block width=50% height=100% tall none: 100x50 child=25
grid block width=50% height=100% tall max-height: 100x30 child=15
grid block width=50% height=100% tall min-height: 100x60 child=30
-grid block width=50% height=100% tall padding: 100x55 child=22.5
+grid block width=50% height=100% tall padding: 100x50 child=20
grid block width=50% height=calc empty none: 100x35 child=17.5
grid block width=50% height=calc empty max-height: 100x25 child=12.5
grid block width=50% height=calc empty min-height: 100x60 child=30
-grid block width=50% height=calc empty padding: 100x37.5 child=13.75
+grid block width=50% height=calc empty padding: 100x35 child=12.5
grid block width=50% height=calc tall none: 100x35 child=17.5
grid block width=50% height=calc tall max-height: 100x25 child=12.5
grid block width=50% height=calc tall min-height: 100x60 child=30
-grid block width=50% height=calc tall padding: 100x37.5 child=13.75
+grid block width=50% height=calc tall padding: 100x35 child=12.5
grid block width=50% height=auto empty none: 100x50 child=25
grid block width=50% height=auto empty max-height: 100x30 child=15
grid block width=50% height=auto empty min-height: 100x60 child=30
@@ -2597,7 +2597,7 @@ grid flow-root width=auto height=100% empty padding: 10x10 child=0
grid flow-root width=auto height=100% tall none: 10x5 child=2.5
grid flow-root width=auto height=100% tall max-height: 10x5 child=2.5
grid flow-root width=auto height=100% tall min-height: 10x60 child=30
-grid flow-root width=auto height=100% tall padding: 20x15 child=2.5
+grid flow-root width=auto height=100% tall padding: 20x10 child=0
grid flow-root width=auto height=calc empty none: 0x10 child=5
grid flow-root width=auto height=calc empty max-height: 0x10 child=5
grid flow-root width=auto height=calc empty min-height: 0x60 child=30
@@ -2605,7 +2605,7 @@ grid flow-root width=auto height=calc empty padding: 10x15 child=2.5
grid flow-root width=auto height=calc tall none: 10x12.5 child=6.25
grid flow-root width=auto height=calc tall max-height: 10x12.5 child=6.25
grid flow-root width=auto height=calc tall min-height: 10x60 child=30
-grid flow-root width=auto height=calc tall padding: 20x17.5 child=3.75
+grid flow-root width=auto height=calc tall padding: 20x15 child=2.5
grid flow-root width=auto height=auto empty none: 0x0 child=0
grid flow-root width=auto height=auto empty max-height: 0x0 child=0
grid flow-root width=auto height=auto empty min-height: 0x60 child=30
@@ -2641,19 +2641,19 @@ grid flow-root width=80px height=auto tall padding: 80x325 child=157.5
grid flow-root width=50% height=100% empty none: 100x50 child=25
grid flow-root width=50% height=100% empty max-height: 100x30 child=15
grid flow-root width=50% height=100% empty min-height: 100x60 child=30
-grid flow-root width=50% height=100% empty padding: 100x55 child=22.5
+grid flow-root width=50% height=100% empty padding: 100x50 child=20
grid flow-root width=50% height=100% tall none: 100x50 child=25
grid flow-root width=50% height=100% tall max-height: 100x30 child=15
grid flow-root width=50% height=100% tall min-height: 100x60 child=30
-grid flow-root width=50% height=100% tall padding: 100x55 child=22.5
+grid flow-root width=50% height=100% tall padding: 100x50 child=20
grid flow-root width=50% height=calc empty none: 100x35 child=17.5
grid flow-root width=50% height=calc empty max-height: 100x25 child=12.5
grid flow-root width=50% height=calc empty min-height: 100x60 child=30
-grid flow-root width=50% height=calc empty padding: 100x37.5 child=13.75
+grid flow-root width=50% height=calc empty padding: 100x35 child=12.5
grid flow-root width=50% height=calc tall none: 100x35 child=17.5
grid flow-root width=50% height=calc tall max-height: 100x25 child=12.5
grid flow-root width=50% height=calc tall min-height: 100x60 child=30
-grid flow-root width=50% height=calc tall padding: 100x37.5 child=13.75
+grid flow-root width=50% height=calc tall padding: 100x35 child=12.5
grid flow-root width=50% height=auto empty none: 100x50 child=25
grid flow-root width=50% height=auto empty max-height: 100x30 child=15
grid flow-root width=50% height=auto empty min-height: 100x60 child=30
@@ -2669,7 +2669,7 @@ grid inline-block width=auto height=100% empty padding: 10x10 child=0
grid inline-block width=auto height=100% tall none: 10x5 child=2.5
grid inline-block width=auto height=100% tall max-height: 10x5 child=2.5
grid inline-block width=auto height=100% tall min-height: 10x60 child=30
-grid inline-block width=auto height=100% tall padding: 20x15 child=2.5
+grid inline-block width=auto height=100% tall padding: 20x10 child=0
grid inline-block width=auto height=calc empty none: 0x10 child=5
grid inline-block width=auto height=calc empty max-height: 0x10 child=5
grid inline-block width=auto height=calc empty min-height: 0x60 child=30
@@ -2677,7 +2677,7 @@ grid inline-block width=auto height=calc empty padding: 10x15 child=2.5
grid inline-block width=auto height=calc tall none: 10x12.5 child=6.25
grid inline-block width=auto height=calc tall max-height: 10x12.5 child=6.25
grid inline-block width=auto height=calc tall min-height: 10x60 child=30
-grid inline-block width=auto height=calc tall padding: 20x17.5 child=3.75
+grid inline-block width=auto height=calc tall padding: 20x15 child=2.5
grid inline-block width=auto height=auto empty none: 0x0 child=0
grid inline-block width=auto height=auto empty max-height: 0x0 child=0
grid inline-block width=auto height=auto empty min-height: 0x60 child=30
@@ -2713,19 +2713,19 @@ grid inline-block width=80px height=auto tall padding: 80x325 child=157.5
grid inline-block width=50% height=100% empty none: 100x50 child=25
grid inline-block width=50% height=100% empty max-height: 100x30 child=15
grid inline-block width=50% height=100% empty min-height: 100x60 child=30
-grid inline-block width=50% height=100% empty padding: 100x55 child=22.5
+grid inline-block width=50% height=100% empty padding: 100x50 child=20
grid inline-block width=50% height=100% tall none: 100x50 child=25
grid inline-block width=50% height=100% tall max-height: 100x30 child=15
grid inline-block width=50% height=100% tall min-height: 100x60 child=30
-grid inline-block width=50% height=100% tall padding: 100x55 child=22.5
+grid inline-block width=50% height=100% tall padding: 100x50 child=20
grid inline-block width=50% height=calc empty none: 100x35 child=17.5
grid inline-block width=50% height=calc empty max-height: 100x25 child=12.5
grid inline-block width=50% height=calc empty min-height: 100x60 child=30
-grid inline-block width=50% height=calc empty padding: 100x37.5 child=13.75
+grid inline-block width=50% height=calc empty padding: 100x35 child=12.5
grid inline-block width=50% height=calc tall none: 100x35 child=17.5
grid inline-block width=50% height=calc tall max-height: 100x25 child=12.5
grid inline-block width=50% height=calc tall min-height: 100x60 child=30
-grid inline-block width=50% height=calc tall padding: 100x37.5 child=13.75
+grid inline-block width=50% height=calc tall padding: 100x35 child=12.5
grid inline-block width=50% height=auto empty none: 100x50 child=25
grid inline-block width=50% height=auto empty max-height: 100x30 child=15
grid inline-block width=50% height=auto empty min-height: 100x60 child=30
@@ -2741,7 +2741,7 @@ grid float width=auto height=100% empty padding: 10x10 child=0
grid float width=auto height=100% tall none: 10x5 child=2.5
grid float width=auto height=100% tall max-height: 10x5 child=2.5
grid float width=auto height=100% tall min-height: 10x60 child=30
-grid float width=auto height=100% tall padding: 20x15 child=2.5
+grid float width=auto height=100% tall padding: 20x10 child=0
grid float width=auto height=calc empty none: 0x10 child=5
grid float width=auto height=calc empty max-height: 0x10 child=5
grid float width=auto height=calc empty min-height: 0x60 child=30
@@ -2749,7 +2749,7 @@ grid float width=auto height=calc empty padding: 10x15 child=2.5
grid float width=auto height=calc tall none: 10x12.5 child=6.25
grid float width=auto height=calc tall max-height: 10x12.5 child=6.25
grid float width=auto height=calc tall min-height: 10x60 child=30
-grid float width=auto height=calc tall padding: 20x17.5 child=3.75
+grid float width=auto height=calc tall padding: 20x15 child=2.5
grid float width=auto height=auto empty none: 0x0 child=0
grid float width=auto height=auto empty max-height: 0x0 child=0
grid float width=auto height=auto empty min-height: 0x60 child=30
@@ -2785,19 +2785,19 @@ grid float width=80px height=auto tall padding: 80x325 child=157.5
grid float width=50% height=100% empty none: 100x50 child=25
grid float width=50% height=100% empty max-height: 100x30 child=15
grid float width=50% height=100% empty min-height: 100x60 child=30
-grid float width=50% height=100% empty padding: 100x55 child=22.5
+grid float width=50% height=100% empty padding: 100x50 child=20
grid float width=50% height=100% tall none: 100x50 child=25
grid float width=50% height=100% tall max-height: 100x30 child=15
grid float width=50% height=100% tall min-height: 100x60 child=30
-grid float width=50% height=100% tall padding: 100x55 child=22.5
+grid float width=50% height=100% tall padding: 100x50 child=20
grid float width=50% height=calc empty none: 100x35 child=17.5
grid float width=50% height=calc empty max-height: 100x25 child=12.5
grid float width=50% height=calc empty min-height: 100x60 child=30
-grid float width=50% height=calc empty padding: 100x37.5 child=13.75
+grid float width=50% height=calc empty padding: 100x35 child=12.5
grid float width=50% height=calc tall none: 100x35 child=17.5
grid float width=50% height=calc tall max-height: 100x25 child=12.5
grid float width=50% height=calc tall min-height: 100x60 child=30
-grid float width=50% height=calc tall padding: 100x37.5 child=13.75
+grid float width=50% height=calc tall padding: 100x35 child=12.5
grid float width=50% height=auto empty none: 100x50 child=25
grid float width=50% height=auto empty max-height: 100x30 child=15
grid float width=50% height=auto empty min-height: 100x60 child=30
@@ -2857,7 +2857,7 @@ grid flex width=80px height=auto tall padding: 80x310 child=150
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: 100x55 child=22.5
+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 max-height: 100x30 child=15
grid flex width=50% height=100% tall min-height: 100x300 child=150
@@ -2865,7 +2865,7 @@ grid flex width=50% height=100% tall padding: 100x310 child=150
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: 100x37.5 child=13.75
+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 max-height: 100x25 child=12.5
grid flex width=50% height=calc tall min-height: 100x160 child=80
@@ -2929,7 +2929,7 @@ grid grid width=80px height=auto tall padding: 80x310 child=0
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: 100x55 child=22.5
+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 max-height: 100x30 child=0
grid grid width=50% height=100% tall min-height: 100x300 child=0
@@ -2937,7 +2937,7 @@ grid grid width=50% height=100% tall padding: 100x310 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: 100x37.5 child=13.75
+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 max-height: 100x25 child=0
grid grid width=50% height=calc tall min-height: 100x160 child=0