Skip to content

Truly independent web browser

LibWeb: Give reified Typed OM math values their constructed types

Andreas Klingc3de5bd9e6dc
diff --git a/Libraries/LibWeb/CSS/StyleValues/CalculatedStyleValue.cpp b/Libraries/LibWeb/CSS/StyleValues/CalculatedStyleValue.cpp
index 422f5727d9f..cfed38b89de 100644
--- a/Libraries/LibWeb/CSS/StyleValues/CalculatedStyleValue.cpp
+++ b/Libraries/LibWeb/CSS/StyleValues/CalculatedStyleValue.cpp
@@ -311,6 +311,27 @@ static GC::Ptr<CSSNumericValue> reify_rust_calculation(StyleValueFFI::StyleValue
VERIFY(children[index] < reified_nodes.size());
return reified_nodes[children[index]];
};
+
+ // NB: The reified objects get the types that their constructors would give them, computed from their
+ // reified children. The internal calculation's type may differ, for example by carrying a percent hint
+ // from the property that it belongs to.
+ auto combined_type_of_children = [&](auto combine) {
+ Optional<NumericType> type;
+ for (auto index : children) {
+ VERIFY(index < reified_nodes.size());
+ auto const& child_type = reified_nodes[index]->type();
+ type = type.has_value() ? combine(*type, child_type) : child_type;
+ if (!type.has_value())
+ return numeric_type;
+ }
+ return type.value_or(numeric_type);
+ };
+ auto added_types_of_children = [&]() {
+ return combined_type_of_children([](NumericType const& a, NumericType const& b) { return a.added_to(b); });
+ };
+ auto multiplied_types_of_children = [&]() {
+ return combined_type_of_children([](NumericType const& a, NumericType const& b) { return a.multiplied_by(b); });
+ };
auto reify_children = [&]() {
GC::RootVector<GC::Ref<CSSNumericValue>> result;
result.ensure_capacity(children.size());
@@ -353,28 +374,28 @@ static GC::Ptr<CSSNumericValue> reify_rust_calculation(StyleValueFFI::StyleValue
}
break;
case 2:
- reified_nodes.append(CSSMathSum::create(move(numeric_type), reify_children()));
+ reified_nodes.append(CSSMathSum::create(added_types_of_children(), reify_children()));
break;
case 3:
- reified_nodes.append(CSSMathProduct::create(move(numeric_type), reify_children()));
+ reified_nodes.append(CSSMathProduct::create(multiplied_types_of_children(), reify_children()));
break;
case 4:
VERIFY(children.size() == 1);
- reified_nodes.append(CSSMathNegate::create(move(numeric_type), child(0)));
+ reified_nodes.append(CSSMathNegate::create(child(0)->type(), child(0)));
break;
case 5:
VERIFY(children.size() == 1);
- reified_nodes.append(CSSMathInvert::create(move(numeric_type), child(0)));
+ reified_nodes.append(CSSMathInvert::create(child(0)->type().inverted(), child(0)));
break;
case 6:
- reified_nodes.append(CSSMathMin::create(move(numeric_type), reify_children()));
+ reified_nodes.append(CSSMathMin::create(added_types_of_children(), reify_children()));
break;
case 7:
- reified_nodes.append(CSSMathMax::create(move(numeric_type), reify_children()));
+ reified_nodes.append(CSSMathMax::create(added_types_of_children(), reify_children()));
break;
case 8:
VERIFY(children.size() == 3);
- reified_nodes.append(CSSMathClamp::create(move(numeric_type), child(0), child(1), child(2)));
+ reified_nodes.append(CSSMathClamp::create(added_types_of_children(), child(0), child(1), child(2)));
break;
default:
VERIFY_NOT_REACHED();
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/background-size.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/background-size.txt
index 5a2e6cbef74..f2ee46dcd65 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/background-size.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/background-size.txt
@@ -2,8 +2,8 @@ Harness status: OK
Found 35 tests
-33 Pass
-2 Fail
+34 Pass
+1 Fail
Pass Can set 'background-size' to CSS-wide keywords: initial
Pass Can set 'background-size' to CSS-wide keywords: inherit
Pass Can set 'background-size' to CSS-wide keywords: unset
@@ -16,7 +16,7 @@ Pass Can set 'background-size' to a length: calc(0px + 0em)
Pass Can set 'background-size' to a percent: 0%
Fail Can set 'background-size' to a percent: -3.14%
Pass Can set 'background-size' to a percent: 3.14%
-Fail Can set 'background-size' to a percent: calc(0% + 0%)
+Pass Can set 'background-size' to a percent: calc(0% + 0%)
Pass Can set 'background-size' to the 'auto' keyword: auto
Pass Can set 'background-size' to the 'cover' keyword: cover
Pass Can set 'background-size' to the 'contain' keyword: contain
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/block-size.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/block-size.txt
index 6954c552aa7..d27c40a6009 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/block-size.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/block-size.txt
@@ -2,8 +2,8 @@ Harness status: OK
Found 95 tests
-89 Pass
-6 Fail
+92 Pass
+3 Fail
Pass Can set 'block-size' to CSS-wide keywords: initial
Pass Can set 'block-size' to CSS-wide keywords: inherit
Pass Can set 'block-size' to CSS-wide keywords: unset
@@ -13,7 +13,7 @@ Pass Can set 'block-size' to the 'auto' keyword: auto
Pass Can set 'block-size' to a percent: 0%
Fail Can set 'block-size' to a percent: -3.14%
Pass Can set 'block-size' to a percent: 3.14%
-Fail Can set 'block-size' to a percent: calc(0% + 0%)
+Pass Can set 'block-size' to a percent: calc(0% + 0%)
Pass Can set 'block-size' to a length: 0px
Pass Can set 'block-size' to a length: -3.14em
Pass Can set 'block-size' to a length: 3.14cm
@@ -44,7 +44,7 @@ Pass Can set 'min-block-size' to var() references: var(--A)
Pass Can set 'min-block-size' to a percent: 0%
Fail Can set 'min-block-size' to a percent: -3.14%
Pass Can set 'min-block-size' to a percent: 3.14%
-Fail Can set 'min-block-size' to a percent: calc(0% + 0%)
+Pass Can set 'min-block-size' to a percent: calc(0% + 0%)
Pass Can set 'min-block-size' to a length: 0px
Pass Can set 'min-block-size' to a length: -3.14em
Pass Can set 'min-block-size' to a length: 3.14cm
@@ -76,7 +76,7 @@ Pass Can set 'max-block-size' to the 'none' keyword: none
Pass Can set 'max-block-size' to a percent: 0%
Fail Can set 'max-block-size' to a percent: -3.14%
Pass Can set 'max-block-size' to a percent: 3.14%
-Fail Can set 'max-block-size' to a percent: calc(0% + 0%)
+Pass Can set 'max-block-size' to a percent: calc(0% + 0%)
Pass Can set 'max-block-size' to a length: 0px
Pass Can set 'max-block-size' to a length: -3.14em
Pass Can set 'max-block-size' to a length: 3.14cm
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/bottom.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/bottom.txt
index c184cdb7ab1..8bcdeef47fc 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/bottom.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/bottom.txt
@@ -2,8 +2,7 @@ Harness status: OK
Found 32 tests
-31 Pass
-1 Fail
+32 Pass
Pass Can set 'bottom' to CSS-wide keywords: initial
Pass Can set 'bottom' to CSS-wide keywords: inherit
Pass Can set 'bottom' to CSS-wide keywords: unset
@@ -13,7 +12,7 @@ Pass Can set 'bottom' to the 'auto' keyword: auto
Pass Can set 'bottom' to a percent: 0%
Pass Can set 'bottom' to a percent: -3.14%
Pass Can set 'bottom' to a percent: 3.14%
-Fail Can set 'bottom' to a percent: calc(0% + 0%)
+Pass Can set 'bottom' to a percent: calc(0% + 0%)
Pass Can set 'bottom' to a length: 0px
Pass Can set 'bottom' to a length: -3.14em
Pass Can set 'bottom' to a length: 3.14cm
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/center-coordinate.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/center-coordinate.txt
index 6053a2e2d89..e91ab22aecb 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/center-coordinate.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/center-coordinate.txt
@@ -2,8 +2,7 @@ Harness status: OK
Found 62 tests
-60 Pass
-2 Fail
+62 Pass
Pass Can set 'cx' to CSS-wide keywords: initial
Pass Can set 'cx' to CSS-wide keywords: inherit
Pass Can set 'cx' to CSS-wide keywords: unset
@@ -12,7 +11,7 @@ Pass Can set 'cx' to var() references: var(--A)
Pass Can set 'cx' to a percent: 0%
Pass Can set 'cx' to a percent: -3.14%
Pass Can set 'cx' to a percent: 3.14%
-Fail Can set 'cx' to a percent: calc(0% + 0%)
+Pass Can set 'cx' to a percent: calc(0% + 0%)
Pass Can set 'cx' to a length: 0px
Pass Can set 'cx' to a length: -3.14em
Pass Can set 'cx' to a length: 3.14cm
@@ -43,7 +42,7 @@ Pass Can set 'cy' to var() references: var(--A)
Pass Can set 'cy' to a percent: 0%
Pass Can set 'cy' to a percent: -3.14%
Pass Can set 'cy' to a percent: 3.14%
-Fail Can set 'cy' to a percent: calc(0% + 0%)
+Pass Can set 'cy' to a percent: calc(0% + 0%)
Pass Can set 'cy' to a length: 0px
Pass Can set 'cy' to a length: -3.14em
Pass Can set 'cy' to a length: 3.14cm
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/coordinate.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/coordinate.txt
index dd8ccba6d11..cdc56c9dfea 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/coordinate.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/coordinate.txt
@@ -2,8 +2,7 @@ Harness status: OK
Found 62 tests
-60 Pass
-2 Fail
+62 Pass
Pass Can set 'x' to CSS-wide keywords: initial
Pass Can set 'x' to CSS-wide keywords: inherit
Pass Can set 'x' to CSS-wide keywords: unset
@@ -12,7 +11,7 @@ Pass Can set 'x' to var() references: var(--A)
Pass Can set 'x' to a percent: 0%
Pass Can set 'x' to a percent: -3.14%
Pass Can set 'x' to a percent: 3.14%
-Fail Can set 'x' to a percent: calc(0% + 0%)
+Pass Can set 'x' to a percent: calc(0% + 0%)
Pass Can set 'x' to a length: 0px
Pass Can set 'x' to a length: -3.14em
Pass Can set 'x' to a length: 3.14cm
@@ -43,7 +42,7 @@ Pass Can set 'y' to var() references: var(--A)
Pass Can set 'y' to a percent: 0%
Pass Can set 'y' to a percent: -3.14%
Pass Can set 'y' to a percent: 3.14%
-Fail Can set 'y' to a percent: calc(0% + 0%)
+Pass Can set 'y' to a percent: calc(0% + 0%)
Pass Can set 'y' to a length: 0px
Pass Can set 'y' to a length: -3.14em
Pass Can set 'y' to a length: 3.14cm
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/flex-basis.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/flex-basis.txt
index 0788764d498..31fe8bf466e 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/flex-basis.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/flex-basis.txt
@@ -2,8 +2,8 @@ Harness status: OK
Found 36 tests
-33 Pass
-3 Fail
+34 Pass
+2 Fail
Pass Can set 'flex-basis' to CSS-wide keywords: initial
Pass Can set 'flex-basis' to CSS-wide keywords: inherit
Pass Can set 'flex-basis' to CSS-wide keywords: unset
@@ -21,7 +21,7 @@ Pass Can set 'flex-basis' to a length: calc(0px + 0em)
Pass Can set 'flex-basis' to a percent: 0%
Fail Can set 'flex-basis' to a percent: -3.14%
Pass Can set 'flex-basis' to a percent: 3.14%
-Fail Can set 'flex-basis' to a percent: calc(0% + 0%)
+Pass Can set 'flex-basis' to a percent: calc(0% + 0%)
Pass Setting 'flex-basis' to a time: 0s throws TypeError
Pass Setting 'flex-basis' to a time: -3.14ms throws TypeError
Pass Setting 'flex-basis' to a time: 3.14s throws TypeError
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/font-size.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/font-size.txt
index c693e067f52..b6b85b8df6a 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/font-size.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/font-size.txt
@@ -2,8 +2,7 @@ Harness status: OK
Found 41 tests
-39 Pass
-2 Fail
+41 Pass
Pass Can set 'font-size' to CSS-wide keywords: initial
Pass Can set 'font-size' to CSS-wide keywords: inherit
Pass Can set 'font-size' to CSS-wide keywords: unset
@@ -24,9 +23,9 @@ Pass Can set 'font-size' to a length: -3.14em
Pass Can set 'font-size' to a length: 3.14cm
Pass Can set 'font-size' to a length: calc(0px + 0em)
Pass Can set 'font-size' to a percent: 0%
-Fail Can set 'font-size' to a percent: -3.14%
+Pass Can set 'font-size' to a percent: -3.14%
Pass Can set 'font-size' to a percent: 3.14%
-Fail Can set 'font-size' to a percent: calc(0% + 0%)
+Pass Can set 'font-size' to a percent: calc(0% + 0%)
Pass Setting 'font-size' to a time: 0s throws TypeError
Pass Setting 'font-size' to a time: -3.14ms throws TypeError
Pass Setting 'font-size' to a time: 3.14s throws TypeError
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/gap.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/gap.txt
index ca753292433..18b3ce4c949 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/gap.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/gap.txt
@@ -2,8 +2,8 @@ Harness status: OK
Found 64 tests
-60 Pass
-4 Fail
+62 Pass
+2 Fail
Pass Can set 'column-gap' to CSS-wide keywords: initial
Pass Can set 'column-gap' to CSS-wide keywords: inherit
Pass Can set 'column-gap' to CSS-wide keywords: unset
@@ -17,7 +17,7 @@ Pass Can set 'column-gap' to a length: calc(0px + 0em)
Pass Can set 'column-gap' to a percent: 0%
Fail Can set 'column-gap' to a percent: -3.14%
Pass Can set 'column-gap' to a percent: 3.14%
-Fail Can set 'column-gap' to a percent: calc(0% + 0%)
+Pass Can set 'column-gap' to a percent: calc(0% + 0%)
Pass Setting 'column-gap' to a time: 0s throws TypeError
Pass Setting 'column-gap' to a time: -3.14ms throws TypeError
Pass Setting 'column-gap' to a time: 3.14s throws TypeError
@@ -49,7 +49,7 @@ Pass Can set 'row-gap' to a length: calc(0px + 0em)
Pass Can set 'row-gap' to a percent: 0%
Fail Can set 'row-gap' to a percent: -3.14%
Pass Can set 'row-gap' to a percent: 3.14%
-Fail Can set 'row-gap' to a percent: calc(0% + 0%)
+Pass Can set 'row-gap' to a percent: calc(0% + 0%)
Pass Setting 'row-gap' to a time: 0s throws TypeError
Pass Setting 'row-gap' to a time: -3.14ms throws TypeError
Pass Setting 'row-gap' to a time: 3.14s throws TypeError
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/grid-auto-columns-rows.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/grid-auto-columns-rows.txt
index c38b731c96d..9c8bb949dcf 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/grid-auto-columns-rows.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/grid-auto-columns-rows.txt
@@ -2,8 +2,8 @@ Harness status: OK
Found 72 tests
-58 Pass
-14 Fail
+60 Pass
+12 Fail
Pass Can set 'grid-auto-columns' to CSS-wide keywords: initial
Pass Can set 'grid-auto-columns' to CSS-wide keywords: inherit
Pass Can set 'grid-auto-columns' to CSS-wide keywords: unset
@@ -19,7 +19,7 @@ Pass Can set 'grid-auto-columns' to a length: calc(0px + 0em)
Pass Can set 'grid-auto-columns' to a percent: 0%
Fail Can set 'grid-auto-columns' to a percent: -3.14%
Pass Can set 'grid-auto-columns' to a percent: 3.14%
-Fail Can set 'grid-auto-columns' to a percent: calc(0% + 0%)
+Pass Can set 'grid-auto-columns' to a percent: calc(0% + 0%)
Fail Can set 'grid-auto-columns' to a flexible length: 0fr
Fail Can set 'grid-auto-columns' to a flexible length: 1fr
Pass Setting 'grid-auto-columns' to a time: 0s throws TypeError
@@ -55,7 +55,7 @@ Pass Can set 'grid-auto-rows' to a length: calc(0px + 0em)
Pass Can set 'grid-auto-rows' to a percent: 0%
Fail Can set 'grid-auto-rows' to a percent: -3.14%
Pass Can set 'grid-auto-rows' to a percent: 3.14%
-Fail Can set 'grid-auto-rows' to a percent: calc(0% + 0%)
+Pass Can set 'grid-auto-rows' to a percent: calc(0% + 0%)
Fail Can set 'grid-auto-rows' to a flexible length: 0fr
Fail Can set 'grid-auto-rows' to a flexible length: 1fr
Pass Setting 'grid-auto-rows' to a time: 0s throws TypeError
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/height.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/height.txt
index 38774ef29ce..114660e9c0e 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/height.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/height.txt
@@ -2,8 +2,8 @@ Harness status: OK
Found 95 tests
-89 Pass
-6 Fail
+92 Pass
+3 Fail
Pass Can set 'height' to CSS-wide keywords: initial
Pass Can set 'height' to CSS-wide keywords: inherit
Pass Can set 'height' to CSS-wide keywords: unset
@@ -13,7 +13,7 @@ Pass Can set 'height' to the 'auto' keyword: auto
Pass Can set 'height' to a percent: 0%
Fail Can set 'height' to a percent: -3.14%
Pass Can set 'height' to a percent: 3.14%
-Fail Can set 'height' to a percent: calc(0% + 0%)
+Pass Can set 'height' to a percent: calc(0% + 0%)
Pass Can set 'height' to a length: 0px
Pass Can set 'height' to a length: -3.14em
Pass Can set 'height' to a length: 3.14cm
@@ -44,7 +44,7 @@ Pass Can set 'min-height' to var() references: var(--A)
Pass Can set 'min-height' to a percent: 0%
Fail Can set 'min-height' to a percent: -3.14%
Pass Can set 'min-height' to a percent: 3.14%
-Fail Can set 'min-height' to a percent: calc(0% + 0%)
+Pass Can set 'min-height' to a percent: calc(0% + 0%)
Pass Can set 'min-height' to a length: 0px
Pass Can set 'min-height' to a length: -3.14em
Pass Can set 'min-height' to a length: 3.14cm
@@ -76,7 +76,7 @@ Pass Can set 'max-height' to the 'none' keyword: none
Pass Can set 'max-height' to a percent: 0%
Fail Can set 'max-height' to a percent: -3.14%
Pass Can set 'max-height' to a percent: 3.14%
-Fail Can set 'max-height' to a percent: calc(0% + 0%)
+Pass Can set 'max-height' to a percent: calc(0% + 0%)
Pass Can set 'max-height' to a length: 0px
Pass Can set 'max-height' to a length: -3.14em
Pass Can set 'max-height' to a length: 3.14cm
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/inline-size.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/inline-size.txt
index 95ac2ce4840..1ca770335c4 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/inline-size.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/inline-size.txt
@@ -2,8 +2,8 @@ Harness status: OK
Found 95 tests
-89 Pass
-6 Fail
+92 Pass
+3 Fail
Pass Can set 'inline-size' to CSS-wide keywords: initial
Pass Can set 'inline-size' to CSS-wide keywords: inherit
Pass Can set 'inline-size' to CSS-wide keywords: unset
@@ -13,7 +13,7 @@ Pass Can set 'inline-size' to the 'auto' keyword: auto
Pass Can set 'inline-size' to a percent: 0%
Fail Can set 'inline-size' to a percent: -3.14%
Pass Can set 'inline-size' to a percent: 3.14%
-Fail Can set 'inline-size' to a percent: calc(0% + 0%)
+Pass Can set 'inline-size' to a percent: calc(0% + 0%)
Pass Can set 'inline-size' to a length: 0px
Pass Can set 'inline-size' to a length: -3.14em
Pass Can set 'inline-size' to a length: 3.14cm
@@ -44,7 +44,7 @@ Pass Can set 'min-inline-size' to var() references: var(--A)
Pass Can set 'min-inline-size' to a percent: 0%
Fail Can set 'min-inline-size' to a percent: -3.14%
Pass Can set 'min-inline-size' to a percent: 3.14%
-Fail Can set 'min-inline-size' to a percent: calc(0% + 0%)
+Pass Can set 'min-inline-size' to a percent: calc(0% + 0%)
Pass Can set 'min-inline-size' to a length: 0px
Pass Can set 'min-inline-size' to a length: -3.14em
Pass Can set 'min-inline-size' to a length: 3.14cm
@@ -76,7 +76,7 @@ Pass Can set 'max-inline-size' to the 'none' keyword: none
Pass Can set 'max-inline-size' to a percent: 0%
Fail Can set 'max-inline-size' to a percent: -3.14%
Pass Can set 'max-inline-size' to a percent: 3.14%
-Fail Can set 'max-inline-size' to a percent: calc(0% + 0%)
+Pass Can set 'max-inline-size' to a percent: calc(0% + 0%)
Pass Can set 'max-inline-size' to a length: 0px
Pass Can set 'max-inline-size' to a length: -3.14em
Pass Can set 'max-inline-size' to a length: 3.14cm
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/left.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/left.txt
index 8aeb54d0a11..e6cdca39fe0 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/left.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/left.txt
@@ -2,8 +2,7 @@ Harness status: OK
Found 32 tests
-31 Pass
-1 Fail
+32 Pass
Pass Can set 'left' to CSS-wide keywords: initial
Pass Can set 'left' to CSS-wide keywords: inherit
Pass Can set 'left' to CSS-wide keywords: unset
@@ -13,7 +12,7 @@ Pass Can set 'left' to the 'auto' keyword: auto
Pass Can set 'left' to a percent: 0%
Pass Can set 'left' to a percent: -3.14%
Pass Can set 'left' to a percent: 3.14%
-Fail Can set 'left' to a percent: calc(0% + 0%)
+Pass Can set 'left' to a percent: calc(0% + 0%)
Pass Can set 'left' to a length: 0px
Pass Can set 'left' to a length: -3.14em
Pass Can set 'left' to a length: 3.14cm
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/letter-spacing.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/letter-spacing.txt
index e0622078a72..091e3f60c98 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/letter-spacing.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/letter-spacing.txt
@@ -2,8 +2,8 @@ Harness status: OK
Found 32 tests
-28 Pass
-4 Fail
+29 Pass
+3 Fail
Pass Can set 'letter-spacing' to CSS-wide keywords: initial
Pass Can set 'letter-spacing' to CSS-wide keywords: inherit
Pass Can set 'letter-spacing' to CSS-wide keywords: unset
@@ -17,7 +17,7 @@ Fail Can set 'letter-spacing' to a length: calc(0px + 0em)
Pass Can set 'letter-spacing' to a percent: 0%
Pass Can set 'letter-spacing' to a percent: -3.14%
Pass Can set 'letter-spacing' to a percent: 3.14%
-Fail Can set 'letter-spacing' to a percent: calc(0% + 0%)
+Pass Can set 'letter-spacing' to a percent: calc(0% + 0%)
Pass Setting 'letter-spacing' to a time: 0s throws TypeError
Pass Setting 'letter-spacing' to a time: -3.14ms throws TypeError
Pass Setting 'letter-spacing' to a time: 3.14s throws TypeError
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/line-height.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/line-height.txt
index e00eedc9fda..55f17285b42 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/line-height.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/line-height.txt
@@ -2,8 +2,8 @@ Harness status: OK
Found 32 tests
-28 Pass
-4 Fail
+30 Pass
+2 Fail
Pass Can set 'line-height' to CSS-wide keywords: initial
Pass Can set 'line-height' to CSS-wide keywords: inherit
Pass Can set 'line-height' to CSS-wide keywords: unset
@@ -19,9 +19,9 @@ Fail Can set 'line-height' to a number: -3.14
Pass Can set 'line-height' to a number: 3.14
Pass Can set 'line-height' to a number: calc(2 + 3)
Pass Can set 'line-height' to a percent: 0%
-Fail Can set 'line-height' to a percent: -3.14%
+Pass Can set 'line-height' to a percent: -3.14%
Pass Can set 'line-height' to a percent: 3.14%
-Fail Can set 'line-height' to a percent: calc(0% + 0%)
+Pass Can set 'line-height' to a percent: calc(0% + 0%)
Pass Setting 'line-height' to a time: 0s throws TypeError
Pass Setting 'line-height' to a time: -3.14ms throws TypeError
Pass Setting 'line-height' to a time: 3.14s throws TypeError
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/logical.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/logical.txt
index 59cb3a176f6..26479d38160 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/logical.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/logical.txt
@@ -2,8 +2,8 @@ Harness status: OK
Found 1468 tests
-1276 Pass
-192 Fail
+1296 Pass
+172 Fail
Pass Can set 'margin-block-start' to CSS-wide keywords: initial
Pass Can set 'margin-block-start' to CSS-wide keywords: inherit
Pass Can set 'margin-block-start' to CSS-wide keywords: unset
@@ -12,7 +12,7 @@ Pass Can set 'margin-block-start' to var() references: var(--A)
Pass Can set 'margin-block-start' to a percent: 0%
Pass Can set 'margin-block-start' to a percent: -3.14%
Pass Can set 'margin-block-start' to a percent: 3.14%
-Fail Can set 'margin-block-start' to a percent: calc(0% + 0%)
+Pass Can set 'margin-block-start' to a percent: calc(0% + 0%)
Pass Can set 'margin-block-start' to a length: 0px
Pass Can set 'margin-block-start' to a length: -3.14em
Pass Can set 'margin-block-start' to a length: 3.14cm
@@ -43,7 +43,7 @@ Pass Can set 'margin-block-end' to var() references: var(--A)
Pass Can set 'margin-block-end' to a percent: 0%
Pass Can set 'margin-block-end' to a percent: -3.14%
Pass Can set 'margin-block-end' to a percent: 3.14%
-Fail Can set 'margin-block-end' to a percent: calc(0% + 0%)
+Pass Can set 'margin-block-end' to a percent: calc(0% + 0%)
Pass Can set 'margin-block-end' to a length: 0px
Pass Can set 'margin-block-end' to a length: -3.14em
Pass Can set 'margin-block-end' to a length: 3.14cm
@@ -74,7 +74,7 @@ Pass Can set 'margin-inline-start' to var() references: var(--A)
Pass Can set 'margin-inline-start' to a percent: 0%
Pass Can set 'margin-inline-start' to a percent: -3.14%
Pass Can set 'margin-inline-start' to a percent: 3.14%
-Fail Can set 'margin-inline-start' to a percent: calc(0% + 0%)
+Pass Can set 'margin-inline-start' to a percent: calc(0% + 0%)
Pass Can set 'margin-inline-start' to a length: 0px
Pass Can set 'margin-inline-start' to a length: -3.14em
Pass Can set 'margin-inline-start' to a length: 3.14cm
@@ -105,7 +105,7 @@ Pass Can set 'margin-inline-end' to var() references: var(--A)
Pass Can set 'margin-inline-end' to a percent: 0%
Pass Can set 'margin-inline-end' to a percent: -3.14%
Pass Can set 'margin-inline-end' to a percent: 3.14%
-Fail Can set 'margin-inline-end' to a percent: calc(0% + 0%)
+Pass Can set 'margin-inline-end' to a percent: calc(0% + 0%)
Pass Can set 'margin-inline-end' to a length: 0px
Pass Can set 'margin-inline-end' to a length: -3.14em
Pass Can set 'margin-inline-end' to a length: 3.14cm
@@ -198,7 +198,7 @@ Pass Can set 'padding-block-start' to var() references: var(--A)
Pass Can set 'padding-block-start' to a percent: 0%
Fail Can set 'padding-block-start' to a percent: -3.14%
Pass Can set 'padding-block-start' to a percent: 3.14%
-Fail Can set 'padding-block-start' to a percent: calc(0% + 0%)
+Pass Can set 'padding-block-start' to a percent: calc(0% + 0%)
Pass Can set 'padding-block-start' to a length: 0px
Pass Can set 'padding-block-start' to a length: -3.14em
Pass Can set 'padding-block-start' to a length: 3.14cm
@@ -229,7 +229,7 @@ Pass Can set 'padding-block-end' to var() references: var(--A)
Pass Can set 'padding-block-end' to a percent: 0%
Fail Can set 'padding-block-end' to a percent: -3.14%
Pass Can set 'padding-block-end' to a percent: 3.14%
-Fail Can set 'padding-block-end' to a percent: calc(0% + 0%)
+Pass Can set 'padding-block-end' to a percent: calc(0% + 0%)
Pass Can set 'padding-block-end' to a length: 0px
Pass Can set 'padding-block-end' to a length: -3.14em
Pass Can set 'padding-block-end' to a length: 3.14cm
@@ -260,7 +260,7 @@ Pass Can set 'padding-inline-start' to var() references: var(--A)
Pass Can set 'padding-inline-start' to a percent: 0%
Fail Can set 'padding-inline-start' to a percent: -3.14%
Pass Can set 'padding-inline-start' to a percent: 3.14%
-Fail Can set 'padding-inline-start' to a percent: calc(0% + 0%)
+Pass Can set 'padding-inline-start' to a percent: calc(0% + 0%)
Pass Can set 'padding-inline-start' to a length: 0px
Pass Can set 'padding-inline-start' to a length: -3.14em
Pass Can set 'padding-inline-start' to a length: 3.14cm
@@ -291,7 +291,7 @@ Pass Can set 'padding-inline-end' to var() references: var(--A)
Pass Can set 'padding-inline-end' to a percent: 0%
Fail Can set 'padding-inline-end' to a percent: -3.14%
Pass Can set 'padding-inline-end' to a percent: 3.14%
-Fail Can set 'padding-inline-end' to a percent: calc(0% + 0%)
+Pass Can set 'padding-inline-end' to a percent: calc(0% + 0%)
Pass Can set 'padding-inline-end' to a length: 0px
Pass Can set 'padding-inline-end' to a length: -3.14em
Pass Can set 'padding-inline-end' to a length: 3.14cm
@@ -384,7 +384,7 @@ Pass Can set 'inset-block-start' to var() references: var(--A)
Pass Can set 'inset-block-start' to a percent: 0%
Pass Can set 'inset-block-start' to a percent: -3.14%
Pass Can set 'inset-block-start' to a percent: 3.14%
-Fail Can set 'inset-block-start' to a percent: calc(0% + 0%)
+Pass Can set 'inset-block-start' to a percent: calc(0% + 0%)
Pass Can set 'inset-block-start' to a length: 0px
Pass Can set 'inset-block-start' to a length: -3.14em
Pass Can set 'inset-block-start' to a length: 3.14cm
@@ -415,7 +415,7 @@ Pass Can set 'inset-block-end' to var() references: var(--A)
Pass Can set 'inset-block-end' to a percent: 0%
Pass Can set 'inset-block-end' to a percent: -3.14%
Pass Can set 'inset-block-end' to a percent: 3.14%
-Fail Can set 'inset-block-end' to a percent: calc(0% + 0%)
+Pass Can set 'inset-block-end' to a percent: calc(0% + 0%)
Pass Can set 'inset-block-end' to a length: 0px
Pass Can set 'inset-block-end' to a length: -3.14em
Pass Can set 'inset-block-end' to a length: 3.14cm
@@ -446,7 +446,7 @@ Pass Can set 'inset-inline-start' to var() references: var(--A)
Pass Can set 'inset-inline-start' to a percent: 0%
Pass Can set 'inset-inline-start' to a percent: -3.14%
Pass Can set 'inset-inline-start' to a percent: 3.14%
-Fail Can set 'inset-inline-start' to a percent: calc(0% + 0%)
+Pass Can set 'inset-inline-start' to a percent: calc(0% + 0%)
Pass Can set 'inset-inline-start' to a length: 0px
Pass Can set 'inset-inline-start' to a length: -3.14em
Pass Can set 'inset-inline-start' to a length: 3.14cm
@@ -477,7 +477,7 @@ Pass Can set 'inset-inline-end' to var() references: var(--A)
Pass Can set 'inset-inline-end' to a percent: 0%
Pass Can set 'inset-inline-end' to a percent: -3.14%
Pass Can set 'inset-inline-end' to a percent: 3.14%
-Fail Can set 'inset-inline-end' to a percent: calc(0% + 0%)
+Pass Can set 'inset-inline-end' to a percent: calc(0% + 0%)
Pass Can set 'inset-inline-end' to a length: 0px
Pass Can set 'inset-inline-end' to a length: -3.14em
Pass Can set 'inset-inline-end' to a length: 3.14cm
@@ -1354,9 +1354,9 @@ Pass Can set 'border-start-start-radius' to CSS-wide keywords: unset
Pass Can set 'border-start-start-radius' to CSS-wide keywords: revert
Pass Can set 'border-start-start-radius' to var() references: var(--A)
Pass Can set 'border-start-start-radius' to a percent: 0%
-Fail Can set 'border-start-start-radius' to a percent: -3.14%
+Pass Can set 'border-start-start-radius' to a percent: -3.14%
Pass Can set 'border-start-start-radius' to a percent: 3.14%
-Fail Can set 'border-start-start-radius' to a percent: calc(0% + 0%)
+Pass Can set 'border-start-start-radius' to a percent: calc(0% + 0%)
Pass Can set 'border-start-start-radius' to a length: 0px
Pass Can set 'border-start-start-radius' to a length: -3.14em
Pass Can set 'border-start-start-radius' to a length: 3.14cm
@@ -1385,9 +1385,9 @@ Pass Can set 'border-start-end-radius' to CSS-wide keywords: unset
Pass Can set 'border-start-end-radius' to CSS-wide keywords: revert
Pass Can set 'border-start-end-radius' to var() references: var(--A)
Pass Can set 'border-start-end-radius' to a percent: 0%
-Fail Can set 'border-start-end-radius' to a percent: -3.14%
+Pass Can set 'border-start-end-radius' to a percent: -3.14%
Pass Can set 'border-start-end-radius' to a percent: 3.14%
-Fail Can set 'border-start-end-radius' to a percent: calc(0% + 0%)
+Pass Can set 'border-start-end-radius' to a percent: calc(0% + 0%)
Pass Can set 'border-start-end-radius' to a length: 0px
Pass Can set 'border-start-end-radius' to a length: -3.14em
Pass Can set 'border-start-end-radius' to a length: 3.14cm
@@ -1416,9 +1416,9 @@ Pass Can set 'border-end-start-radius' to CSS-wide keywords: unset
Pass Can set 'border-end-start-radius' to CSS-wide keywords: revert
Pass Can set 'border-end-start-radius' to var() references: var(--A)
Pass Can set 'border-end-start-radius' to a percent: 0%
-Fail Can set 'border-end-start-radius' to a percent: -3.14%
+Pass Can set 'border-end-start-radius' to a percent: -3.14%
Pass Can set 'border-end-start-radius' to a percent: 3.14%
-Fail Can set 'border-end-start-radius' to a percent: calc(0% + 0%)
+Pass Can set 'border-end-start-radius' to a percent: calc(0% + 0%)
Pass Can set 'border-end-start-radius' to a length: 0px
Pass Can set 'border-end-start-radius' to a length: -3.14em
Pass Can set 'border-end-start-radius' to a length: 3.14cm
@@ -1447,9 +1447,9 @@ Pass Can set 'border-end-end-radius' to CSS-wide keywords: unset
Pass Can set 'border-end-end-radius' to CSS-wide keywords: revert
Pass Can set 'border-end-end-radius' to var() references: var(--A)
Pass Can set 'border-end-end-radius' to a percent: 0%
-Fail Can set 'border-end-end-radius' to a percent: -3.14%
+Pass Can set 'border-end-end-radius' to a percent: -3.14%
Pass Can set 'border-end-end-radius' to a percent: 3.14%
-Fail Can set 'border-end-end-radius' to a percent: calc(0% + 0%)
+Pass Can set 'border-end-end-radius' to a percent: calc(0% + 0%)
Pass Can set 'border-end-end-radius' to a length: 0px
Pass Can set 'border-end-end-radius' to a length: -3.14em
Pass Can set 'border-end-end-radius' to a length: 3.14cm
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/margin.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/margin.txt
index 4d7d9db505b..492ba8fb8e1 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/margin.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/margin.txt
@@ -2,8 +2,8 @@ Harness status: OK
Found 161 tests
-152 Pass
-9 Fail
+156 Pass
+5 Fail
Pass Can set 'margin-top' to CSS-wide keywords: initial
Pass Can set 'margin-top' to CSS-wide keywords: inherit
Pass Can set 'margin-top' to CSS-wide keywords: unset
@@ -13,7 +13,7 @@ Pass Can set 'margin-top' to the 'auto' keyword: auto
Pass Can set 'margin-top' to a percent: 0%
Pass Can set 'margin-top' to a percent: -3.14%
Pass Can set 'margin-top' to a percent: 3.14%
-Fail Can set 'margin-top' to a percent: calc(0% + 0%)
+Pass Can set 'margin-top' to a percent: calc(0% + 0%)
Pass Can set 'margin-top' to a length: 0px
Pass Can set 'margin-top' to a length: -3.14em
Pass Can set 'margin-top' to a length: 3.14cm
@@ -45,7 +45,7 @@ Pass Can set 'margin-left' to the 'auto' keyword: auto
Pass Can set 'margin-left' to a percent: 0%
Pass Can set 'margin-left' to a percent: -3.14%
Pass Can set 'margin-left' to a percent: 3.14%
-Fail Can set 'margin-left' to a percent: calc(0% + 0%)
+Pass Can set 'margin-left' to a percent: calc(0% + 0%)
Pass Can set 'margin-left' to a length: 0px
Pass Can set 'margin-left' to a length: -3.14em
Pass Can set 'margin-left' to a length: 3.14cm
@@ -77,7 +77,7 @@ Pass Can set 'margin-right' to the 'auto' keyword: auto
Pass Can set 'margin-right' to a percent: 0%
Pass Can set 'margin-right' to a percent: -3.14%
Pass Can set 'margin-right' to a percent: 3.14%
-Fail Can set 'margin-right' to a percent: calc(0% + 0%)
+Pass Can set 'margin-right' to a percent: calc(0% + 0%)
Pass Can set 'margin-right' to a length: 0px
Pass Can set 'margin-right' to a length: -3.14em
Pass Can set 'margin-right' to a length: 3.14cm
@@ -109,7 +109,7 @@ Pass Can set 'margin-bottom' to the 'auto' keyword: auto
Pass Can set 'margin-bottom' to a percent: 0%
Pass Can set 'margin-bottom' to a percent: -3.14%
Pass Can set 'margin-bottom' to a percent: 3.14%
-Fail Can set 'margin-bottom' to a percent: calc(0% + 0%)
+Pass Can set 'margin-bottom' to a percent: calc(0% + 0%)
Pass Can set 'margin-bottom' to a length: 0px
Pass Can set 'margin-bottom' to a length: -3.14em
Pass Can set 'margin-bottom' to a length: 3.14cm
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/offset-distance.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/offset-distance.txt
index c073fd5566c..619d8662744 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/offset-distance.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/offset-distance.txt
@@ -2,8 +2,7 @@ Harness status: OK
Found 31 tests
-30 Pass
-1 Fail
+31 Pass
Pass Can set 'offset-distance' to CSS-wide keywords: initial
Pass Can set 'offset-distance' to CSS-wide keywords: inherit
Pass Can set 'offset-distance' to CSS-wide keywords: unset
@@ -16,7 +15,7 @@ Pass Can set 'offset-distance' to a length: calc(0px + 0em)
Pass Can set 'offset-distance' to a percent: 0%
Pass Can set 'offset-distance' to a percent: -3.14%
Pass Can set 'offset-distance' to a percent: 3.14%
-Fail Can set 'offset-distance' to a percent: calc(0% + 0%)
+Pass Can set 'offset-distance' to a percent: calc(0% + 0%)
Pass Setting 'offset-distance' to a time: 0s throws TypeError
Pass Setting 'offset-distance' to a time: -3.14ms throws TypeError
Pass Setting 'offset-distance' to a time: 3.14s throws TypeError
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/padding.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/padding.txt
index 80b975bf0fd..45e2bdac1ac 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/padding.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/padding.txt
@@ -2,8 +2,8 @@ Harness status: OK
Found 124 tests
-116 Pass
-8 Fail
+120 Pass
+4 Fail
Pass Can set 'padding-top' to CSS-wide keywords: initial
Pass Can set 'padding-top' to CSS-wide keywords: inherit
Pass Can set 'padding-top' to CSS-wide keywords: unset
@@ -12,7 +12,7 @@ Pass Can set 'padding-top' to var() references: var(--A)
Pass Can set 'padding-top' to a percent: 0%
Fail Can set 'padding-top' to a percent: -3.14%
Pass Can set 'padding-top' to a percent: 3.14%
-Fail Can set 'padding-top' to a percent: calc(0% + 0%)
+Pass Can set 'padding-top' to a percent: calc(0% + 0%)
Pass Can set 'padding-top' to a length: 0px
Pass Can set 'padding-top' to a length: -3.14em
Pass Can set 'padding-top' to a length: 3.14cm
@@ -43,7 +43,7 @@ Pass Can set 'padding-left' to var() references: var(--A)
Pass Can set 'padding-left' to a percent: 0%
Fail Can set 'padding-left' to a percent: -3.14%
Pass Can set 'padding-left' to a percent: 3.14%
-Fail Can set 'padding-left' to a percent: calc(0% + 0%)
+Pass Can set 'padding-left' to a percent: calc(0% + 0%)
Pass Can set 'padding-left' to a length: 0px
Pass Can set 'padding-left' to a length: -3.14em
Pass Can set 'padding-left' to a length: 3.14cm
@@ -74,7 +74,7 @@ Pass Can set 'padding-right' to var() references: var(--A)
Pass Can set 'padding-right' to a percent: 0%
Fail Can set 'padding-right' to a percent: -3.14%
Pass Can set 'padding-right' to a percent: 3.14%
-Fail Can set 'padding-right' to a percent: calc(0% + 0%)
+Pass Can set 'padding-right' to a percent: calc(0% + 0%)
Pass Can set 'padding-right' to a length: 0px
Pass Can set 'padding-right' to a length: -3.14em
Pass Can set 'padding-right' to a length: 3.14cm
@@ -105,7 +105,7 @@ Pass Can set 'padding-bottom' to var() references: var(--A)
Pass Can set 'padding-bottom' to a percent: 0%
Fail Can set 'padding-bottom' to a percent: -3.14%
Pass Can set 'padding-bottom' to a percent: 3.14%
-Fail Can set 'padding-bottom' to a percent: calc(0% + 0%)
+Pass Can set 'padding-bottom' to a percent: calc(0% + 0%)
Pass Can set 'padding-bottom' to a length: 0px
Pass Can set 'padding-bottom' to a length: -3.14em
Pass Can set 'padding-bottom' to a length: 3.14cm
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/radius.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/radius.txt
index 4c6def8097b..02f037338b8 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/radius.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/radius.txt
@@ -2,8 +2,8 @@ Harness status: OK
Found 95 tests
-89 Pass
-6 Fail
+92 Pass
+3 Fail
Pass Can set 'r' to CSS-wide keywords: initial
Pass Can set 'r' to CSS-wide keywords: inherit
Pass Can set 'r' to CSS-wide keywords: unset
@@ -12,7 +12,7 @@ Pass Can set 'r' to var() references: var(--A)
Pass Can set 'r' to a percent: 0%
Fail Can set 'r' to a percent: -3.14%
Pass Can set 'r' to a percent: 3.14%
-Fail Can set 'r' to a percent: calc(0% + 0%)
+Pass Can set 'r' to a percent: calc(0% + 0%)
Pass Can set 'r' to a length: 0px
Pass Can set 'r' to a length: -3.14em
Pass Can set 'r' to a length: 3.14cm
@@ -44,7 +44,7 @@ Pass Can set 'rx' to the 'auto' keyword: auto
Pass Can set 'rx' to a percent: 0%
Fail Can set 'rx' to a percent: -3.14%
Pass Can set 'rx' to a percent: 3.14%
-Fail Can set 'rx' to a percent: calc(0% + 0%)
+Pass Can set 'rx' to a percent: calc(0% + 0%)
Pass Can set 'rx' to a length: 0px
Pass Can set 'rx' to a length: -3.14em
Pass Can set 'rx' to a length: 3.14cm
@@ -76,7 +76,7 @@ Pass Can set 'ry' to the 'auto' keyword: auto
Pass Can set 'ry' to a percent: 0%
Fail Can set 'ry' to a percent: -3.14%
Pass Can set 'ry' to a percent: 3.14%
-Fail Can set 'ry' to a percent: calc(0% + 0%)
+Pass Can set 'ry' to a percent: calc(0% + 0%)
Pass Can set 'ry' to a length: 0px
Pass Can set 'ry' to a length: -3.14em
Pass Can set 'ry' to a length: 3.14cm
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/right.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/right.txt
index 1e7db4d11a2..e756abc9bd8 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/right.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/right.txt
@@ -2,8 +2,7 @@ Harness status: OK
Found 32 tests
-31 Pass
-1 Fail
+32 Pass
Pass Can set 'right' to CSS-wide keywords: initial
Pass Can set 'right' to CSS-wide keywords: inherit
Pass Can set 'right' to CSS-wide keywords: unset
@@ -13,7 +12,7 @@ Pass Can set 'right' to the 'auto' keyword: auto
Pass Can set 'right' to a percent: 0%
Pass Can set 'right' to a percent: -3.14%
Pass Can set 'right' to a percent: 3.14%
-Fail Can set 'right' to a percent: calc(0% + 0%)
+Pass Can set 'right' to a percent: calc(0% + 0%)
Pass Can set 'right' to a length: 0px
Pass Can set 'right' to a length: -3.14em
Pass Can set 'right' to a length: 3.14cm
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/scroll-padding.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/scroll-padding.txt
index 0520485dd40..cb44b6a573b 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/scroll-padding.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/scroll-padding.txt
@@ -2,8 +2,8 @@ Harness status: OK
Found 252 tests
-236 Pass
-16 Fail
+244 Pass
+8 Fail
Pass Can set 'scroll-padding-top' to CSS-wide keywords: initial
Pass Can set 'scroll-padding-top' to CSS-wide keywords: inherit
Pass Can set 'scroll-padding-top' to CSS-wide keywords: unset
@@ -12,7 +12,7 @@ Pass Can set 'scroll-padding-top' to var() references: var(--A)
Pass Can set 'scroll-padding-top' to a percent: 0%
Fail Can set 'scroll-padding-top' to a percent: -3.14%
Pass Can set 'scroll-padding-top' to a percent: 3.14%
-Fail Can set 'scroll-padding-top' to a percent: calc(0% + 0%)
+Pass Can set 'scroll-padding-top' to a percent: calc(0% + 0%)
Pass Can set 'scroll-padding-top' to a length: 0px
Pass Can set 'scroll-padding-top' to a length: -3.14em
Pass Can set 'scroll-padding-top' to a length: 3.14cm
@@ -43,7 +43,7 @@ Pass Can set 'scroll-padding-left' to var() references: var(--A)
Pass Can set 'scroll-padding-left' to a percent: 0%
Fail Can set 'scroll-padding-left' to a percent: -3.14%
Pass Can set 'scroll-padding-left' to a percent: 3.14%
-Fail Can set 'scroll-padding-left' to a percent: calc(0% + 0%)
+Pass Can set 'scroll-padding-left' to a percent: calc(0% + 0%)
Pass Can set 'scroll-padding-left' to a length: 0px
Pass Can set 'scroll-padding-left' to a length: -3.14em
Pass Can set 'scroll-padding-left' to a length: 3.14cm
@@ -74,7 +74,7 @@ Pass Can set 'scroll-padding-right' to var() references: var(--A)
Pass Can set 'scroll-padding-right' to a percent: 0%
Fail Can set 'scroll-padding-right' to a percent: -3.14%
Pass Can set 'scroll-padding-right' to a percent: 3.14%
-Fail Can set 'scroll-padding-right' to a percent: calc(0% + 0%)
+Pass Can set 'scroll-padding-right' to a percent: calc(0% + 0%)
Pass Can set 'scroll-padding-right' to a length: 0px
Pass Can set 'scroll-padding-right' to a length: -3.14em
Pass Can set 'scroll-padding-right' to a length: 3.14cm
@@ -105,7 +105,7 @@ Pass Can set 'scroll-padding-bottom' to var() references: var(--A)
Pass Can set 'scroll-padding-bottom' to a percent: 0%
Fail Can set 'scroll-padding-bottom' to a percent: -3.14%
Pass Can set 'scroll-padding-bottom' to a percent: 3.14%
-Fail Can set 'scroll-padding-bottom' to a percent: calc(0% + 0%)
+Pass Can set 'scroll-padding-bottom' to a percent: calc(0% + 0%)
Pass Can set 'scroll-padding-bottom' to a length: 0px
Pass Can set 'scroll-padding-bottom' to a length: -3.14em
Pass Can set 'scroll-padding-bottom' to a length: 3.14cm
@@ -136,7 +136,7 @@ Pass Can set 'scroll-padding-inline-start' to var() references: var(--A)
Pass Can set 'scroll-padding-inline-start' to a percent: 0%
Fail Can set 'scroll-padding-inline-start' to a percent: -3.14%
Pass Can set 'scroll-padding-inline-start' to a percent: 3.14%
-Fail Can set 'scroll-padding-inline-start' to a percent: calc(0% + 0%)
+Pass Can set 'scroll-padding-inline-start' to a percent: calc(0% + 0%)
Pass Can set 'scroll-padding-inline-start' to a length: 0px
Pass Can set 'scroll-padding-inline-start' to a length: -3.14em
Pass Can set 'scroll-padding-inline-start' to a length: 3.14cm
@@ -167,7 +167,7 @@ Pass Can set 'scroll-padding-block-start' to var() references: var(--A)
Pass Can set 'scroll-padding-block-start' to a percent: 0%
Fail Can set 'scroll-padding-block-start' to a percent: -3.14%
Pass Can set 'scroll-padding-block-start' to a percent: 3.14%
-Fail Can set 'scroll-padding-block-start' to a percent: calc(0% + 0%)
+Pass Can set 'scroll-padding-block-start' to a percent: calc(0% + 0%)
Pass Can set 'scroll-padding-block-start' to a length: 0px
Pass Can set 'scroll-padding-block-start' to a length: -3.14em
Pass Can set 'scroll-padding-block-start' to a length: 3.14cm
@@ -198,7 +198,7 @@ Pass Can set 'scroll-padding-inline-end' to var() references: var(--A)
Pass Can set 'scroll-padding-inline-end' to a percent: 0%
Fail Can set 'scroll-padding-inline-end' to a percent: -3.14%
Pass Can set 'scroll-padding-inline-end' to a percent: 3.14%
-Fail Can set 'scroll-padding-inline-end' to a percent: calc(0% + 0%)
+Pass Can set 'scroll-padding-inline-end' to a percent: calc(0% + 0%)
Pass Can set 'scroll-padding-inline-end' to a length: 0px
Pass Can set 'scroll-padding-inline-end' to a length: -3.14em
Pass Can set 'scroll-padding-inline-end' to a length: 3.14cm
@@ -229,7 +229,7 @@ Pass Can set 'scroll-padding-block-end' to var() references: var(--A)
Pass Can set 'scroll-padding-block-end' to a percent: 0%
Fail Can set 'scroll-padding-block-end' to a percent: -3.14%
Pass Can set 'scroll-padding-block-end' to a percent: 3.14%
-Fail Can set 'scroll-padding-block-end' to a percent: calc(0% + 0%)
+Pass Can set 'scroll-padding-block-end' to a percent: calc(0% + 0%)
Pass Can set 'scroll-padding-block-end' to a length: 0px
Pass Can set 'scroll-padding-block-end' to a length: -3.14em
Pass Can set 'scroll-padding-block-end' to a length: 3.14cm
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/shape-margin.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/shape-margin.txt
index 1886647948a..90a5d2ad0ea 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/shape-margin.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/shape-margin.txt
@@ -2,8 +2,8 @@ Harness status: OK
Found 31 tests
-29 Pass
-2 Fail
+30 Pass
+1 Fail
Pass Can set 'shape-margin' to CSS-wide keywords: initial
Pass Can set 'shape-margin' to CSS-wide keywords: inherit
Pass Can set 'shape-margin' to CSS-wide keywords: unset
@@ -16,7 +16,7 @@ Pass Can set 'shape-margin' to a length: calc(0px + 0em)
Pass Can set 'shape-margin' to a percent: 0%
Fail Can set 'shape-margin' to a percent: -3.14%
Pass Can set 'shape-margin' to a percent: 3.14%
-Fail Can set 'shape-margin' to a percent: calc(0% + 0%)
+Pass Can set 'shape-margin' to a percent: calc(0% + 0%)
Pass Setting 'shape-margin' to a time: 0s throws TypeError
Pass Setting 'shape-margin' to a time: -3.14ms throws TypeError
Pass Setting 'shape-margin' to a time: 3.14s throws TypeError
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/text-decoration-thickness.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/text-decoration-thickness.txt
index 799fb0eddda..c0546675119 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/text-decoration-thickness.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/text-decoration-thickness.txt
@@ -2,8 +2,7 @@ Harness status: OK
Found 32 tests
-31 Pass
-1 Fail
+32 Pass
Pass Can set 'text-decoration-thickness' to CSS-wide keywords: initial
Pass Can set 'text-decoration-thickness' to CSS-wide keywords: inherit
Pass Can set 'text-decoration-thickness' to CSS-wide keywords: unset
@@ -17,7 +16,7 @@ Pass Can set 'text-decoration-thickness' to a length: calc(0px + 0em)
Pass Can set 'text-decoration-thickness' to a percent: 0%
Pass Can set 'text-decoration-thickness' to a percent: -3.14%
Pass Can set 'text-decoration-thickness' to a percent: 3.14%
-Fail Can set 'text-decoration-thickness' to a percent: calc(0% + 0%)
+Pass Can set 'text-decoration-thickness' to a percent: calc(0% + 0%)
Pass Setting 'text-decoration-thickness' to a time: 0s throws TypeError
Pass Setting 'text-decoration-thickness' to a time: -3.14ms throws TypeError
Pass Setting 'text-decoration-thickness' to a time: 3.14s throws TypeError
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/text-underline-offset.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/text-underline-offset.txt
index 0a396ade5c1..52a04254371 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/text-underline-offset.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/text-underline-offset.txt
@@ -2,8 +2,7 @@ Harness status: OK
Found 32 tests
-31 Pass
-1 Fail
+32 Pass
Pass Can set 'text-underline-offset' to CSS-wide keywords: initial
Pass Can set 'text-underline-offset' to CSS-wide keywords: inherit
Pass Can set 'text-underline-offset' to CSS-wide keywords: unset
@@ -17,7 +16,7 @@ Pass Can set 'text-underline-offset' to a length: calc(0px + 0em)
Pass Can set 'text-underline-offset' to a percent: 0%
Pass Can set 'text-underline-offset' to a percent: -3.14%
Pass Can set 'text-underline-offset' to a percent: 3.14%
-Fail Can set 'text-underline-offset' to a percent: calc(0% + 0%)
+Pass Can set 'text-underline-offset' to a percent: calc(0% + 0%)
Pass Setting 'text-underline-offset' to a time: 0s throws TypeError
Pass Setting 'text-underline-offset' to a time: -3.14ms throws TypeError
Pass Setting 'text-underline-offset' to a time: 3.14s throws TypeError
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/top.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/top.txt
index fdc73977a2d..38f2248fda6 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/top.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/top.txt
@@ -2,8 +2,7 @@ Harness status: OK
Found 32 tests
-31 Pass
-1 Fail
+32 Pass
Pass Can set 'top' to CSS-wide keywords: initial
Pass Can set 'top' to CSS-wide keywords: inherit
Pass Can set 'top' to CSS-wide keywords: unset
@@ -13,7 +12,7 @@ Pass Can set 'top' to the 'auto' keyword: auto
Pass Can set 'top' to a percent: 0%
Pass Can set 'top' to a percent: -3.14%
Pass Can set 'top' to a percent: 3.14%
-Fail Can set 'top' to a percent: calc(0% + 0%)
+Pass Can set 'top' to a percent: calc(0% + 0%)
Pass Can set 'top' to a length: 0px
Pass Can set 'top' to a length: -3.14em
Pass Can set 'top' to a length: 3.14cm
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/width.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/width.txt
index 2d90398ee9c..82efd477f5c 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/width.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/width.txt
@@ -2,8 +2,8 @@ Harness status: OK
Found 95 tests
-89 Pass
-6 Fail
+92 Pass
+3 Fail
Pass Can set 'width' to CSS-wide keywords: initial
Pass Can set 'width' to CSS-wide keywords: inherit
Pass Can set 'width' to CSS-wide keywords: unset
@@ -13,7 +13,7 @@ Pass Can set 'width' to the 'auto' keyword: auto
Pass Can set 'width' to a percent: 0%
Fail Can set 'width' to a percent: -3.14%
Pass Can set 'width' to a percent: 3.14%
-Fail Can set 'width' to a percent: calc(0% + 0%)
+Pass Can set 'width' to a percent: calc(0% + 0%)
Pass Can set 'width' to a length: 0px
Pass Can set 'width' to a length: -3.14em
Pass Can set 'width' to a length: 3.14cm
@@ -44,7 +44,7 @@ Pass Can set 'min-width' to var() references: var(--A)
Pass Can set 'min-width' to a percent: 0%
Fail Can set 'min-width' to a percent: -3.14%
Pass Can set 'min-width' to a percent: 3.14%
-Fail Can set 'min-width' to a percent: calc(0% + 0%)
+Pass Can set 'min-width' to a percent: calc(0% + 0%)
Pass Can set 'min-width' to a length: 0px
Pass Can set 'min-width' to a length: -3.14em
Pass Can set 'min-width' to a length: 3.14cm
@@ -76,7 +76,7 @@ Pass Can set 'max-width' to the 'none' keyword: none
Pass Can set 'max-width' to a percent: 0%
Fail Can set 'max-width' to a percent: -3.14%
Pass Can set 'max-width' to a percent: 3.14%
-Fail Can set 'max-width' to a percent: calc(0% + 0%)
+Pass Can set 'max-width' to a percent: calc(0% + 0%)
Pass Can set 'max-width' to a length: 0px
Pass Can set 'max-width' to a length: -3.14em
Pass Can set 'max-width' to a length: 3.14cm
diff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/word-spacing.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/word-spacing.txt
index cc458e19808..a3d1b4d3624 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/word-spacing.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-typed-om/the-stylepropertymap/properties/word-spacing.txt
@@ -2,8 +2,7 @@ Harness status: OK
Found 32 tests
-31 Pass
-1 Fail
+32 Pass
Pass Can set 'word-spacing' to CSS-wide keywords: initial
Pass Can set 'word-spacing' to CSS-wide keywords: inherit
Pass Can set 'word-spacing' to CSS-wide keywords: unset
@@ -17,7 +16,7 @@ Pass Can set 'word-spacing' to a length: calc(0px + 0em)
Pass Can set 'word-spacing' to a percent: 0%
Pass Can set 'word-spacing' to a percent: -3.14%
Pass Can set 'word-spacing' to a percent: 3.14%
-Fail Can set 'word-spacing' to a percent: calc(0% + 0%)
+Pass Can set 'word-spacing' to a percent: calc(0% + 0%)
Pass Setting 'word-spacing' to a time: 0s throws TypeError
Pass Setting 'word-spacing' to a time: -3.14ms throws TypeError
Pass Setting 'word-spacing' to a time: 3.14s throws TypeError