Re: [csswg-drafts] [css-color-4] `rgba()` is legacy so does not support `none`. Right? (#7900)

@GPHemsley thanks for listing all the differences, for CSS Color 4. Let me add to that: CSS Color 5 adds [Relative Color Syntax](https://drafts.csswg.org/css-color-5/#relative-colors) which for [Relative sRGB Colors](https://drafts.csswg.org/css-color-5/#relative-RGB) gives a grammar which extends the modern (comma-less, slash alpha) `rgb()` function (only).

In [Relative HSL Colors](https://drafts.csswg.org/css-color-5/#relative-HSL) there is a clarification:

>Relative color syntax is only applicable to the non-legacy HSL syntactic forms.

That isn't needed for HWB, Lab, LCH, Oklab and Oklch which don't have legacy forms but clarification is needed for `rgba()`. If all `rgba()` is legacy then it needs to be explicitly excluded from RCS; if the comma-form is legacy and the comma-less, slash alpha form is not legacy then that form needs to be added to the grammar. 

Given the way the discussion is going I would argue for the latter option.

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


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

Received on Wednesday, 16 November 2022 16:20:38 UTC