Truly independent web browser
LibWeb: Let max-width: none place no limit in replaced sizing
Andreas Klingd992ba6f511e
diff --git a/Libraries/LibWeb/Rust/src/layout/sizing_context.rs b/Libraries/LibWeb/Rust/src/layout/sizing_context.rsindex 1283def157a..dd6de6d591e 100644--- a/Libraries/LibWeb/Rust/src/layout/sizing_context.rs+++ b/Libraries/LibWeb/Rust/src/layout/sizing_context.rs@@ -497,9 +497,10 @@ impl<'pass> SizingContext<'pass> {} else {self.calculate_inner_inline_size(node, available_space.inline_size, style.min_width(), constraints)};+ // NB: A maximum of 'none' places no limit, so the table can grow a size to satisfy a minimum in the other axis.let specified_max_inline =if self.should_treat_max_inline_size_as_none(node, available_space.inline_size, constraints) {- input_inline_size+ max_dimension_value()} else {self.calculate_inner_inline_size(node, available_space.inline_size, style.max_width(), constraints)};@@ -511,7 +512,7 @@ impl<'pass> SizingContext<'pass> {};let specified_max_block =if self.should_treat_max_block_size_as_none(node, available_space.block_size, constraints) {- input_block_size+ max_dimension_value()} else {self.calculate_inner_block_size(node, available_space, style.max_height(), constraints)};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.txtindex 6f2734c6ac3..1592ddda58f 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@@ -1,5 +1,5 @@block block width=auto height=auto empty min-height: 200x100 child=50-block block width=auto height=auto empty min-height-large: 200x150 child=75+block block width=auto height=auto empty min-height-large: 300x150 child=75block block width=auto height=auto empty max-height: 60x30 child=15block block width=auto height=auto empty min-width: 200x100 child=50block block width=auto height=auto empty max-width: 40x20 child=10@@ -8,7 +8,7 @@ block block width=auto height=auto empty max-width-min-height: 40x60 child=30block block width=auto height=auto empty border-box-min-height: 200x100 child=45block block width=auto height=auto empty border-box-max-width: 40x20 child=5block block width=auto height=auto tall min-height: 200x100 child=50-block block width=auto height=auto tall min-height-large: 200x150 child=75+block block width=auto height=auto tall min-height-large: 300x150 child=75block block width=auto height=auto tall max-height: 60x30 child=15block block width=auto height=auto tall min-width: 200x350 child=50block block width=auto height=auto tall max-width: 40x310 child=10@@ -17,7 +17,7 @@ block block width=auto height=auto tall max-width-min-height: 40x60 child=30block block width=auto height=auto tall border-box-min-height: 200x100 child=45block block width=auto height=auto tall border-box-max-width: 40x315 child=5block block width=auto height=100% empty min-height: 200x100 child=50-block block width=auto height=100% empty min-height-large: 200x150 child=75+block block width=auto height=100% empty min-height-large: 300x150 child=75block block width=auto height=100% empty max-height: 60x30 child=15block block width=auto height=100% empty min-width: 200x100 child=50block block width=auto height=100% empty max-width: 40x20 child=10@@ -26,7 +26,7 @@ block block width=auto height=100% empty max-width-min-height: 40x60 child=30block block width=auto height=100% empty border-box-min-height: 200x100 child=45block block width=auto height=100% empty border-box-max-width: 40x20 child=5block block width=auto height=100% tall min-height: 200x100 child=50-block block width=auto height=100% tall min-height-large: 200x150 child=75+block block width=auto height=100% tall min-height-large: 300x150 child=75block block width=auto height=100% tall max-height: 60x30 child=15block block width=auto height=100% tall min-width: 200x100 child=50block block width=auto height=100% tall max-width: 40x20 child=10@@ -161,7 +161,7 @@ block block width=50% height=40px tall max-width-min-height: 40x60 child=30block block width=50% height=40px tall border-box-min-height: 100x60 child=25block block width=50% height=40px tall border-box-max-width: 40x40 child=15block flow-root width=auto height=auto empty min-height: 200x100 child=50-block flow-root width=auto height=auto empty min-height-large: 200x150 child=75+block flow-root width=auto height=auto empty min-height-large: 300x150 child=75block flow-root width=auto height=auto empty max-height: 60x30 child=15block flow-root width=auto height=auto empty min-width: 200x100 child=50block flow-root width=auto height=auto empty max-width: 40x20 child=10@@ -170,7 +170,7 @@ block flow-root width=auto height=auto empty max-width-min-height: 40x60 child=3block flow-root width=auto height=auto empty border-box-min-height: 200x100 child=45block flow-root width=auto height=auto empty border-box-max-width: 40x20 child=5block flow-root width=auto height=auto tall min-height: 200x100 child=50-block flow-root width=auto height=auto tall min-height-large: 200x150 child=75+block flow-root width=auto height=auto tall min-height-large: 300x150 child=75block flow-root width=auto height=auto tall max-height: 60x30 child=15block flow-root width=auto height=auto tall min-width: 200x350 child=50block flow-root width=auto height=auto tall max-width: 40x310 child=10@@ -179,7 +179,7 @@ block flow-root width=auto height=auto tall max-width-min-height: 40x60 child=30block flow-root width=auto height=auto tall border-box-min-height: 200x100 child=45block flow-root width=auto height=auto tall border-box-max-width: 40x315 child=5block flow-root width=auto height=100% empty min-height: 200x100 child=50-block flow-root width=auto height=100% empty min-height-large: 200x150 child=75+block flow-root width=auto height=100% empty min-height-large: 300x150 child=75block flow-root width=auto height=100% empty max-height: 60x30 child=15block flow-root width=auto height=100% empty min-width: 200x100 child=50block flow-root width=auto height=100% empty max-width: 40x20 child=10@@ -188,7 +188,7 @@ block flow-root width=auto height=100% empty max-width-min-height: 40x60 child=3block flow-root width=auto height=100% empty border-box-min-height: 200x100 child=45block flow-root width=auto height=100% empty border-box-max-width: 40x20 child=5block flow-root width=auto height=100% tall min-height: 200x100 child=50-block flow-root width=auto height=100% tall min-height-large: 200x150 child=75+block flow-root width=auto height=100% tall min-height-large: 300x150 child=75block flow-root width=auto height=100% tall max-height: 60x30 child=15block flow-root width=auto height=100% tall min-width: 200x100 child=50block flow-root width=auto height=100% tall max-width: 40x20 child=10@@ -647,7 +647,7 @@ block float width=50% height=40px tall max-width-min-height: 40x60 child=30block float width=50% height=40px tall border-box-min-height: 100x60 child=25block float width=50% height=40px tall border-box-max-width: 40x40 child=15block flex width=auto height=auto empty min-height: 200x100 child=50-block flex width=auto height=auto empty min-height-large: 200x150 child=75+block flex width=auto height=auto empty min-height-large: 300x150 child=75block flex width=auto height=auto empty max-height: 60x30 child=15block flex width=auto height=auto empty min-width: 200x100 child=50block flex width=auto height=auto empty max-width: 40x20 child=10@@ -656,7 +656,7 @@ block flex width=auto height=auto empty max-width-min-height: 40x60 child=30block flex width=auto height=auto empty border-box-min-height: 200x100 child=45block flex width=auto height=auto empty border-box-max-width: 40x20 child=5block flex width=auto height=auto tall min-height: 200x100 child=50-block flex width=auto height=auto tall min-height-large: 200x150 child=75+block flex width=auto height=auto tall min-height-large: 300x150 child=75block flex width=auto height=auto tall max-height: 60x30 child=15block flex width=auto height=auto tall min-width: 200x300 child=50block flex width=auto height=auto tall max-width: 40x300 child=10@@ -665,7 +665,7 @@ block flex width=auto height=auto tall max-width-min-height: 40x60 child=30block flex width=auto height=auto tall border-box-min-height: 200x100 child=45block flex width=auto height=auto tall border-box-max-width: 40x310 child=5block flex width=auto height=100% empty min-height: 200x100 child=50-block flex width=auto height=100% empty min-height-large: 200x150 child=75+block flex width=auto height=100% empty min-height-large: 300x150 child=75block flex width=auto height=100% empty max-height: 60x30 child=15block flex width=auto height=100% empty min-width: 200x100 child=50block flex width=auto height=100% empty max-width: 40x20 child=10@@ -674,7 +674,7 @@ block flex width=auto height=100% empty max-width-min-height: 40x60 child=30block flex width=auto height=100% empty border-box-min-height: 200x100 child=45block flex width=auto height=100% empty border-box-max-width: 40x20 child=5block flex width=auto height=100% tall min-height: 200x100 child=50-block flex width=auto height=100% tall min-height-large: 200x150 child=75+block flex width=auto height=100% tall min-height-large: 300x150 child=75block flex width=auto height=100% tall max-height: 60x30 child=15block flex width=auto height=100% tall min-width: 200x100 child=50block flex width=auto height=100% tall max-width: 40x20 child=10@@ -809,7 +809,7 @@ block flex width=50% height=40px tall max-width-min-height: 40x60 child=30block flex width=50% height=40px tall border-box-min-height: 100x60 child=25block flex width=50% height=40px tall border-box-max-width: 40x40 child=15block grid width=auto height=auto empty min-height: 200x100 child=50-block grid width=auto height=auto empty min-height-large: 200x150 child=75+block grid width=auto height=auto empty min-height-large: 300x150 child=75block grid width=auto height=auto empty max-height: 60x30 child=15block grid width=auto height=auto empty min-width: 200x100 child=50block grid width=auto height=auto empty max-width: 40x20 child=10@@ -818,7 +818,7 @@ block grid width=auto height=auto empty max-width-min-height: 40x60 child=30block grid width=auto height=auto empty border-box-min-height: 200x100 child=45block grid width=auto height=auto empty border-box-max-width: 40x20 child=5block grid width=auto height=auto tall min-height: 200x100 child=0-block grid width=auto height=auto tall min-height-large: 200x150 child=0+block grid width=auto height=auto tall min-height-large: 300x150 child=0block grid width=auto height=auto tall max-height: 60x30 child=0block grid width=auto height=auto tall min-width: 200x300 child=0block grid width=auto height=auto tall max-width: 40x300 child=0@@ -827,7 +827,7 @@ block grid width=auto height=auto tall max-width-min-height: 40x60 child=0block grid width=auto height=auto tall border-box-min-height: 200x100 child=0block grid width=auto height=auto tall border-box-max-width: 40x310 child=0block grid width=auto height=100% empty min-height: 200x100 child=50-block grid width=auto height=100% empty min-height-large: 200x150 child=75+block grid width=auto height=100% empty min-height-large: 300x150 child=75block grid width=auto height=100% empty max-height: 60x30 child=15block grid width=auto height=100% empty min-width: 200x100 child=50block grid width=auto height=100% empty max-width: 40x20 child=10@@ -836,7 +836,7 @@ block grid width=auto height=100% empty max-width-min-height: 40x60 child=30block grid width=auto height=100% empty border-box-min-height: 200x100 child=45block grid width=auto height=100% empty border-box-max-width: 40x20 child=5block grid width=auto height=100% tall min-height: 200x100 child=0-block grid width=auto height=100% tall min-height-large: 200x150 child=0+block grid width=auto height=100% tall min-height-large: 300x150 child=0block grid width=auto height=100% tall max-height: 60x30 child=0block grid width=auto height=100% tall min-width: 200x100 child=0block grid width=auto height=100% tall max-width: 40x20 child=0@@ -1133,7 +1133,7 @@ block abspos width=50% height=40px tall max-width-min-height: 40x60 child=30block abspos width=50% height=40px tall border-box-min-height: 100x60 child=25block abspos width=50% height=40px tall border-box-max-width: 40x40 child=15block-definite block width=auto height=auto empty min-height: 200x100 child=50-block-definite block width=auto height=auto empty min-height-large: 200x150 child=75+block-definite block width=auto height=auto empty min-height-large: 300x150 child=75block-definite block width=auto height=auto empty max-height: 60x30 child=15block-definite block width=auto height=auto empty min-width: 200x100 child=50block-definite block width=auto height=auto empty max-width: 40x20 child=10@@ -1142,7 +1142,7 @@ block-definite block width=auto height=auto empty max-width-min-height: 40x60 chblock-definite block width=auto height=auto empty border-box-min-height: 200x100 child=45block-definite block width=auto height=auto empty border-box-max-width: 40x20 child=5block-definite block width=auto height=auto tall min-height: 200x100 child=50-block-definite block width=auto height=auto tall min-height-large: 200x150 child=75+block-definite block width=auto height=auto tall min-height-large: 300x150 child=75block-definite block width=auto height=auto tall max-height: 60x30 child=15block-definite block width=auto height=auto tall min-width: 200x350 child=50block-definite block width=auto height=auto tall max-width: 40x310 child=10@@ -1295,7 +1295,7 @@ block-definite block width=50% height=40px tall max-width-min-height: 40x60 chilblock-definite block width=50% height=40px tall border-box-min-height: 100x60 child=25block-definite block width=50% height=40px tall border-box-max-width: 40x40 child=15block-definite flow-root width=auto height=auto empty min-height: 200x100 child=50-block-definite flow-root width=auto height=auto empty min-height-large: 200x150 child=75+block-definite flow-root width=auto height=auto empty min-height-large: 300x150 child=75block-definite flow-root width=auto height=auto empty max-height: 60x30 child=15block-definite flow-root width=auto height=auto empty min-width: 200x100 child=50block-definite flow-root width=auto height=auto empty max-width: 40x20 child=10@@ -1304,7 +1304,7 @@ block-definite flow-root width=auto height=auto empty max-width-min-height: 40x6block-definite flow-root width=auto height=auto empty border-box-min-height: 200x100 child=45block-definite flow-root width=auto height=auto empty border-box-max-width: 40x20 child=5block-definite flow-root width=auto height=auto tall min-height: 200x100 child=50-block-definite flow-root width=auto height=auto tall min-height-large: 200x150 child=75+block-definite flow-root width=auto height=auto tall min-height-large: 300x150 child=75block-definite flow-root width=auto height=auto tall max-height: 60x30 child=15block-definite flow-root width=auto height=auto tall min-width: 200x350 child=50block-definite flow-root width=auto height=auto tall max-width: 40x310 child=10@@ -1781,7 +1781,7 @@ block-definite float width=50% height=40px tall max-width-min-height: 40x60 chilblock-definite float width=50% height=40px tall border-box-min-height: 100x60 child=25block-definite float width=50% height=40px tall border-box-max-width: 40x40 child=15block-definite flex width=auto height=auto empty min-height: 200x100 child=50-block-definite flex width=auto height=auto empty min-height-large: 200x150 child=75+block-definite flex width=auto height=auto empty min-height-large: 300x150 child=75block-definite flex width=auto height=auto empty max-height: 60x30 child=15block-definite flex width=auto height=auto empty min-width: 200x100 child=50block-definite flex width=auto height=auto empty max-width: 40x20 child=10@@ -1790,7 +1790,7 @@ block-definite flex width=auto height=auto empty max-width-min-height: 40x60 chiblock-definite flex width=auto height=auto empty border-box-min-height: 200x100 child=45block-definite flex width=auto height=auto empty border-box-max-width: 40x20 child=5block-definite flex width=auto height=auto tall min-height: 200x100 child=50-block-definite flex width=auto height=auto tall min-height-large: 200x150 child=75+block-definite flex width=auto height=auto tall min-height-large: 300x150 child=75block-definite flex width=auto height=auto tall max-height: 60x30 child=15block-definite flex width=auto height=auto tall min-width: 200x300 child=50block-definite flex width=auto height=auto tall max-width: 40x300 child=10@@ -1943,7 +1943,7 @@ block-definite flex width=50% height=40px tall max-width-min-height: 40x60 childblock-definite flex width=50% height=40px tall border-box-min-height: 100x60 child=25block-definite flex width=50% height=40px tall border-box-max-width: 40x40 child=15block-definite grid width=auto height=auto empty min-height: 200x100 child=50-block-definite grid width=auto height=auto empty min-height-large: 200x150 child=75+block-definite grid width=auto height=auto empty min-height-large: 300x150 child=75block-definite grid width=auto height=auto empty max-height: 60x30 child=15block-definite grid width=auto height=auto empty min-width: 200x100 child=50block-definite grid width=auto height=auto empty max-width: 40x20 child=10@@ -1952,7 +1952,7 @@ block-definite grid width=auto height=auto empty max-width-min-height: 40x60 chiblock-definite grid width=auto height=auto empty border-box-min-height: 200x100 child=45block-definite grid width=auto height=auto empty border-box-max-width: 40x20 child=5block-definite grid width=auto height=auto tall min-height: 200x100 child=0-block-definite grid width=auto height=auto tall min-height-large: 200x150 child=0+block-definite grid width=auto height=auto tall min-height-large: 300x150 child=0block-definite grid width=auto height=auto tall max-height: 60x30 child=0block-definite grid width=auto height=auto tall min-width: 200x300 child=0block-definite grid width=auto height=auto tall max-width: 40x300 child=0@@ -7936,41 +7936,41 @@ grid-definite-row abspos width=50% height=40px tall min-width-max-height: 150x30grid-definite-row abspos width=50% height=40px tall max-width-min-height: 40x60 child=30grid-definite-row abspos width=50% height=40px tall border-box-min-height: 100x60 child=25grid-definite-row abspos width=50% height=40px tall border-box-max-width: 40x40 child=15-inline-block block width=auto height=auto empty min-height: 0x60 child=30-inline-block block width=auto height=auto empty min-height-large: 0x150 child=75+inline-block block width=auto height=auto empty min-height: 120x60 child=30+inline-block block width=auto height=auto empty min-height-large: 300x150 child=75inline-block block width=auto height=auto empty max-height: 0x0 child=0inline-block block width=auto height=auto empty min-width: 150x75 child=37.5inline-block block width=auto height=auto empty max-width: 0x0 child=0inline-block block width=auto height=auto empty min-width-max-height: 150x30 child=15inline-block block width=auto height=auto empty max-width-min-height: 40x60 child=30-inline-block block width=auto height=auto empty border-box-min-height: 10x60 child=25+inline-block block width=auto height=auto empty border-box-min-height: 120x60 child=25inline-block block width=auto height=auto empty border-box-max-width: 10x10 child=0-inline-block block width=auto height=auto tall min-height: 10x60 child=30-inline-block block width=auto height=auto tall min-height-large: 10x150 child=75+inline-block block width=auto height=auto tall min-height: 120x60 child=30+inline-block block width=auto height=auto tall min-height-large: 300x150 child=75inline-block block width=auto height=auto tall max-height: 10x30 child=2.5inline-block block width=auto height=auto tall min-width: 150x337.5 child=37.5inline-block block width=auto height=auto tall max-width: 10x302.5 child=2.5inline-block block width=auto height=auto tall min-width-max-height: 150x30 child=15inline-block block width=auto height=auto tall max-width-min-height: 40x60 child=30-inline-block block width=auto height=auto tall border-box-min-height: 20x60 child=25+inline-block block width=auto height=auto tall border-box-min-height: 120x60 child=25inline-block block width=auto height=auto tall border-box-max-width: 20x310 child=0-inline-block block width=auto height=100% empty min-height: 0x60 child=30-inline-block block width=auto height=100% empty min-height-large: 0x150 child=75+inline-block block width=auto height=100% empty min-height: 120x60 child=30+inline-block block width=auto height=100% empty min-height-large: 300x150 child=75inline-block block width=auto height=100% empty max-height: 0x0 child=0inline-block block width=auto height=100% empty min-width: 150x75 child=37.5inline-block block width=auto height=100% empty max-width: 0x0 child=0inline-block block width=auto height=100% empty min-width-max-height: 150x30 child=15inline-block block width=auto height=100% empty max-width-min-height: 40x60 child=30-inline-block block width=auto height=100% empty border-box-min-height: 10x60 child=25+inline-block block width=auto height=100% empty border-box-min-height: 120x60 child=25inline-block block width=auto height=100% empty border-box-max-width: 10x10 child=0-inline-block block width=auto height=100% tall min-height: 10x60 child=30-inline-block block width=auto height=100% tall min-height-large: 10x150 child=75+inline-block block width=auto height=100% tall min-height: 120x60 child=30+inline-block block width=auto height=100% tall min-height-large: 300x150 child=75inline-block block width=auto height=100% tall max-height: 10x5 child=2.5inline-block block width=auto height=100% tall min-width: 150x75 child=37.5inline-block block width=auto height=100% tall max-width: 10x5 child=2.5inline-block block width=auto height=100% tall min-width-max-height: 150x30 child=15inline-block block width=auto height=100% tall max-width-min-height: 40x60 child=30-inline-block block width=auto height=100% tall border-box-min-height: 20x60 child=25+inline-block block width=auto height=100% tall border-box-min-height: 120x60 child=25inline-block block width=auto height=100% tall border-box-max-width: 20x10 child=0inline-block block width=auto height=40px empty min-height: 120x60 child=30inline-block block width=auto height=40px empty min-height-large: 300x150 child=75@@ -8098,41 +8098,41 @@ inline-block block width=50% height=40px tall min-width-max-height: 150x30 childinline-block block width=50% height=40px tall max-width-min-height: 20x60 child=30inline-block block width=50% height=40px tall border-box-min-height: 60x60 child=25inline-block block width=50% height=40px tall border-box-max-width: 20x40 child=15-inline-block flow-root width=auto height=auto empty min-height: 0x60 child=30-inline-block flow-root width=auto height=auto empty min-height-large: 0x150 child=75+inline-block flow-root width=auto height=auto empty min-height: 120x60 child=30+inline-block flow-root width=auto height=auto empty min-height-large: 300x150 child=75inline-block flow-root width=auto height=auto empty max-height: 0x0 child=0inline-block flow-root width=auto height=auto empty min-width: 150x75 child=37.5inline-block flow-root width=auto height=auto empty max-width: 0x0 child=0inline-block flow-root width=auto height=auto empty min-width-max-height: 150x30 child=15inline-block flow-root width=auto height=auto empty max-width-min-height: 40x60 child=30-inline-block flow-root width=auto height=auto empty border-box-min-height: 10x60 child=25+inline-block flow-root width=auto height=auto empty border-box-min-height: 120x60 child=25inline-block flow-root width=auto height=auto empty border-box-max-width: 10x10 child=0-inline-block flow-root width=auto height=auto tall min-height: 10x60 child=30-inline-block flow-root width=auto height=auto tall min-height-large: 10x150 child=75+inline-block flow-root width=auto height=auto tall min-height: 120x60 child=30+inline-block flow-root width=auto height=auto tall min-height-large: 300x150 child=75inline-block flow-root width=auto height=auto tall max-height: 10x30 child=2.5inline-block flow-root width=auto height=auto tall min-width: 150x337.5 child=37.5inline-block flow-root width=auto height=auto tall max-width: 10x302.5 child=2.5inline-block flow-root width=auto height=auto tall min-width-max-height: 150x30 child=15inline-block flow-root width=auto height=auto tall max-width-min-height: 40x60 child=30-inline-block flow-root width=auto height=auto tall border-box-min-height: 20x60 child=25+inline-block flow-root width=auto height=auto tall border-box-min-height: 120x60 child=25inline-block flow-root width=auto height=auto tall border-box-max-width: 20x310 child=0-inline-block flow-root width=auto height=100% empty min-height: 0x60 child=30-inline-block flow-root width=auto height=100% empty min-height-large: 0x150 child=75+inline-block flow-root width=auto height=100% empty min-height: 120x60 child=30+inline-block flow-root width=auto height=100% empty min-height-large: 300x150 child=75inline-block flow-root width=auto height=100% empty max-height: 0x0 child=0inline-block flow-root width=auto height=100% empty min-width: 150x75 child=37.5inline-block flow-root width=auto height=100% empty max-width: 0x0 child=0inline-block flow-root width=auto height=100% empty min-width-max-height: 150x30 child=15inline-block flow-root width=auto height=100% empty max-width-min-height: 40x60 child=30-inline-block flow-root width=auto height=100% empty border-box-min-height: 10x60 child=25+inline-block flow-root width=auto height=100% empty border-box-min-height: 120x60 child=25inline-block flow-root width=auto height=100% empty border-box-max-width: 10x10 child=0-inline-block flow-root width=auto height=100% tall min-height: 10x60 child=30-inline-block flow-root width=auto height=100% tall min-height-large: 10x150 child=75+inline-block flow-root width=auto height=100% tall min-height: 120x60 child=30+inline-block flow-root width=auto height=100% tall min-height-large: 300x150 child=75inline-block flow-root width=auto height=100% tall max-height: 10x5 child=2.5inline-block flow-root width=auto height=100% tall min-width: 150x75 child=37.5inline-block flow-root width=auto height=100% tall max-width: 10x5 child=2.5inline-block flow-root width=auto height=100% tall min-width-max-height: 150x30 child=15inline-block flow-root width=auto height=100% tall max-width-min-height: 40x60 child=30-inline-block flow-root width=auto height=100% tall border-box-min-height: 20x60 child=25+inline-block flow-root width=auto height=100% tall border-box-min-height: 120x60 child=25inline-block flow-root width=auto height=100% tall border-box-max-width: 20x10 child=0inline-block flow-root width=auto height=40px empty min-height: 120x60 child=30inline-block flow-root width=auto height=40px empty min-height-large: 300x150 child=75@@ -8584,41 +8584,41 @@ inline-block float width=50% height=40px tall min-width-max-height: 150x30 childinline-block float width=50% height=40px tall max-width-min-height: 20x60 child=30inline-block float width=50% height=40px tall border-box-min-height: 60x60 child=25inline-block float width=50% height=40px tall border-box-max-width: 20x40 child=15-inline-block flex width=auto height=auto empty min-height: 0x60 child=30-inline-block flex width=auto height=auto empty min-height-large: 0x150 child=75+inline-block flex width=auto height=auto empty min-height: 120x60 child=30+inline-block flex width=auto height=auto empty min-height-large: 300x150 child=75inline-block flex width=auto height=auto empty max-height: 0x0 child=0inline-block flex width=auto height=auto empty min-width: 150x75 child=37.5inline-block flex width=auto height=auto empty max-width: 0x0 child=0inline-block flex width=auto height=auto empty min-width-max-height: 150x30 child=15inline-block flex width=auto height=auto empty max-width-min-height: 40x60 child=30-inline-block flex width=auto height=auto empty border-box-min-height: 10x60 child=25+inline-block flex width=auto height=auto empty border-box-min-height: 120x60 child=25inline-block flex width=auto height=auto empty border-box-max-width: 10x10 child=0-inline-block flex width=auto height=auto tall min-height: 10x60 child=30-inline-block flex width=auto height=auto tall min-height-large: 10x150 child=75+inline-block flex width=auto height=auto tall min-height: 120x60 child=30+inline-block flex width=auto height=auto tall min-height-large: 300x150 child=75inline-block flex width=auto height=auto tall max-height: 10x30 child=2.5inline-block flex width=auto height=auto tall min-width: 150x300 child=37.5inline-block flex width=auto height=auto tall max-width: 10x300 child=2.5inline-block flex width=auto height=auto tall min-width-max-height: 150x30 child=15inline-block flex width=auto height=auto tall max-width-min-height: 40x60 child=30-inline-block flex width=auto height=auto tall border-box-min-height: 20x60 child=25+inline-block flex width=auto height=auto tall border-box-min-height: 120x60 child=25inline-block flex width=auto height=auto tall border-box-max-width: 20x310 child=0-inline-block flex width=auto height=100% empty min-height: 0x60 child=30-inline-block flex width=auto height=100% empty min-height-large: 0x150 child=75+inline-block flex width=auto height=100% empty min-height: 120x60 child=30+inline-block flex width=auto height=100% empty min-height-large: 300x150 child=75inline-block flex width=auto height=100% empty max-height: 0x0 child=0inline-block flex width=auto height=100% empty min-width: 150x75 child=37.5inline-block flex width=auto height=100% empty max-width: 0x0 child=0inline-block flex width=auto height=100% empty min-width-max-height: 150x30 child=15inline-block flex width=auto height=100% empty max-width-min-height: 40x60 child=30-inline-block flex width=auto height=100% empty border-box-min-height: 10x60 child=25+inline-block flex width=auto height=100% empty border-box-min-height: 120x60 child=25inline-block flex width=auto height=100% empty border-box-max-width: 10x10 child=0-inline-block flex width=auto height=100% tall min-height: 10x60 child=30-inline-block flex width=auto height=100% tall min-height-large: 10x150 child=75+inline-block flex width=auto height=100% tall min-height: 120x60 child=30+inline-block flex width=auto height=100% tall min-height-large: 300x150 child=75inline-block flex width=auto height=100% tall max-height: 10x5 child=2.5inline-block flex width=auto height=100% tall min-width: 150x75 child=37.5inline-block flex width=auto height=100% tall max-width: 10x5 child=2.5inline-block flex width=auto height=100% tall min-width-max-height: 150x30 child=15inline-block flex width=auto height=100% tall max-width-min-height: 40x60 child=30-inline-block flex width=auto height=100% tall border-box-min-height: 20x60 child=25+inline-block flex width=auto height=100% tall border-box-min-height: 120x60 child=25inline-block flex width=auto height=100% tall border-box-max-width: 20x10 child=0inline-block flex width=auto height=40px empty min-height: 120x60 child=30inline-block flex width=auto height=40px empty min-height-large: 300x150 child=75@@ -8746,41 +8746,41 @@ inline-block flex width=50% height=40px tall min-width-max-height: 150x30 child=inline-block flex width=50% height=40px tall max-width-min-height: 20x60 child=30inline-block flex width=50% height=40px tall border-box-min-height: 60x60 child=25inline-block flex width=50% height=40px tall border-box-max-width: 20x40 child=15-inline-block grid width=auto height=auto empty min-height: 0x60 child=30-inline-block grid width=auto height=auto empty min-height-large: 0x150 child=75+inline-block grid width=auto height=auto empty min-height: 120x60 child=30+inline-block grid width=auto height=auto empty min-height-large: 300x150 child=75inline-block grid width=auto height=auto empty max-height: 0x0 child=0inline-block grid width=auto height=auto empty min-width: 150x75 child=37.5inline-block grid width=auto height=auto empty max-width: 0x0 child=0inline-block grid width=auto height=auto empty min-width-max-height: 150x30 child=15inline-block grid width=auto height=auto empty max-width-min-height: 40x60 child=30-inline-block grid width=auto height=auto empty border-box-min-height: 10x60 child=25+inline-block grid width=auto height=auto empty border-box-min-height: 120x60 child=25inline-block grid width=auto height=auto empty border-box-max-width: 10x10 child=0-inline-block grid width=auto height=auto tall min-height: 10x60 child=0-inline-block grid width=auto height=auto tall min-height-large: 10x150 child=0+inline-block grid width=auto height=auto tall min-height: 120x60 child=0+inline-block grid width=auto height=auto tall min-height-large: 300x150 child=0inline-block grid width=auto height=auto tall max-height: 10x30 child=0inline-block grid width=auto height=auto tall min-width: 150x300 child=0inline-block grid width=auto height=auto tall max-width: 10x300 child=0inline-block grid width=auto height=auto tall min-width-max-height: 150x30 child=0inline-block grid width=auto height=auto tall max-width-min-height: 40x60 child=0-inline-block grid width=auto height=auto tall border-box-min-height: 20x60 child=0+inline-block grid width=auto height=auto tall border-box-min-height: 120x60 child=0inline-block grid width=auto height=auto tall border-box-max-width: 20x310 child=0-inline-block grid width=auto height=100% empty min-height: 0x60 child=30-inline-block grid width=auto height=100% empty min-height-large: 0x150 child=75+inline-block grid width=auto height=100% empty min-height: 120x60 child=30+inline-block grid width=auto height=100% empty min-height-large: 300x150 child=75inline-block grid width=auto height=100% empty max-height: 0x0 child=0inline-block grid width=auto height=100% empty min-width: 150x75 child=37.5inline-block grid width=auto height=100% empty max-width: 0x0 child=0inline-block grid width=auto height=100% empty min-width-max-height: 150x30 child=15inline-block grid width=auto height=100% empty max-width-min-height: 40x60 child=30-inline-block grid width=auto height=100% empty border-box-min-height: 10x60 child=25+inline-block grid width=auto height=100% empty border-box-min-height: 120x60 child=25inline-block grid width=auto height=100% empty border-box-max-width: 10x10 child=0-inline-block grid width=auto height=100% tall min-height: 10x60 child=0-inline-block grid width=auto height=100% tall min-height-large: 10x150 child=0+inline-block grid width=auto height=100% tall min-height: 120x60 child=0+inline-block grid width=auto height=100% tall min-height-large: 300x150 child=0inline-block grid width=auto height=100% tall max-height: 10x5 child=0inline-block grid width=auto height=100% tall min-width: 150x75 child=0inline-block grid width=auto height=100% tall max-width: 10x5 child=0inline-block grid width=auto height=100% tall min-width-max-height: 150x30 child=0inline-block grid width=auto height=100% tall max-width-min-height: 40x60 child=0-inline-block grid width=auto height=100% tall border-box-min-height: 20x60 child=0+inline-block grid width=auto height=100% tall border-box-min-height: 120x60 child=0inline-block grid width=auto height=100% tall border-box-max-width: 20x10 child=0inline-block grid width=auto height=40px empty min-height: 120x60 child=30inline-block grid width=auto height=40px empty min-height-large: 300x150 child=75@@ -10204,41 +10204,41 @@ float abspos width=50% height=40px tall min-width-max-height: 150x30 child=15float abspos width=50% height=40px tall max-width-min-height: 40x60 child=30float abspos width=50% height=40px tall border-box-min-height: 100x60 child=25float abspos width=50% height=40px tall border-box-max-width: 40x40 child=15-abspos block width=auto height=auto empty min-height: 0x60 child=30-abspos block width=auto height=auto empty min-height-large: 0x150 child=75+abspos block width=auto height=auto empty min-height: 120x60 child=30+abspos block width=auto height=auto empty min-height-large: 300x150 child=75abspos block width=auto height=auto empty max-height: 0x0 child=0abspos block width=auto height=auto empty min-width: 150x75 child=37.5abspos block width=auto height=auto empty max-width: 0x0 child=0abspos block width=auto height=auto empty min-width-max-height: 150x30 child=15abspos block width=auto height=auto empty max-width-min-height: 40x60 child=30-abspos block width=auto height=auto empty border-box-min-height: 10x60 child=25+abspos block width=auto height=auto empty border-box-min-height: 120x60 child=25abspos block width=auto height=auto empty border-box-max-width: 10x10 child=0-abspos block width=auto height=auto tall min-height: 10x60 child=30-abspos block width=auto height=auto tall min-height-large: 10x150 child=75+abspos block width=auto height=auto tall min-height: 120x60 child=30+abspos block width=auto height=auto tall min-height-large: 300x150 child=75abspos block width=auto height=auto tall max-height: 10x30 child=2.5abspos block width=auto height=auto tall min-width: 150x337.5 child=37.5abspos block width=auto height=auto tall max-width: 10x302.5 child=2.5abspos block width=auto height=auto tall min-width-max-height: 150x30 child=15abspos block width=auto height=auto tall max-width-min-height: 40x60 child=30-abspos block width=auto height=auto tall border-box-min-height: 20x60 child=25+abspos block width=auto height=auto tall border-box-min-height: 120x60 child=25abspos block width=auto height=auto tall border-box-max-width: 20x310 child=0-abspos block width=auto height=100% empty min-height: 0x60 child=30-abspos block width=auto height=100% empty min-height-large: 0x150 child=75+abspos block width=auto height=100% empty min-height: 120x60 child=30+abspos block width=auto height=100% empty min-height-large: 300x150 child=75abspos block width=auto height=100% empty max-height: 0x0 child=0abspos block width=auto height=100% empty min-width: 150x75 child=37.5abspos block width=auto height=100% empty max-width: 0x0 child=0abspos block width=auto height=100% empty min-width-max-height: 150x30 child=15abspos block width=auto height=100% empty max-width-min-height: 40x60 child=30-abspos block width=auto height=100% empty border-box-min-height: 10x60 child=25+abspos block width=auto height=100% empty border-box-min-height: 120x60 child=25abspos block width=auto height=100% empty border-box-max-width: 10x10 child=0-abspos block width=auto height=100% tall min-height: 10x60 child=30-abspos block width=auto height=100% tall min-height-large: 10x150 child=75+abspos block width=auto height=100% tall min-height: 120x60 child=30+abspos block width=auto height=100% tall min-height-large: 300x150 child=75abspos block width=auto height=100% tall max-height: 10x5 child=2.5abspos block width=auto height=100% tall min-width: 150x75 child=37.5abspos block width=auto height=100% tall max-width: 10x5 child=2.5abspos block width=auto height=100% tall min-width-max-height: 150x30 child=15abspos block width=auto height=100% tall max-width-min-height: 40x60 child=30-abspos block width=auto height=100% tall border-box-min-height: 20x60 child=25+abspos block width=auto height=100% tall border-box-min-height: 120x60 child=25abspos block width=auto height=100% tall border-box-max-width: 20x10 child=0abspos block width=auto height=40px empty min-height: 120x60 child=30abspos block width=auto height=40px empty min-height-large: 300x150 child=75@@ -10366,41 +10366,41 @@ abspos block width=50% height=40px tall min-width-max-height: 150x30 child=15abspos block width=50% height=40px tall max-width-min-height: 20x60 child=30abspos block width=50% height=40px tall border-box-min-height: 60x60 child=25abspos block width=50% height=40px tall border-box-max-width: 20x40 child=15-abspos flow-root width=auto height=auto empty min-height: 0x60 child=30-abspos flow-root width=auto height=auto empty min-height-large: 0x150 child=75+abspos flow-root width=auto height=auto empty min-height: 120x60 child=30+abspos flow-root width=auto height=auto empty min-height-large: 300x150 child=75abspos flow-root width=auto height=auto empty max-height: 0x0 child=0abspos flow-root width=auto height=auto empty min-width: 150x75 child=37.5abspos flow-root width=auto height=auto empty max-width: 0x0 child=0abspos flow-root width=auto height=auto empty min-width-max-height: 150x30 child=15abspos flow-root width=auto height=auto empty max-width-min-height: 40x60 child=30-abspos flow-root width=auto height=auto empty border-box-min-height: 10x60 child=25+abspos flow-root width=auto height=auto empty border-box-min-height: 120x60 child=25abspos flow-root width=auto height=auto empty border-box-max-width: 10x10 child=0-abspos flow-root width=auto height=auto tall min-height: 10x60 child=30-abspos flow-root width=auto height=auto tall min-height-large: 10x150 child=75+abspos flow-root width=auto height=auto tall min-height: 120x60 child=30+abspos flow-root width=auto height=auto tall min-height-large: 300x150 child=75abspos flow-root width=auto height=auto tall max-height: 10x30 child=2.5abspos flow-root width=auto height=auto tall min-width: 150x337.5 child=37.5abspos flow-root width=auto height=auto tall max-width: 10x302.5 child=2.5abspos flow-root width=auto height=auto tall min-width-max-height: 150x30 child=15abspos flow-root width=auto height=auto tall max-width-min-height: 40x60 child=30-abspos flow-root width=auto height=auto tall border-box-min-height: 20x60 child=25+abspos flow-root width=auto height=auto tall border-box-min-height: 120x60 child=25abspos flow-root width=auto height=auto tall border-box-max-width: 20x310 child=0-abspos flow-root width=auto height=100% empty min-height: 0x60 child=30-abspos flow-root width=auto height=100% empty min-height-large: 0x150 child=75+abspos flow-root width=auto height=100% empty min-height: 120x60 child=30+abspos flow-root width=auto height=100% empty min-height-large: 300x150 child=75abspos flow-root width=auto height=100% empty max-height: 0x0 child=0abspos flow-root width=auto height=100% empty min-width: 150x75 child=37.5abspos flow-root width=auto height=100% empty max-width: 0x0 child=0abspos flow-root width=auto height=100% empty min-width-max-height: 150x30 child=15abspos flow-root width=auto height=100% empty max-width-min-height: 40x60 child=30-abspos flow-root width=auto height=100% empty border-box-min-height: 10x60 child=25+abspos flow-root width=auto height=100% empty border-box-min-height: 120x60 child=25abspos flow-root width=auto height=100% empty border-box-max-width: 10x10 child=0-abspos flow-root width=auto height=100% tall min-height: 10x60 child=30-abspos flow-root width=auto height=100% tall min-height-large: 10x150 child=75+abspos flow-root width=auto height=100% tall min-height: 120x60 child=30+abspos flow-root width=auto height=100% tall min-height-large: 300x150 child=75abspos flow-root width=auto height=100% tall max-height: 10x5 child=2.5abspos flow-root width=auto height=100% tall min-width: 150x75 child=37.5abspos flow-root width=auto height=100% tall max-width: 10x5 child=2.5abspos flow-root width=auto height=100% tall min-width-max-height: 150x30 child=15abspos flow-root width=auto height=100% tall max-width-min-height: 40x60 child=30-abspos flow-root width=auto height=100% tall border-box-min-height: 20x60 child=25+abspos flow-root width=auto height=100% tall border-box-min-height: 120x60 child=25abspos flow-root width=auto height=100% tall border-box-max-width: 20x10 child=0abspos flow-root width=auto height=40px empty min-height: 120x60 child=30abspos flow-root width=auto height=40px empty min-height-large: 300x150 child=75@@ -10852,41 +10852,41 @@ abspos float width=50% height=40px tall min-width-max-height: 150x30 child=15abspos float width=50% height=40px tall max-width-min-height: 20x60 child=30abspos float width=50% height=40px tall border-box-min-height: 60x60 child=25abspos float width=50% height=40px tall border-box-max-width: 20x40 child=15-abspos flex width=auto height=auto empty min-height: 0x60 child=30-abspos flex width=auto height=auto empty min-height-large: 0x150 child=75+abspos flex width=auto height=auto empty min-height: 120x60 child=30+abspos flex width=auto height=auto empty min-height-large: 300x150 child=75abspos flex width=auto height=auto empty max-height: 0x0 child=0abspos flex width=auto height=auto empty min-width: 150x75 child=37.5abspos flex width=auto height=auto empty max-width: 0x0 child=0abspos flex width=auto height=auto empty min-width-max-height: 150x30 child=15abspos flex width=auto height=auto empty max-width-min-height: 40x60 child=30-abspos flex width=auto height=auto empty border-box-min-height: 10x60 child=25+abspos flex width=auto height=auto empty border-box-min-height: 120x60 child=25abspos flex width=auto height=auto empty border-box-max-width: 10x10 child=0-abspos flex width=auto height=auto tall min-height: 10x60 child=30-abspos flex width=auto height=auto tall min-height-large: 10x150 child=75+abspos flex width=auto height=auto tall min-height: 120x60 child=30+abspos flex width=auto height=auto tall min-height-large: 300x150 child=75abspos flex width=auto height=auto tall max-height: 10x30 child=2.5abspos flex width=auto height=auto tall min-width: 150x300 child=37.5abspos flex width=auto height=auto tall max-width: 10x300 child=2.5abspos flex width=auto height=auto tall min-width-max-height: 150x30 child=15abspos flex width=auto height=auto tall max-width-min-height: 40x60 child=30-abspos flex width=auto height=auto tall border-box-min-height: 20x60 child=25+abspos flex width=auto height=auto tall border-box-min-height: 120x60 child=25abspos flex width=auto height=auto tall border-box-max-width: 20x310 child=0-abspos flex width=auto height=100% empty min-height: 0x60 child=30-abspos flex width=auto height=100% empty min-height-large: 0x150 child=75+abspos flex width=auto height=100% empty min-height: 120x60 child=30+abspos flex width=auto height=100% empty min-height-large: 300x150 child=75abspos flex width=auto height=100% empty max-height: 0x0 child=0abspos flex width=auto height=100% empty min-width: 150x75 child=37.5abspos flex width=auto height=100% empty max-width: 0x0 child=0abspos flex width=auto height=100% empty min-width-max-height: 150x30 child=15abspos flex width=auto height=100% empty max-width-min-height: 40x60 child=30-abspos flex width=auto height=100% empty border-box-min-height: 10x60 child=25+abspos flex width=auto height=100% empty border-box-min-height: 120x60 child=25abspos flex width=auto height=100% empty border-box-max-width: 10x10 child=0-abspos flex width=auto height=100% tall min-height: 10x60 child=30-abspos flex width=auto height=100% tall min-height-large: 10x150 child=75+abspos flex width=auto height=100% tall min-height: 120x60 child=30+abspos flex width=auto height=100% tall min-height-large: 300x150 child=75abspos flex width=auto height=100% tall max-height: 10x5 child=2.5abspos flex width=auto height=100% tall min-width: 150x75 child=37.5abspos flex width=auto height=100% tall max-width: 10x5 child=2.5abspos flex width=auto height=100% tall min-width-max-height: 150x30 child=15abspos flex width=auto height=100% tall max-width-min-height: 40x60 child=30-abspos flex width=auto height=100% tall border-box-min-height: 20x60 child=25+abspos flex width=auto height=100% tall border-box-min-height: 120x60 child=25abspos flex width=auto height=100% tall border-box-max-width: 20x10 child=0abspos flex width=auto height=40px empty min-height: 120x60 child=30abspos flex width=auto height=40px empty min-height-large: 300x150 child=75@@ -11014,41 +11014,41 @@ abspos flex width=50% height=40px tall min-width-max-height: 150x30 child=15abspos flex width=50% height=40px tall max-width-min-height: 20x60 child=30abspos flex width=50% height=40px tall border-box-min-height: 60x60 child=25abspos flex width=50% height=40px tall border-box-max-width: 20x40 child=15-abspos grid width=auto height=auto empty min-height: 0x60 child=30-abspos grid width=auto height=auto empty min-height-large: 0x150 child=75+abspos grid width=auto height=auto empty min-height: 120x60 child=30+abspos grid width=auto height=auto empty min-height-large: 300x150 child=75abspos grid width=auto height=auto empty max-height: 0x0 child=0abspos grid width=auto height=auto empty min-width: 150x75 child=37.5abspos grid width=auto height=auto empty max-width: 0x0 child=0abspos grid width=auto height=auto empty min-width-max-height: 150x30 child=15abspos grid width=auto height=auto empty max-width-min-height: 40x60 child=30-abspos grid width=auto height=auto empty border-box-min-height: 10x60 child=25+abspos grid width=auto height=auto empty border-box-min-height: 120x60 child=25abspos grid width=auto height=auto empty border-box-max-width: 10x10 child=0-abspos grid width=auto height=auto tall min-height: 10x60 child=0-abspos grid width=auto height=auto tall min-height-large: 10x150 child=0+abspos grid width=auto height=auto tall min-height: 120x60 child=0+abspos grid width=auto height=auto tall min-height-large: 300x150 child=0abspos grid width=auto height=auto tall max-height: 10x30 child=0abspos grid width=auto height=auto tall min-width: 150x300 child=0abspos grid width=auto height=auto tall max-width: 10x300 child=0abspos grid width=auto height=auto tall min-width-max-height: 150x30 child=0abspos grid width=auto height=auto tall max-width-min-height: 40x60 child=0-abspos grid width=auto height=auto tall border-box-min-height: 20x60 child=0+abspos grid width=auto height=auto tall border-box-min-height: 120x60 child=0abspos grid width=auto height=auto tall border-box-max-width: 20x310 child=0-abspos grid width=auto height=100% empty min-height: 0x60 child=30-abspos grid width=auto height=100% empty min-height-large: 0x150 child=75+abspos grid width=auto height=100% empty min-height: 120x60 child=30+abspos grid width=auto height=100% empty min-height-large: 300x150 child=75abspos grid width=auto height=100% empty max-height: 0x0 child=0abspos grid width=auto height=100% empty min-width: 150x75 child=37.5abspos grid width=auto height=100% empty max-width: 0x0 child=0abspos grid width=auto height=100% empty min-width-max-height: 150x30 child=15abspos grid width=auto height=100% empty max-width-min-height: 40x60 child=30-abspos grid width=auto height=100% empty border-box-min-height: 10x60 child=25+abspos grid width=auto height=100% empty border-box-min-height: 120x60 child=25abspos grid width=auto height=100% empty border-box-max-width: 10x10 child=0-abspos grid width=auto height=100% tall min-height: 10x60 child=0-abspos grid width=auto height=100% tall min-height-large: 10x150 child=0+abspos grid width=auto height=100% tall min-height: 120x60 child=0+abspos grid width=auto height=100% tall min-height-large: 300x150 child=0abspos grid width=auto height=100% tall max-height: 10x5 child=0abspos grid width=auto height=100% tall min-width: 150x75 child=0abspos grid width=auto height=100% tall max-width: 10x5 child=0abspos grid width=auto height=100% tall min-width-max-height: 150x30 child=0abspos grid width=auto height=100% tall max-width-min-height: 40x60 child=0-abspos grid width=auto height=100% tall border-box-min-height: 20x60 child=0+abspos grid width=auto height=100% tall border-box-min-height: 120x60 child=0abspos grid width=auto height=100% tall border-box-max-width: 20x10 child=0abspos grid width=auto height=40px empty min-height: 120x60 child=30abspos grid width=auto height=40px empty min-height-large: 300x150 child=75diff --git a/Tests/LibWeb/Text/expected/css/aspect-ratio-percentage-height-matrix.txt b/Tests/LibWeb/Text/expected/css/aspect-ratio-percentage-height-matrix.txtindex fbfb59c47a8..86cccc7a622 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@@ -3528,27 +3528,27 @@ grid-definite-row abspos width=50% height=auto tall min-height: 100x60 child=0grid-definite-row abspos width=50% height=auto tall padding: 100x310 child=0inline-block block width=auto height=100% empty none: 0x0 child=0inline-block block width=auto height=100% empty max-height: 0x0 child=0-inline-block block width=auto height=100% empty min-height: 0x60 child=30+inline-block block width=auto height=100% empty min-height: 120x60 child=30inline-block block width=auto height=100% empty padding: 10x10 child=0inline-block block width=auto height=100% tall none: 10x5 child=2.5inline-block block width=auto height=100% tall max-height: 10x5 child=2.5-inline-block block width=auto height=100% tall min-height: 10x60 child=30+inline-block block width=auto height=100% tall min-height: 120x60 child=30inline-block block width=auto height=100% tall padding: 20x10 child=0inline-block block width=auto height=calc empty none: 0x0 child=0inline-block block width=auto height=calc empty max-height: 0x0 child=0-inline-block block width=auto height=calc empty min-height: 0x60 child=30+inline-block block width=auto height=calc empty min-height: 120x60 child=30inline-block block width=auto height=calc empty padding: 10x10 child=0inline-block block width=auto height=calc tall none: 10x5 child=2.5inline-block block width=auto height=calc tall max-height: 10x5 child=2.5-inline-block block width=auto height=calc tall min-height: 10x60 child=30+inline-block block width=auto height=calc tall min-height: 120x60 child=30inline-block block width=auto height=calc tall padding: 20x10 child=0inline-block block width=auto height=auto empty none: 0x0 child=0inline-block block width=auto height=auto empty max-height: 0x0 child=0-inline-block block width=auto height=auto empty min-height: 0x60 child=30+inline-block block width=auto height=auto empty min-height: 120x60 child=30inline-block block width=auto height=auto empty padding: 10x10 child=0inline-block block width=auto height=auto tall none: 10x302.5 child=2.5inline-block block width=auto height=auto tall max-height: 10x30 child=2.5-inline-block block width=auto height=auto tall min-height: 10x60 child=30+inline-block block width=auto height=auto tall min-height: 120x60 child=30inline-block block width=auto height=auto tall padding: 20x310 child=0inline-block block width=80px height=100% empty none: 80x40 child=20inline-block block width=80px height=100% empty max-height: 80x30 child=15@@ -3600,27 +3600,27 @@ inline-block block width=50% height=auto tall min-height: 5x60 child=30inline-block block width=50% height=auto tall padding: 10x310 child=0inline-block flow-root width=auto height=100% empty none: 0x0 child=0inline-block flow-root width=auto height=100% empty max-height: 0x0 child=0-inline-block flow-root width=auto height=100% empty min-height: 0x60 child=30+inline-block flow-root width=auto height=100% empty min-height: 120x60 child=30inline-block flow-root width=auto height=100% empty padding: 10x10 child=0inline-block flow-root width=auto height=100% tall none: 10x5 child=2.5inline-block flow-root width=auto height=100% tall max-height: 10x5 child=2.5-inline-block flow-root width=auto height=100% tall min-height: 10x60 child=30+inline-block flow-root width=auto height=100% tall min-height: 120x60 child=30inline-block flow-root width=auto height=100% tall padding: 20x10 child=0inline-block flow-root width=auto height=calc empty none: 0x0 child=0inline-block flow-root width=auto height=calc empty max-height: 0x0 child=0-inline-block flow-root width=auto height=calc empty min-height: 0x60 child=30+inline-block flow-root width=auto height=calc empty min-height: 120x60 child=30inline-block flow-root width=auto height=calc empty padding: 10x10 child=0inline-block flow-root width=auto height=calc tall none: 10x5 child=2.5inline-block flow-root width=auto height=calc tall max-height: 10x5 child=2.5-inline-block flow-root width=auto height=calc tall min-height: 10x60 child=30+inline-block flow-root width=auto height=calc tall min-height: 120x60 child=30inline-block flow-root width=auto height=calc tall padding: 20x10 child=0inline-block flow-root width=auto height=auto empty none: 0x0 child=0inline-block flow-root width=auto height=auto empty max-height: 0x0 child=0-inline-block flow-root width=auto height=auto empty min-height: 0x60 child=30+inline-block flow-root width=auto height=auto empty min-height: 120x60 child=30inline-block flow-root width=auto height=auto empty padding: 10x10 child=0inline-block flow-root width=auto height=auto tall none: 10x302.5 child=2.5inline-block flow-root width=auto height=auto tall max-height: 10x30 child=2.5-inline-block flow-root width=auto height=auto tall min-height: 10x60 child=30+inline-block flow-root width=auto height=auto tall min-height: 120x60 child=30inline-block flow-root width=auto height=auto tall padding: 20x310 child=0inline-block flow-root width=80px height=100% empty none: 80x40 child=20inline-block flow-root width=80px height=100% empty max-height: 80x30 child=15@@ -3816,27 +3816,27 @@ inline-block float width=50% height=auto tall min-height: 5x60 child=30inline-block float width=50% height=auto tall padding: 10x310 child=0inline-block flex width=auto height=100% empty none: 0x0 child=0inline-block flex width=auto height=100% empty max-height: 0x0 child=0-inline-block flex width=auto height=100% empty min-height: 0x60 child=30+inline-block flex width=auto height=100% empty min-height: 120x60 child=30inline-block flex width=auto height=100% empty padding: 10x10 child=0inline-block flex width=auto height=100% tall none: 10x5 child=2.5inline-block flex width=auto height=100% tall max-height: 10x5 child=2.5-inline-block flex width=auto height=100% tall min-height: 10x60 child=30+inline-block flex width=auto height=100% tall min-height: 120x60 child=30inline-block flex width=auto height=100% tall padding: 20x10 child=0inline-block flex width=auto height=calc empty none: 0x0 child=0inline-block flex width=auto height=calc empty max-height: 0x0 child=0-inline-block flex width=auto height=calc empty min-height: 0x60 child=30+inline-block flex width=auto height=calc empty min-height: 120x60 child=30inline-block flex width=auto height=calc empty padding: 10x10 child=0inline-block flex width=auto height=calc tall none: 10x5 child=2.5inline-block flex width=auto height=calc tall max-height: 10x5 child=2.5-inline-block flex width=auto height=calc tall min-height: 10x60 child=30+inline-block flex width=auto height=calc tall min-height: 120x60 child=30inline-block flex width=auto height=calc tall padding: 20x10 child=0inline-block flex width=auto height=auto empty none: 0x0 child=0inline-block flex width=auto height=auto empty max-height: 0x0 child=0-inline-block flex width=auto height=auto empty min-height: 0x60 child=30+inline-block flex width=auto height=auto empty min-height: 120x60 child=30inline-block flex width=auto height=auto empty padding: 10x10 child=0inline-block flex width=auto height=auto tall none: 10x300 child=2.5inline-block flex width=auto height=auto tall max-height: 10x30 child=2.5-inline-block flex width=auto height=auto tall min-height: 10x60 child=30+inline-block flex width=auto height=auto tall min-height: 120x60 child=30inline-block flex width=auto height=auto tall padding: 20x310 child=0inline-block flex width=80px height=100% empty none: 80x40 child=20inline-block flex width=80px height=100% empty max-height: 80x30 child=15@@ -3888,27 +3888,27 @@ inline-block flex width=50% height=auto tall min-height: 5x60 child=30inline-block flex width=50% height=auto tall padding: 10x310 child=0inline-block grid width=auto height=100% empty none: 0x0 child=0inline-block grid width=auto height=100% empty max-height: 0x0 child=0-inline-block grid width=auto height=100% empty min-height: 0x60 child=30+inline-block grid width=auto height=100% empty min-height: 120x60 child=30inline-block grid width=auto height=100% empty padding: 10x10 child=0inline-block grid width=auto height=100% tall none: 10x5 child=0inline-block grid width=auto height=100% tall max-height: 10x5 child=0-inline-block grid width=auto height=100% tall min-height: 10x60 child=0+inline-block grid width=auto height=100% tall min-height: 120x60 child=0inline-block grid width=auto height=100% tall padding: 20x10 child=0inline-block grid width=auto height=calc empty none: 0x0 child=0inline-block grid width=auto height=calc empty max-height: 0x0 child=0-inline-block grid width=auto height=calc empty min-height: 0x60 child=30+inline-block grid width=auto height=calc empty min-height: 120x60 child=30inline-block grid width=auto height=calc empty padding: 10x10 child=0inline-block grid width=auto height=calc tall none: 10x5 child=0inline-block grid width=auto height=calc tall max-height: 10x5 child=0-inline-block grid width=auto height=calc tall min-height: 10x60 child=0+inline-block grid width=auto height=calc tall min-height: 120x60 child=0inline-block grid width=auto height=calc tall padding: 20x10 child=0inline-block grid width=auto height=auto empty none: 0x0 child=0inline-block grid width=auto height=auto empty max-height: 0x0 child=0-inline-block grid width=auto height=auto empty min-height: 0x60 child=30+inline-block grid width=auto height=auto empty min-height: 120x60 child=30inline-block grid width=auto height=auto empty padding: 10x10 child=0inline-block grid width=auto height=auto tall none: 10x300 child=0inline-block grid width=auto height=auto tall max-height: 10x30 child=0-inline-block grid width=auto height=auto tall min-height: 10x60 child=0+inline-block grid width=auto height=auto tall min-height: 120x60 child=0inline-block grid width=auto height=auto tall padding: 20x310 child=0inline-block grid width=80px height=100% empty none: 80x40 child=20inline-block grid width=80px height=100% empty max-height: 80x30 child=15@@ -4536,27 +4536,27 @@ float abspos width=50% height=auto tall min-height: 100x60 child=0float abspos width=50% height=auto tall padding: 100x310 child=0abspos block width=auto height=100% empty none: 0x0 child=0abspos block width=auto height=100% empty max-height: 0x0 child=0-abspos block width=auto height=100% empty min-height: 0x60 child=30+abspos block width=auto height=100% empty min-height: 120x60 child=30abspos block width=auto height=100% empty padding: 10x10 child=0abspos block width=auto height=100% tall none: 10x5 child=2.5abspos block width=auto height=100% tall max-height: 10x5 child=2.5-abspos block width=auto height=100% tall min-height: 10x60 child=30+abspos block width=auto height=100% tall min-height: 120x60 child=30abspos block width=auto height=100% tall padding: 20x10 child=0abspos block width=auto height=calc empty none: 0x0 child=0abspos block width=auto height=calc empty max-height: 0x0 child=0-abspos block width=auto height=calc empty min-height: 0x60 child=30+abspos block width=auto height=calc empty min-height: 120x60 child=30abspos block width=auto height=calc empty padding: 10x10 child=0abspos block width=auto height=calc tall none: 10x5 child=2.5abspos block width=auto height=calc tall max-height: 10x5 child=2.5-abspos block width=auto height=calc tall min-height: 10x60 child=30+abspos block width=auto height=calc tall min-height: 120x60 child=30abspos block width=auto height=calc tall padding: 20x10 child=0abspos block width=auto height=auto empty none: 0x0 child=0abspos block width=auto height=auto empty max-height: 0x0 child=0-abspos block width=auto height=auto empty min-height: 0x60 child=30+abspos block width=auto height=auto empty min-height: 120x60 child=30abspos block width=auto height=auto empty padding: 10x10 child=0abspos block width=auto height=auto tall none: 10x302.5 child=2.5abspos block width=auto height=auto tall max-height: 10x30 child=2.5-abspos block width=auto height=auto tall min-height: 10x60 child=30+abspos block width=auto height=auto tall min-height: 120x60 child=30abspos block width=auto height=auto tall padding: 20x310 child=0abspos block width=80px height=100% empty none: 80x40 child=20abspos block width=80px height=100% empty max-height: 80x30 child=15@@ -4608,27 +4608,27 @@ abspos block width=50% height=auto tall min-height: 5x60 child=30abspos block width=50% height=auto tall padding: 10x310 child=0abspos flow-root width=auto height=100% empty none: 0x0 child=0abspos flow-root width=auto height=100% empty max-height: 0x0 child=0-abspos flow-root width=auto height=100% empty min-height: 0x60 child=30+abspos flow-root width=auto height=100% empty min-height: 120x60 child=30abspos flow-root width=auto height=100% empty padding: 10x10 child=0abspos flow-root width=auto height=100% tall none: 10x5 child=2.5abspos flow-root width=auto height=100% tall max-height: 10x5 child=2.5-abspos flow-root width=auto height=100% tall min-height: 10x60 child=30+abspos flow-root width=auto height=100% tall min-height: 120x60 child=30abspos flow-root width=auto height=100% tall padding: 20x10 child=0abspos flow-root width=auto height=calc empty none: 0x0 child=0abspos flow-root width=auto height=calc empty max-height: 0x0 child=0-abspos flow-root width=auto height=calc empty min-height: 0x60 child=30+abspos flow-root width=auto height=calc empty min-height: 120x60 child=30abspos flow-root width=auto height=calc empty padding: 10x10 child=0abspos flow-root width=auto height=calc tall none: 10x5 child=2.5abspos flow-root width=auto height=calc tall max-height: 10x5 child=2.5-abspos flow-root width=auto height=calc tall min-height: 10x60 child=30+abspos flow-root width=auto height=calc tall min-height: 120x60 child=30abspos flow-root width=auto height=calc tall padding: 20x10 child=0abspos flow-root width=auto height=auto empty none: 0x0 child=0abspos flow-root width=auto height=auto empty max-height: 0x0 child=0-abspos flow-root width=auto height=auto empty min-height: 0x60 child=30+abspos flow-root width=auto height=auto empty min-height: 120x60 child=30abspos flow-root width=auto height=auto empty padding: 10x10 child=0abspos flow-root width=auto height=auto tall none: 10x302.5 child=2.5abspos flow-root width=auto height=auto tall max-height: 10x30 child=2.5-abspos flow-root width=auto height=auto tall min-height: 10x60 child=30+abspos flow-root width=auto height=auto tall min-height: 120x60 child=30abspos flow-root width=auto height=auto tall padding: 20x310 child=0abspos flow-root width=80px height=100% empty none: 80x40 child=20abspos flow-root width=80px height=100% empty max-height: 80x30 child=15@@ -4824,27 +4824,27 @@ abspos float width=50% height=auto tall min-height: 5x60 child=30abspos float width=50% height=auto tall padding: 10x310 child=0abspos flex width=auto height=100% empty none: 0x0 child=0abspos flex width=auto height=100% empty max-height: 0x0 child=0-abspos flex width=auto height=100% empty min-height: 0x60 child=30+abspos flex width=auto height=100% empty min-height: 120x60 child=30abspos flex width=auto height=100% empty padding: 10x10 child=0abspos flex width=auto height=100% tall none: 10x5 child=2.5abspos flex width=auto height=100% tall max-height: 10x5 child=2.5-abspos flex width=auto height=100% tall min-height: 10x60 child=30+abspos flex width=auto height=100% tall min-height: 120x60 child=30abspos flex width=auto height=100% tall padding: 20x10 child=0abspos flex width=auto height=calc empty none: 0x0 child=0abspos flex width=auto height=calc empty max-height: 0x0 child=0-abspos flex width=auto height=calc empty min-height: 0x60 child=30+abspos flex width=auto height=calc empty min-height: 120x60 child=30abspos flex width=auto height=calc empty padding: 10x10 child=0abspos flex width=auto height=calc tall none: 10x5 child=2.5abspos flex width=auto height=calc tall max-height: 10x5 child=2.5-abspos flex width=auto height=calc tall min-height: 10x60 child=30+abspos flex width=auto height=calc tall min-height: 120x60 child=30abspos flex width=auto height=calc tall padding: 20x10 child=0abspos flex width=auto height=auto empty none: 0x0 child=0abspos flex width=auto height=auto empty max-height: 0x0 child=0-abspos flex width=auto height=auto empty min-height: 0x60 child=30+abspos flex width=auto height=auto empty min-height: 120x60 child=30abspos flex width=auto height=auto empty padding: 10x10 child=0abspos flex width=auto height=auto tall none: 10x300 child=2.5abspos flex width=auto height=auto tall max-height: 10x30 child=2.5-abspos flex width=auto height=auto tall min-height: 10x60 child=30+abspos flex width=auto height=auto tall min-height: 120x60 child=30abspos flex width=auto height=auto tall padding: 20x310 child=0abspos flex width=80px height=100% empty none: 80x40 child=20abspos flex width=80px height=100% empty max-height: 80x30 child=15@@ -4896,27 +4896,27 @@ abspos flex width=50% height=auto tall min-height: 5x60 child=30abspos flex width=50% height=auto tall padding: 10x310 child=0abspos grid width=auto height=100% empty none: 0x0 child=0abspos grid width=auto height=100% empty max-height: 0x0 child=0-abspos grid width=auto height=100% empty min-height: 0x60 child=30+abspos grid width=auto height=100% empty min-height: 120x60 child=30abspos grid width=auto height=100% empty padding: 10x10 child=0abspos grid width=auto height=100% tall none: 10x5 child=0abspos grid width=auto height=100% tall max-height: 10x5 child=0-abspos grid width=auto height=100% tall min-height: 10x60 child=0+abspos grid width=auto height=100% tall min-height: 120x60 child=0abspos grid width=auto height=100% tall padding: 20x10 child=0abspos grid width=auto height=calc empty none: 0x0 child=0abspos grid width=auto height=calc empty max-height: 0x0 child=0-abspos grid width=auto height=calc empty min-height: 0x60 child=30+abspos grid width=auto height=calc empty min-height: 120x60 child=30abspos grid width=auto height=calc empty padding: 10x10 child=0abspos grid width=auto height=calc tall none: 10x5 child=0abspos grid width=auto height=calc tall max-height: 10x5 child=0-abspos grid width=auto height=calc tall min-height: 10x60 child=0+abspos grid width=auto height=calc tall min-height: 120x60 child=0abspos grid width=auto height=calc tall padding: 20x10 child=0abspos grid width=auto height=auto empty none: 0x0 child=0abspos grid width=auto height=auto empty max-height: 0x0 child=0-abspos grid width=auto height=auto empty min-height: 0x60 child=30+abspos grid width=auto height=auto empty min-height: 120x60 child=30abspos grid width=auto height=auto empty padding: 10x10 child=0abspos grid width=auto height=auto tall none: 10x300 child=0abspos grid width=auto height=auto tall max-height: 10x30 child=0-abspos grid width=auto height=auto tall min-height: 10x60 child=0+abspos grid width=auto height=auto tall min-height: 120x60 child=0abspos grid width=auto height=auto tall padding: 20x310 child=0abspos grid width=80px height=100% empty none: 80x40 child=20abspos grid width=80px height=100% empty max-height: 80x30 child=15diff --git a/Tests/LibWeb/Text/expected/css/replaced-min-size-transfers-past-max-none.txt b/Tests/LibWeb/Text/expected/css/replaced-min-size-transfers-past-max-none.txtnew file mode 100644index 00000000000..727d1f41bb3--- /dev/null+++ b/Tests/LibWeb/Text/expected/css/replaced-min-size-transfers-past-max-none.txt@@ -0,0 +1,6 @@+min-height: 300x150+min-width: 300x150+max-height: 60x30+min-height-with-width: 200x150+block-min-height: 300x150+block-max-height: 60x30diff --git a/Tests/LibWeb/Text/input/css/replaced-min-size-transfers-past-max-none.html b/Tests/LibWeb/Text/input/css/replaced-min-size-transfers-past-max-none.htmlnew file mode 100644index 00000000000..46522b6c740--- /dev/null+++ b/Tests/LibWeb/Text/input/css/replaced-min-size-transfers-past-max-none.html@@ -0,0 +1,23 @@+<!DOCTYPE html>+<style>+ canvas {+ display: block;+ }+</style>+<div style="width: 200px">+ <canvas id="min-height" width="100" height="50" style="min-height: 150px"></canvas>+ <canvas id="min-width" width="100" height="50" style="min-width: 300px"></canvas>+ <canvas id="max-height" width="400" height="200" style="max-height: 30px"></canvas>+ <canvas id="min-height-with-width" width="100" height="50" style="width: 100%; min-height: 150px"></canvas>+ <div id="block-min-height" style="aspect-ratio: 2 / 1; min-height: 150px"></div>+ <div id="block-max-height" style="aspect-ratio: 2 / 1; max-height: 30px"></div>+</div>+<script src="../include.js"></script>+<script>+ test(() => {+ for (const id of ["min-height", "min-width", "max-height", "min-height-with-width", "block-min-height", "block-max-height"]) {+ const rect = document.getElementById(id).getBoundingClientRect();+ println(`${id}: ${rect.width}x${rect.height}`);+ }+ });+</script>