Re: [csswg-drafts] [css-values-4] <angle> needs clamping details for degenerated values (#6105)

Hmmmm, that's not workable per current spec; `NaN` only exists within a calculation and is censored otherwise (to `infinity`) as it escapes the calculation. If Color is currently depending on detecting a `NaN` that spec text will never fire.

I think what you *want* is that the hue is "missing", due to taking an achromatic color and interpolating it in a space with hue. Whether or not that ends up producing a hue angle of `NaN` when you run angle calculations in JS isn't necessarily relevant here.

Outside of that implicit missing-ness produced by converting between representations, a `NaN` angle is only produced by *nonsensical* calculations, and probably should be treated the same as an infinite angle.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6105#issuecomment-801238726 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 17 March 2021 16:44:55 UTC