Skip to content

cssHSL.html test lists undefined as a valid input for hue #53487

Open
@johannesodland

Description

@johannesodland

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:

  1. If val is a double, replace it with a new unit value from (val, "deg").
  2. If val is a DOMString, replace it with the result of rectifying a keywordish value from val.
  3. If val is a CSSNumericValue, and it matches , return val.
  4. If val is a CSSKeywordValue, and its value internal slot is an ASCII case-insensitive match for "none", return val.
  5. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions