Skip to content
Permalink
Browse files
[CSS-Typed-OM] StylePropertyMap.set() should throw when trying to set…
… a number for a property which doesn't allow it

https://bugs.webkit.org/show_bug.cgi?id=249685

Reviewed by Sam Weinig.

StylePropertyMap.set() should throw when trying to set a number for a property
which doesn't allow it.

We previously relied on our CSS parser for validation. However, CSS parsing is
more permissive than CSS Typed OM is some cases. In particular, the CSS parser
will append "px" to numbers in some cases for properties that need a <length>.

For CSS Typed OM, the type needs to match exactly:
- https://drafts.css-houdini.org/css-typed-om-1/#cssstylevalue-match-a-grammar

* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/background-size-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/baseline-shift-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/block-size-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-image-outset-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-image-slice-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-image-width-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-radius-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/border-width-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/bottom-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/center-coordinate-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/column-rule-width-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/column-width-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/coordinate-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/flex-basis-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-size-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/font-weight-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/gap-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-auto-columns-rows-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-start-end-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/grid-template-columns-rows-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/height-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/inline-size-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/left-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/letter-spacing-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/logical-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/margin-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/offset-distance-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/outline-offset-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/outline-width-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/padding-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/perspective-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/radius-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/right-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scroll-margin-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/scroll-padding-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/shape-margin-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/stroke-dasharray-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-decoration-thickness-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-indent-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/text-underline-offset-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/top-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/vertical-align-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/width-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/the-stylepropertymap/properties/word-spacing-expected.txt:
* Source/WebCore/css/CSSProperty.h:
* Source/WebCore/css/process-css-properties.py:
(GenerateCSSPropertyNames):
* Source/WebCore/css/typedom/StylePropertyMap.cpp:
(WebCore::propertyAllowsNumberOrIntegerInput):
(WebCore::StylePropertyMap::set):

Canonical link: https://commits.webkit.org/258242@main
  • Loading branch information
