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
- rectify a CSSColorPercent val
- rectify a CSSColorNumber val
- rectify a CSSColorAngle val
There seems to be an inconsistency in the error thrown by the
rectify a CSSColor* valprocedures.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?
new CSSRGB(CSS.deg(5), 0, 0))new CSSRGB(0, 0, 0, CSS.number(1)))new CSSHSL(CSS.px(5), 0, 0))