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.cppindex 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::StyleValueVERIFY(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.txtindex 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: OKFound 35 tests-33 Pass-2 Fail+34 Pass+1 FailPass Can set 'background-size' to CSS-wide keywords: initialPass Can set 'background-size' to CSS-wide keywords: inheritPass 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: autoPass Can set 'background-size' to the 'cover' keyword: coverPass Can set 'background-size' to the 'contain' keyword: containdiff --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.txtindex 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: OKFound 95 tests-89 Pass-6 Fail+92 Pass+3 FailPass Can set 'block-size' to CSS-wide keywords: initialPass Can set 'block-size' to CSS-wide keywords: inheritPass Can set 'block-size' to CSS-wide keywords: unset@@ -13,7 +13,7 @@ Pass Can set 'block-size' to the 'auto' keyword: autoPass 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: 0pxPass Can set 'block-size' to a length: -3.14emPass 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: 0pxPass Can set 'min-block-size' to a length: -3.14emPass Can set 'min-block-size' to a length: 3.14cm@@ -76,7 +76,7 @@ Pass Can set 'max-block-size' to the 'none' keyword: nonePass 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: 0pxPass Can set 'max-block-size' to a length: -3.14emPass Can set 'max-block-size' to a length: 3.14cmdiff --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.txtindex 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: OKFound 32 tests-31 Pass-1 Fail+32 PassPass Can set 'bottom' to CSS-wide keywords: initialPass Can set 'bottom' to CSS-wide keywords: inheritPass Can set 'bottom' to CSS-wide keywords: unset@@ -13,7 +12,7 @@ Pass Can set 'bottom' to the 'auto' keyword: autoPass 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: 0pxPass Can set 'bottom' to a length: -3.14emPass Can set 'bottom' to a length: 3.14cmdiff --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.txtindex 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: OKFound 62 tests-60 Pass-2 Fail+62 PassPass Can set 'cx' to CSS-wide keywords: initialPass Can set 'cx' to CSS-wide keywords: inheritPass 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: 0pxPass Can set 'cx' to a length: -3.14emPass 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: 0pxPass Can set 'cy' to a length: -3.14emPass Can set 'cy' to a length: 3.14cmdiff --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.txtindex 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: OKFound 62 tests-60 Pass-2 Fail+62 PassPass Can set 'x' to CSS-wide keywords: initialPass Can set 'x' to CSS-wide keywords: inheritPass 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: 0pxPass Can set 'x' to a length: -3.14emPass 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: 0pxPass Can set 'y' to a length: -3.14emPass Can set 'y' to a length: 3.14cmdiff --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.txtindex 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: OKFound 36 tests-33 Pass-3 Fail+34 Pass+2 FailPass Can set 'flex-basis' to CSS-wide keywords: initialPass Can set 'flex-basis' to CSS-wide keywords: inheritPass 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 TypeErrorPass Setting 'flex-basis' to a time: -3.14ms throws TypeErrorPass Setting 'flex-basis' to a time: 3.14s throws TypeErrordiff --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.txtindex 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: OKFound 41 tests-39 Pass-2 Fail+41 PassPass Can set 'font-size' to CSS-wide keywords: initialPass Can set 'font-size' to CSS-wide keywords: inheritPass Can set 'font-size' to CSS-wide keywords: unset@@ -24,9 +23,9 @@ Pass Can set 'font-size' to a length: -3.14emPass Can set 'font-size' to a length: 3.14cmPass 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 TypeErrorPass Setting 'font-size' to a time: -3.14ms throws TypeErrorPass Setting 'font-size' to a time: 3.14s throws TypeErrordiff --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.txtindex 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: OKFound 64 tests-60 Pass-4 Fail+62 Pass+2 FailPass Can set 'column-gap' to CSS-wide keywords: initialPass Can set 'column-gap' to CSS-wide keywords: inheritPass 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 TypeErrorPass Setting 'column-gap' to a time: -3.14ms throws TypeErrorPass 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 TypeErrorPass Setting 'row-gap' to a time: -3.14ms throws TypeErrorPass Setting 'row-gap' to a time: 3.14s throws TypeErrordiff --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.txtindex 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: OKFound 72 tests-58 Pass-14 Fail+60 Pass+12 FailPass Can set 'grid-auto-columns' to CSS-wide keywords: initialPass Can set 'grid-auto-columns' to CSS-wide keywords: inheritPass 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: 0frFail Can set 'grid-auto-columns' to a flexible length: 1frPass 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: 0frFail Can set 'grid-auto-rows' to a flexible length: 1frPass Setting 'grid-auto-rows' to a time: 0s throws TypeErrordiff --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.txtindex 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: OKFound 95 tests-89 Pass-6 Fail+92 Pass+3 FailPass Can set 'height' to CSS-wide keywords: initialPass Can set 'height' to CSS-wide keywords: inheritPass Can set 'height' to CSS-wide keywords: unset@@ -13,7 +13,7 @@ Pass Can set 'height' to the 'auto' keyword: autoPass 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: 0pxPass Can set 'height' to a length: -3.14emPass 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: 0pxPass Can set 'min-height' to a length: -3.14emPass Can set 'min-height' to a length: 3.14cm@@ -76,7 +76,7 @@ Pass Can set 'max-height' to the 'none' keyword: nonePass 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: 0pxPass Can set 'max-height' to a length: -3.14emPass Can set 'max-height' to a length: 3.14cmdiff --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.txtindex 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: OKFound 95 tests-89 Pass-6 Fail+92 Pass+3 FailPass Can set 'inline-size' to CSS-wide keywords: initialPass Can set 'inline-size' to CSS-wide keywords: inheritPass Can set 'inline-size' to CSS-wide keywords: unset@@ -13,7 +13,7 @@ Pass Can set 'inline-size' to the 'auto' keyword: autoPass 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: 0pxPass Can set 'inline-size' to a length: -3.14emPass 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: 0pxPass Can set 'min-inline-size' to a length: -3.14emPass Can set 'min-inline-size' to a length: 3.14cm@@ -76,7 +76,7 @@ Pass Can set 'max-inline-size' to the 'none' keyword: nonePass 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: 0pxPass Can set 'max-inline-size' to a length: -3.14emPass Can set 'max-inline-size' to a length: 3.14cmdiff --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.txtindex 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: OKFound 32 tests-31 Pass-1 Fail+32 PassPass Can set 'left' to CSS-wide keywords: initialPass Can set 'left' to CSS-wide keywords: inheritPass Can set 'left' to CSS-wide keywords: unset@@ -13,7 +12,7 @@ Pass Can set 'left' to the 'auto' keyword: autoPass 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: 0pxPass Can set 'left' to a length: -3.14emPass Can set 'left' to a length: 3.14cmdiff --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.txtindex 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: OKFound 32 tests-28 Pass-4 Fail+29 Pass+3 FailPass Can set 'letter-spacing' to CSS-wide keywords: initialPass Can set 'letter-spacing' to CSS-wide keywords: inheritPass 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 TypeErrorPass Setting 'letter-spacing' to a time: -3.14ms throws TypeErrorPass Setting 'letter-spacing' to a time: 3.14s throws TypeErrordiff --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.txtindex 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: OKFound 32 tests-28 Pass-4 Fail+30 Pass+2 FailPass Can set 'line-height' to CSS-wide keywords: initialPass Can set 'line-height' to CSS-wide keywords: inheritPass Can set 'line-height' to CSS-wide keywords: unset@@ -19,9 +19,9 @@ Fail Can set 'line-height' to a number: -3.14Pass Can set 'line-height' to a number: 3.14Pass 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 TypeErrorPass Setting 'line-height' to a time: -3.14ms throws TypeErrorPass Setting 'line-height' to a time: 3.14s throws TypeErrordiff --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.txtindex 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: OKFound 1468 tests-1276 Pass-192 Fail+1296 Pass+172 FailPass Can set 'margin-block-start' to CSS-wide keywords: initialPass Can set 'margin-block-start' to CSS-wide keywords: inheritPass 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: 0pxPass Can set 'margin-block-start' to a length: -3.14emPass 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: 0pxPass Can set 'margin-block-end' to a length: -3.14emPass 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: 0pxPass Can set 'margin-inline-start' to a length: -3.14emPass 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: 0pxPass Can set 'margin-inline-end' to a length: -3.14emPass 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: 0pxPass Can set 'padding-block-start' to a length: -3.14emPass 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: 0pxPass Can set 'padding-block-end' to a length: -3.14emPass 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: 0pxPass Can set 'padding-inline-start' to a length: -3.14emPass 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: 0pxPass Can set 'padding-inline-end' to a length: -3.14emPass 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: 0pxPass Can set 'inset-block-start' to a length: -3.14emPass 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: 0pxPass Can set 'inset-block-end' to a length: -3.14emPass 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: 0pxPass Can set 'inset-inline-start' to a length: -3.14emPass 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: 0pxPass Can set 'inset-inline-end' to a length: -3.14emPass 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: unsetPass Can set 'border-start-start-radius' to CSS-wide keywords: revertPass 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: 0pxPass Can set 'border-start-start-radius' to a length: -3.14emPass 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: unsetPass Can set 'border-start-end-radius' to CSS-wide keywords: revertPass 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: 0pxPass Can set 'border-start-end-radius' to a length: -3.14emPass 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: unsetPass Can set 'border-end-start-radius' to CSS-wide keywords: revertPass 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: 0pxPass Can set 'border-end-start-radius' to a length: -3.14emPass 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: unsetPass Can set 'border-end-end-radius' to CSS-wide keywords: revertPass 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: 0pxPass Can set 'border-end-end-radius' to a length: -3.14emPass Can set 'border-end-end-radius' to a length: 3.14cmdiff --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.txtindex 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: OKFound 161 tests-152 Pass-9 Fail+156 Pass+5 FailPass Can set 'margin-top' to CSS-wide keywords: initialPass Can set 'margin-top' to CSS-wide keywords: inheritPass Can set 'margin-top' to CSS-wide keywords: unset@@ -13,7 +13,7 @@ Pass Can set 'margin-top' to the 'auto' keyword: autoPass 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: 0pxPass Can set 'margin-top' to a length: -3.14emPass Can set 'margin-top' to a length: 3.14cm@@ -45,7 +45,7 @@ Pass Can set 'margin-left' to the 'auto' keyword: autoPass 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: 0pxPass Can set 'margin-left' to a length: -3.14emPass Can set 'margin-left' to a length: 3.14cm@@ -77,7 +77,7 @@ Pass Can set 'margin-right' to the 'auto' keyword: autoPass 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: 0pxPass Can set 'margin-right' to a length: -3.14emPass Can set 'margin-right' to a length: 3.14cm@@ -109,7 +109,7 @@ Pass Can set 'margin-bottom' to the 'auto' keyword: autoPass 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: 0pxPass Can set 'margin-bottom' to a length: -3.14emPass Can set 'margin-bottom' to a length: 3.14cmdiff --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.txtindex 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: OKFound 31 tests-30 Pass-1 Fail+31 PassPass Can set 'offset-distance' to CSS-wide keywords: initialPass Can set 'offset-distance' to CSS-wide keywords: inheritPass 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 TypeErrorPass Setting 'offset-distance' to a time: -3.14ms throws TypeErrorPass Setting 'offset-distance' to a time: 3.14s throws TypeErrordiff --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.txtindex 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: OKFound 124 tests-116 Pass-8 Fail+120 Pass+4 FailPass Can set 'padding-top' to CSS-wide keywords: initialPass Can set 'padding-top' to CSS-wide keywords: inheritPass 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: 0pxPass Can set 'padding-top' to a length: -3.14emPass 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: 0pxPass Can set 'padding-left' to a length: -3.14emPass 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: 0pxPass Can set 'padding-right' to a length: -3.14emPass 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: 0pxPass Can set 'padding-bottom' to a length: -3.14emPass Can set 'padding-bottom' to a length: 3.14cmdiff --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.txtindex 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: OKFound 95 tests-89 Pass-6 Fail+92 Pass+3 FailPass Can set 'r' to CSS-wide keywords: initialPass Can set 'r' to CSS-wide keywords: inheritPass 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: 0pxPass Can set 'r' to a length: -3.14emPass Can set 'r' to a length: 3.14cm@@ -44,7 +44,7 @@ Pass Can set 'rx' to the 'auto' keyword: autoPass 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: 0pxPass Can set 'rx' to a length: -3.14emPass Can set 'rx' to a length: 3.14cm@@ -76,7 +76,7 @@ Pass Can set 'ry' to the 'auto' keyword: autoPass 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: 0pxPass Can set 'ry' to a length: -3.14emPass Can set 'ry' to a length: 3.14cmdiff --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.txtindex 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: OKFound 32 tests-31 Pass-1 Fail+32 PassPass Can set 'right' to CSS-wide keywords: initialPass Can set 'right' to CSS-wide keywords: inheritPass Can set 'right' to CSS-wide keywords: unset@@ -13,7 +12,7 @@ Pass Can set 'right' to the 'auto' keyword: autoPass 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: 0pxPass Can set 'right' to a length: -3.14emPass Can set 'right' to a length: 3.14cmdiff --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.txtindex 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: OKFound 252 tests-236 Pass-16 Fail+244 Pass+8 FailPass Can set 'scroll-padding-top' to CSS-wide keywords: initialPass Can set 'scroll-padding-top' to CSS-wide keywords: inheritPass 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: 0pxPass Can set 'scroll-padding-top' to a length: -3.14emPass 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: 0pxPass Can set 'scroll-padding-left' to a length: -3.14emPass 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: 0pxPass Can set 'scroll-padding-right' to a length: -3.14emPass 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: 0pxPass Can set 'scroll-padding-bottom' to a length: -3.14emPass 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: 0pxPass Can set 'scroll-padding-inline-start' to a length: -3.14emPass 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: 0pxPass Can set 'scroll-padding-block-start' to a length: -3.14emPass 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: 0pxPass Can set 'scroll-padding-inline-end' to a length: -3.14emPass 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: 0pxPass Can set 'scroll-padding-block-end' to a length: -3.14emPass Can set 'scroll-padding-block-end' to a length: 3.14cmdiff --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.txtindex 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: OKFound 31 tests-29 Pass-2 Fail+30 Pass+1 FailPass Can set 'shape-margin' to CSS-wide keywords: initialPass Can set 'shape-margin' to CSS-wide keywords: inheritPass 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 TypeErrorPass Setting 'shape-margin' to a time: -3.14ms throws TypeErrorPass Setting 'shape-margin' to a time: 3.14s throws TypeErrordiff --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.txtindex 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: OKFound 32 tests-31 Pass-1 Fail+32 PassPass Can set 'text-decoration-thickness' to CSS-wide keywords: initialPass Can set 'text-decoration-thickness' to CSS-wide keywords: inheritPass 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 TypeErrorPass Setting 'text-decoration-thickness' to a time: -3.14ms throws TypeErrorPass Setting 'text-decoration-thickness' to a time: 3.14s throws TypeErrordiff --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.txtindex 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: OKFound 32 tests-31 Pass-1 Fail+32 PassPass Can set 'text-underline-offset' to CSS-wide keywords: initialPass Can set 'text-underline-offset' to CSS-wide keywords: inheritPass 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 TypeErrorPass Setting 'text-underline-offset' to a time: -3.14ms throws TypeErrorPass Setting 'text-underline-offset' to a time: 3.14s throws TypeErrordiff --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.txtindex 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: OKFound 32 tests-31 Pass-1 Fail+32 PassPass Can set 'top' to CSS-wide keywords: initialPass Can set 'top' to CSS-wide keywords: inheritPass Can set 'top' to CSS-wide keywords: unset@@ -13,7 +12,7 @@ Pass Can set 'top' to the 'auto' keyword: autoPass 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: 0pxPass Can set 'top' to a length: -3.14emPass Can set 'top' to a length: 3.14cmdiff --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.txtindex 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: OKFound 95 tests-89 Pass-6 Fail+92 Pass+3 FailPass Can set 'width' to CSS-wide keywords: initialPass Can set 'width' to CSS-wide keywords: inheritPass Can set 'width' to CSS-wide keywords: unset@@ -13,7 +13,7 @@ Pass Can set 'width' to the 'auto' keyword: autoPass 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: 0pxPass Can set 'width' to a length: -3.14emPass 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: 0pxPass Can set 'min-width' to a length: -3.14emPass Can set 'min-width' to a length: 3.14cm@@ -76,7 +76,7 @@ Pass Can set 'max-width' to the 'none' keyword: nonePass 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: 0pxPass Can set 'max-width' to a length: -3.14emPass Can set 'max-width' to a length: 3.14cmdiff --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.txtindex 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: OKFound 32 tests-31 Pass-1 Fail+32 PassPass Can set 'word-spacing' to CSS-wide keywords: initialPass Can set 'word-spacing' to CSS-wide keywords: inheritPass 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 TypeErrorPass Setting 'word-spacing' to a time: -3.14ms throws TypeErrorPass Setting 'word-spacing' to a time: 3.14s throws TypeError