Open
Description
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
- WPT expects a SyntaxError
- Chrome throws a TypeError (Tested through
new CSSRGB(CSS.deg(5), 0, 0)
)
- rectify a CSSColorPercent val
- Specified to throw a SyntaxError
- WPT expects a SyntaxError
- Chrome throws a TypeError (Tested through
new CSSRGB(0, 0, 0, CSS.number(1))
)
- rectify a CSSColorNumber val
- Specified to throw a SyntaxError
- 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
- cssHSL WPT expects a SyntaxError
- cssHWB WPT expects both a TypeError and a SyntaxError depending on wether the input is a CSSNumericValue.
- Chrome throws a Type error (tested through
new CSSHSL(CSS.px(5), 0, 0)
)
Metadata
Metadata
Assignees
Labels
No labels