- From: Johannes Odland via GitHub <noreply@w3.org>
- Date: Sun, 29 Jun 2025 20:03:57 +0000
- To: public-css-archive@w3.org
johannesodland has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-typed-om] Possible inconsistency in errors thrown from `rectify a CSSColor* val` == There seems to be an inconsistency in the error thrown by the `rectify a CSSColor* val` procedures. The specification specifies SyntaxError for some of the procedures, and TypeError for the angle procedure. Web platform tests expect SyntaxError but Chrome seems to throw TypeError. Should these be more consistent? - rectify a CSSColorRGBComp val - [Specified to throw a SyntaxError](https://drafts.css-houdini.org/css-typed-om-1/#rectify-a-csscolorrgbcomp) - [WPT expects a SyntaxError](https://github.com/web-platform-tests/wpt/blob/fee00f968c53b485d69e90089747758a73aee98d/css/css-typed-om/stylevalue-subclasses/cssRGB.html#L31) - Chrome throws a TypeError (Tested through `new CSSRGB(CSS.deg(5), 0, 0)`) - rectify a CSSColorPercent val - [Specified to throw a SyntaxError](https://drafts.css-houdini.org/css-typed-om-1/#rectify-a-csscolorpercent) - [WPT expects a SyntaxError](https://github.com/web-platform-tests/wpt/blob/fee00f968c53b485d69e90089747758a73aee98d/css/css-typed-om/stylevalue-subclasses/cssRGB.html#L42) - Chrome throws a TypeError (Tested through `new CSSRGB(0, 0, 0, CSS.number(1))`) - rectify a CSSColorNumber val - [Specified to throw a SyntaxError](https://drafts.css-houdini.org/css-typed-om-1/#rectify-a-csscolornumber) - Could not find WPT - Could not test in Chrome through CSSLab/CSSOKLab as they are not implemented - rectify a CSSColorAngle val - [Specified to throw a TypeError](https://drafts.css-houdini.org/css-typed-om-1/#rectify-a-csscolorangle) - [WPT expects a SyntaxError](https://github.com/web-platform-tests/wpt/blob/fee00f968c53b485d69e90089747758a73aee98d/css/css-typed-om/stylevalue-subclasses/cssHSL.html#L41) - Chrome throws a Type error (tested through `new CSSHSL(CSS.px(5), 0, 0)`) Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12414 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Sunday, 29 June 2025 20:03:58 UTC