cdumez committed Dec 22, 2022
1 parent c982868 commit add3c9105b58aa55330c85298e09b10ddaad6039
Show file tree
Hide file tree
Showing 44 changed files with 152 additions and 104 deletions.
@@ -26,7 +26,7 @@ PASS Setting 'background-size' to an angle: calc(0rad + 0deg) throws TypeError
PASS Setting 'background-size' to a flexible length: 0fr throws TypeError
PASS Setting 'background-size' to a flexible length: 1fr throws TypeError
PASS Setting 'background-size' to a flexible length: -3.14fr throws TypeError
FAIL Setting 'background-size' to a number: 0 throws TypeError assert_throws_js: function "() => styleMap.set(propertyName, example.input)" did not throw
PASS Setting 'background-size' to a number: 0 throws TypeError
PASS Setting 'background-size' to a number: -3.14 throws TypeError
PASS Setting 'background-size' to a number: 3.14 throws TypeError
PASS Setting 'background-size' to a number: calc(2 + 3) throws TypeError
@@ -25,7 +25,7 @@ PASS Setting 'baseline-shift' to an angle: calc(0rad + 0deg) throws TypeError
PASS Setting 'baseline-shift' to a flexible length: 0fr throws TypeError
PASS Setting 'baseline-shift' to a flexible length: 1fr throws TypeError
PASS Setting 'baseline-shift' to a flexible length: -3.14fr throws TypeError
FAIL Setting 'baseline-shift' to a number: 0 throws TypeError assert_throws_js: function "() => styleMap.set(propertyName, example.input)" did not throw
PASS Setting 'baseline-shift' to a number: 0 throws TypeError
PASS Setting 'baseline-shift' to a number: -3.14 throws TypeError
PASS Setting 'baseline-shift' to a number: 3.14 throws TypeError
PASS Setting 'baseline-shift' to a number: calc(2 + 3) throws TypeError
@@ -24,7 +24,7 @@ PASS Setting 'block-size' to an angle: calc(0rad + 0deg) throws TypeError
PASS Setting 'block-size' to a flexible length: 0fr throws TypeError
PASS Setting 'block-size' to a flexible length: 1fr throws TypeError
PASS Setting 'block-size' to a flexible length: -3.14fr throws TypeError
FAIL Setting 'block-size' to a number: 0 throws TypeError assert_throws_js: function "() => styleMap.set(propertyName, example.input)" did not throw
PASS Setting 'block-size' to a number: 0 throws TypeError
PASS Setting 'block-size' to a number: -3.14 throws TypeError
PASS Setting 'block-size' to a number: 3.14 throws TypeError
PASS Setting 'block-size' to a number: calc(2 + 3) throws TypeError
@@ -55,7 +55,7 @@ PASS Setting 'min-block-size' to an angle: calc(0rad + 0deg) throws TypeError
PASS Setting 'min-block-size' to a flexible length: 0fr throws TypeError
PASS Setting 'min-block-size' to a flexible length: 1fr throws TypeError
PASS Setting 'min-block-size' to a flexible length: -3.14fr throws TypeError
FAIL Setting 'min-block-size' to a number: 0 throws TypeError assert_throws_js: function "() => styleMap.set(propertyName, example.input)" did not throw
PASS Setting 'min-block-size' to a number: 0 throws TypeError
PASS Setting 'min-block-size' to a number: -3.14 throws TypeError
PASS Setting 'min-block-size' to a number: 3.14 throws TypeError
PASS Setting 'min-block-size' to a number: calc(2 + 3) throws TypeError
@@ -87,7 +87,7 @@ PASS Setting 'max-block-size' to an angle: calc(0rad + 0deg) throws TypeError
PASS Setting 'max-block-size' to a flexible length: 0fr throws TypeError
PASS Setting 'max-block-size' to a flexible length: 1fr throws TypeError
PASS Setting 'max-block-size' to a flexible length: -3.14fr throws TypeError
FAIL Setting 'max-block-size' to a number: 0 throws TypeError assert_throws_js: function "() => styleMap.set(propertyName, example.input)" did not throw
PASS Setting 'max-block-size' to a number: 0 throws TypeError
PASS Setting 'max-block-size' to a number: -3.14 throws TypeError
PASS Setting 'max-block-size' to a number: 3.14 throws TypeError
PASS Setting 'max-block-size' to a number: calc(2 + 3) throws TypeError
@@ -23,7 +23,7 @@ PASS Setting 'border-top-left-radius' to an angle: calc(0rad + 0deg) throws Type
PASS Setting 'border-top-left-radius' to a flexible length: 0fr throws TypeError
PASS Setting 'border-top-left-radius' to a flexible length: 1fr throws TypeError
PASS Setting 'border-top-left-radius' to a flexible length: -3.14fr throws TypeError
FAIL Setting 'border-top-left-radius' to a number: 0 throws TypeError assert_throws_js: function "() => styleMap.set(propertyName, example.input)" did not throw
PASS Setting 'border-top-left-radius' to a number: 0 throws TypeError
PASS Setting 'border-top-left-radius' to a number: -3.14 throws TypeError
PASS Setting 'border-top-left-radius' to a number: 3.14 throws TypeError
PASS Setting 'border-top-left-radius' to a number: calc(2 + 3) throws TypeError
@@ -54,7 +54,7 @@ PASS Setting 'border-top-right-radius' to an angle: calc(0rad + 0deg) throws Typ
PASS Setting 'border-top-right-radius' to a flexible length: 0fr throws TypeError
PASS Setting 'border-top-right-radius' to a flexible length: 1fr throws TypeError
PASS Setting 'border-top-right-radius' to a flexible length: -3.14fr throws TypeError
FAIL Setting 'border-top-right-radius' to a number: 0 throws TypeError assert_throws_js: function "() => styleMap.set(propertyName, example.input)" did not throw
PASS Setting 'border-top-right-radius' to a number: 0 throws TypeError
PASS Setting 'border-top-right-radius' to a number: -3.14 throws TypeError
PASS Setting 'border-top-right-radius' to a number: 3.14 throws TypeError
PASS Setting 'border-top-right-radius' to a number: calc(2 + 3) throws TypeError
@@ -85,7 +85,7 @@ PASS Setting 'border-bottom-left-radius' to an angle: calc(0rad + 0deg) throws T
PASS Setting 'border-bottom-left-radius' to a flexible length: 0fr throws TypeError
PASS Setting 'border-bottom-left-radius' to a flexible length: 1fr throws TypeError
PASS Setting 'border-bottom-left-radius' to a flexible length: -3.14fr throws TypeError
FAIL Setting 'border-bottom-left-radius' to a number: 0 throws TypeError assert_throws_js: function "() => styleMap.set(propertyName, example.input)" did not throw
PASS Setting 'border-bottom-left-radius' to a number: 0 throws TypeError
PASS Setting 'border-bottom-left-radius' to a number: -3.14 throws TypeError
PASS Setting 'border-bottom-left-radius' to a number: 3.14 throws TypeError
PASS Setting 'border-bottom-left-radius' to a number: calc(2 + 3) throws TypeError
@@ -116,7 +116,7 @@ PASS Setting 'border-bottom-right-radius' to an angle: calc(0rad + 0deg) throws
PASS Setting 'border-bottom-right-radius' to a flexible length: 0fr throws TypeError
PASS Setting 'border-bottom-right-radius' to a flexible length: 1fr throws TypeError
PASS Setting 'border-bottom-right-radius' to a flexible length: -3.14fr throws TypeError
FAIL Setting 'border-bottom-right-radius' to a number: 0 throws TypeError assert_throws_js: function "() => styleMap.set(propertyName, example.input)" did not throw
PASS Setting 'border-bottom-right-radius' to a number: 0 throws TypeError
PASS Setting 'border-bottom-right-radius' to a number: -3.14 throws TypeError
PASS Setting 'border-bottom-right-radius' to a number: 3.14 throws TypeError
PASS Setting 'border-bottom-right-radius' to a number: calc(2 + 3) throws TypeError
@@ -26,7 +26,7 @@ PASS Setting 'border-top-width' to an angle: calc(0rad + 0deg) throws TypeError
PASS Setting 'border-top-width' to a flexible length: 0fr throws TypeError
PASS Setting 'border-top-width' to a flexible length: 1fr throws TypeError
PASS Setting 'border-top-width' to a flexible length: -3.14fr throws TypeError
FAIL Setting 'border-top-width' to a number: 0 throws TypeError assert_throws_js: function "() => styleMap.set(propertyName, example.input)" did not throw
PASS Setting 'border-top-width' to a number: 0 throws TypeError
PASS Setting 'border-top-width' to a number: -3.14 throws TypeError
PASS Setting 'border-top-width' to a number: 3.14 throws TypeError
PASS Setting 'border-top-width' to a number: calc(2 + 3) throws TypeError
@@ -60,7 +60,7 @@ PASS Setting 'border-left-width' to an angle: calc(0rad + 0deg) throws TypeError
PASS Setting 'border-left-width' to a flexible length: 0fr throws TypeError
PASS Setting 'border-left-width' to a flexible length: 1fr throws TypeError
PASS Setting 'border-left-width' to a flexible length: -3.14fr throws TypeError
FAIL Setting 'border-left-width' to a number: 0 throws TypeError assert_throws_js: function "() => styleMap.set(propertyName, example.input)" did not throw
PASS Setting 'border-left-width' to a number: 0 throws TypeError
PASS Setting 'border-left-width' to a number: -3.14 throws TypeError
PASS Setting 'border-left-width' to a number: 3.14 throws TypeError
PASS Setting 'border-left-width' to a number: calc(2 + 3) throws TypeError
@@ -94,7 +94,7 @@ PASS Setting 'border-right-width' to an angle: calc(0rad + 0deg) throws TypeErro
PASS Setting 'border-right-width' to a flexible length: 0fr throws TypeError
PASS Setting 'border-right-width' to a flexible length: 1fr throws TypeError
PASS Setting 'border-right-width' to a flexible length: -3.14fr throws TypeError
FAIL Setting 'border-right-width' to a number: 0 throws TypeError assert_throws_js: function "() => styleMap.set(propertyName, example.input)" did not throw
PASS Setting 'border-right-width' to a number: 0 throws TypeError
PASS Setting 'border-right-width' to a number: -3.14 throws TypeError
PASS Setting 'border-right-width' to a number: 3.14 throws TypeError
PASS Setting 'border-right-width' to a number: calc(2 + 3) throws TypeError
@@ -128,7 +128,7 @@ PASS Setting 'border-bottom-width' to an angle: calc(0rad + 0deg) throws TypeErr
PASS Setting 'border-bottom-width' to a flexible length: 0fr throws TypeError
PASS Setting 'border-bottom-width' to a flexible length: 1fr throws TypeError
PASS Setting 'border-bottom-width' to a flexible length: -3.14fr throws TypeError
FAIL Setting 'border-bottom-width' to a number: 0 throws TypeError assert_throws_js: function "() => styleMap.set(propertyName, example.input)" did not throw
PASS Setting 'border-bottom-width' to a number: 0 throws TypeError
PASS Setting 'border-bottom-width' to a number: -3.14 throws TypeError
PASS Setting 'border-bottom-width' to a number: 3.14 throws TypeError
PASS Setting 'border-bottom-width' to a number: calc(2 + 3) throws TypeError
@@ -24,7 +24,7 @@ PASS Setting 'bottom' to an angle: calc(0rad + 0deg) throws TypeError
PASS Setting 'bottom' to a flexible length: 0fr throws TypeError
PASS Setting 'bottom' to a flexible length: 1fr throws TypeError
PASS Setting 'bottom' to a flexible length: -3.14fr throws TypeError
FAIL Setting 'bottom' to a number: 0 throws TypeError assert_throws_js: function "() => styleMap.set(propertyName, example.input)" did not throw
PASS Setting 'bottom' to a number: 0 throws TypeError
PASS Setting 'bottom' to a number: -3.14 throws TypeError
PASS Setting 'bottom' to a number: 3.14 throws TypeError
PASS Setting 'bottom' to a number: calc(2 + 3) throws TypeError
@@ -23,7 +23,7 @@ PASS Setting 'cx' to an angle: calc(0rad + 0deg) throws TypeError
PASS Setting 'cx' to a flexible length: 0fr throws TypeError
PASS Setting 'cx' to a flexible length: 1fr throws TypeError
PASS Setting 'cx' to a flexible length: -3.14fr throws TypeError
FAIL Setting 'cx' to a number: 0 throws TypeError assert_throws_js: function "() => styleMap.set(propertyName, example.input)" did not throw
PASS Setting 'cx' to a number: 0 throws TypeError
PASS Setting 'cx' to a number: -3.14 throws TypeError
PASS Setting 'cx' to a number: 3.14 throws TypeError
PASS Setting 'cx' to a number: calc(2 + 3) throws TypeError
@@ -54,7 +54,7 @@ PASS Setting 'cy' to an angle: calc(0rad + 0deg) throws TypeError
PASS Setting 'cy' to a flexible length: 0fr throws TypeError
PASS Setting 'cy' to a flexible length: 1fr throws TypeError
PASS Setting 'cy' to a flexible length: -3.14fr throws TypeError
FAIL Setting 'cy' to a number: 0 throws TypeError assert_throws_js: function "() => styleMap.set(propertyName, example.input)" did not throw
PASS Setting 'cy' to a number: 0 throws TypeError
PASS Setting 'cy' to a number: -3.14 throws TypeError
PASS Setting 'cy' to a number: 3.14 throws TypeError
PASS Setting 'cy' to a number: calc(2 + 3) throws TypeError
@@ -26,7 +26,7 @@ PASS Setting 'column-rule-width' to an angle: calc(0rad + 0deg) throws TypeError
PASS Setting 'column-rule-width' to a flexible length: 0fr throws TypeError
PASS Setting 'column-rule-width' to a flexible length: 1fr throws TypeError
PASS Setting 'column-rule-width' to a flexible length: -3.14fr throws TypeError
FAIL Setting 'column-rule-width' to a number: 0 throws TypeError assert_throws_js: function "() => styleMap.set(propertyName, example.input)" did not throw
PASS Setting 'column-rule-width' to a number: 0 throws TypeError
PASS Setting 'column-rule-width' to a number: -3.14 throws TypeError
PASS Setting 'column-rule-width' to a number: 3.14 throws TypeError
PASS Setting 'column-rule-width' to a number: calc(2 + 3) throws TypeError
@@ -24,7 +24,7 @@ PASS Setting 'column-width' to an angle: calc(0rad + 0deg) throws TypeError
PASS Setting 'column-width' to a flexible length: 0fr throws TypeError
PASS Setting 'column-width' to a flexible length: 1fr throws TypeError
PASS Setting 'column-width' to a flexible length: -3.14fr throws TypeError
FAIL Setting 'column-width' to a number: 0 throws TypeError assert_throws_js: function "() => styleMap.set(propertyName, example.input)" did not throw
PASS Setting 'column-width' to a number: 0 throws TypeError
PASS Setting 'column-width' to a number: -3.14 throws TypeError
PASS Setting 'column-width' to a number: 3.14 throws TypeError
PASS Setting 'column-width' to a number: calc(2 + 3) throws TypeError
@@ -23,7 +23,7 @@ PASS Setting 'x' to an angle: calc(0rad + 0deg) throws TypeError
PASS Setting 'x' to a flexible length: 0fr throws TypeError
PASS Setting 'x' to a flexible length: 1fr throws TypeError
PASS Setting 'x' to a flexible length: -3.14fr throws TypeError
FAIL Setting 'x' to a number: 0 throws TypeError assert_throws_js: function "() => styleMap.set(propertyName, example.input)" did not throw
PASS Setting 'x' to a number: 0 throws TypeError
PASS Setting 'x' to a number: -3.14 throws TypeError
PASS Setting 'x' to a number: 3.14 throws TypeError
PASS Setting 'x' to a number: calc(2 + 3) throws TypeError
@@ -54,7 +54,7 @@ PASS Setting 'y' to an angle: calc(0rad + 0deg) throws TypeError
PASS Setting 'y' to a flexible length: 0fr throws TypeError
PASS Setting 'y' to a flexible length: 1fr throws TypeError
PASS Setting 'y' to a flexible length: -3.14fr throws TypeError
FAIL Setting 'y' to a number: 0 throws TypeError assert_throws_js: function "() => styleMap.set(propertyName, example.input)" did not throw
PASS Setting 'y' to a number: 0 throws TypeError
PASS Setting 'y' to a number: -3.14 throws TypeError
PASS Setting 'y' to a number: 3.14 throws TypeError
PASS Setting 'y' to a number: calc(2 + 3) throws TypeError
@@ -28,7 +28,7 @@ PASS Setting 'flex-basis' to an angle: calc(0rad + 0deg) throws TypeError
PASS Setting 'flex-basis' to a flexible length: 0fr throws TypeError
PASS Setting 'flex-basis' to a flexible length: 1fr throws TypeError
PASS Setting 'flex-basis' to a flexible length: -3.14fr throws TypeError
FAIL Setting 'flex-basis' to a number: 0 throws TypeError assert_throws_js: function "() => styleMap.set(propertyName, example.input)" did not throw
PASS Setting 'flex-basis' to a number: 0 throws TypeError
PASS Setting 'flex-basis' to a number: -3.14 throws TypeError
PASS Setting 'flex-basis' to a number: 3.14 throws TypeError
PASS Setting 'flex-basis' to a number: calc(2 + 3) throws TypeError
@@ -32,7 +32,7 @@ PASS Setting 'font-size' to an angle: calc(0rad + 0deg) throws TypeError
PASS Setting 'font-size' to a flexible length: 0fr throws TypeError
PASS Setting 'font-size' to a flexible length: 1fr throws TypeError
PASS Setting 'font-size' to a flexible length: -3.14fr throws TypeError
FAIL Setting 'font-size' to a number: 0 throws TypeError assert_throws_js: function "() => styleMap.set(propertyName, example.input)" did not throw
PASS Setting 'font-size' to a number: 0 throws TypeError
PASS Setting 'font-size' to a number: -3.14 throws TypeError
PASS Setting 'font-size' to a number: 3.14 throws TypeError
PASS Setting 'font-size' to a number: calc(2 + 3) throws TypeError
@@ -24,7 +24,7 @@ PASS Setting 'column-gap' to an angle: calc(0rad + 0deg) throws TypeError
PASS Setting 'column-gap' to a flexible length: 0fr throws TypeError
PASS Setting 'column-gap' to a flexible length: 1fr throws TypeError
PASS Setting 'column-gap' to a flexible length: -3.14fr throws TypeError
FAIL Setting 'column-gap' to a number: 0 throws TypeError assert_throws_js: function "() => styleMap.set(propertyName, example.input)" did not throw
PASS Setting 'column-gap' to a number: 0 throws TypeError
PASS Setting 'column-gap' to a number: -3.14 throws TypeError
PASS Setting 'column-gap' to a number: 3.14 throws TypeError
PASS Setting 'column-gap' to a number: calc(2 + 3) throws TypeError
@@ -56,7 +56,7 @@ PASS Setting 'row-gap' to an angle: calc(0rad + 0deg) throws TypeError
PASS Setting 'row-gap' to a flexible length: 0fr throws TypeError
PASS Setting 'row-gap' to a flexible length: 1fr throws TypeError
PASS Setting 'row-gap' to a flexible length: -3.14fr throws TypeError
FAIL Setting 'row-gap' to a number: 0 throws TypeError assert_throws_js: function "() => styleMap.set(propertyName, example.input)" did not throw
PASS Setting 'row-gap' to a number: 0 throws TypeError
PASS Setting 'row-gap' to a number: -3.14 throws TypeError
PASS Setting 'row-gap' to a number: 3.14 throws TypeError
PASS Setting 'row-gap' to a number: calc(2 + 3) throws TypeError
@@ -26,7 +26,7 @@ PASS Setting 'grid-auto-columns' to an angle: 3.14rad throws TypeError
PASS Setting 'grid-auto-columns' to an angle: -3.14deg throws TypeError
PASS Setting 'grid-auto-columns' to an angle: calc(0rad + 0deg) throws TypeError
PASS Setting 'grid-auto-columns' to a flexible length: -3.14fr throws TypeError
FAIL Setting 'grid-auto-columns' to a number: 0 throws TypeError assert_throws_js: function "() => styleMap.set(propertyName, example.input)" did not throw
PASS Setting 'grid-auto-columns' to a number: 0 throws TypeError
PASS Setting 'grid-auto-columns' to a number: -3.14 throws TypeError
PASS Setting 'grid-auto-columns' to a number: 3.14 throws TypeError
PASS Setting 'grid-auto-columns' to a number: calc(2 + 3) throws TypeError
@@ -62,7 +62,7 @@ PASS Setting 'grid-auto-rows' to an angle: 3.14rad throws TypeError
PASS Setting 'grid-auto-rows' to an angle: -3.14deg throws TypeError
PASS Setting 'grid-auto-rows' to an angle: calc(0rad + 0deg) throws TypeError
PASS Setting 'grid-auto-rows' to a flexible length: -3.14fr throws TypeError
FAIL Setting 'grid-auto-rows' to a number: 0 throws TypeError assert_throws_js: function "() => styleMap.set(propertyName, example.input)" did not throw
PASS Setting 'grid-auto-rows' to a number: 0 throws TypeError
PASS Setting 'grid-auto-rows' to a number: -3.14 throws TypeError
PASS Setting 'grid-auto-rows' to a number: 3.14 throws TypeError
PASS Setting 'grid-auto-rows' to a number: calc(2 + 3) throws TypeError

0 comments on commit add3c91

Please sign in to comment.