[csswg-drafts] [css-typed-om] Should throw TypeError when CSSTransformComponents attributes are set to values that does not match (#12388)

johannesodland has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-typed-om] Should throw TypeError when CSSTransformComponents attributes are set to values that does not match ==
The [`CSSTranslate(x, y, z)` constructor](https://drafts.css-houdini.org/css-typed-om-1/#dom-csstranslate-csstranslate) throws a TypeError if any value does not match the expected production. 

The [cssTranslate.tentative.html](https://github.com/web-platform-tests/wpt/blob/0d4f708da5178998337a10b39fdfb2388e1caf43/css/css-typed-om/stylevalue-subclasses/cssTranslate.tentative.html#L32) WPT additionally expects a TypeError to be thrown when setting the x, y and z attributes to a value that does not match the expected production. 

That validation seems to be missing from the spec.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12388 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 23 June 2025 19:09:55 UTC