Open
Description
The css/css-typed-om/stylevalue-subclasses/cssHSL.html lists undefined
as a valid input for hue.
However, according to the spec, h is replaced by the result of rectifying a CSSColorAngle.
This procedure throws a TypeError
if h is undefined:
To rectify a CSSColorAngle val:
- If val is a double, replace it with a new unit value from (val, "deg").
- If val is a DOMString, replace it with the result of rectifying a keywordish value from val.
- If val is a CSSNumericValue, and it matches , return val.
- If val is a CSSKeywordValue, and its value internal slot is an ASCII case-insensitive match for "none", return val.
- Throw a TypeError.
Additionally, neither Chrome nor Edge supports undefined
.
https://wpt.fyi/results/css/css-typed-om/stylevalue-subclasses/cssHSL.html?label=experimental&label=master&aligned
Should perhaps undefined be removed from the list of valid inputs for h?
Metadata
Metadata
Assignees
Labels
No labels