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

> > Given the way the discussion is going I would argue for the latter option.
> 
> I do not repeat to insist but only to be sure that there is no misunderstanding: accepting RCS and `none` in 2 of the 4 syntaxes is not my personal preference, which is to accept them either in the four syntaxes or only in comma-less slash alpha `rgb()` and `hsl()`, because I think it is less error-prone for CSS authors.

CSS authors concerned about being confused can use the modern syntax across the board.

But implementors are another story.

> Also tempted to back-port the "accept a mixture of `<number>` and `<percentage>`" to CSS Color 4. I believe this already has tests in WPT (because people are implementing CSS Color 5 and 4 at the same time).

This is food for thought, as is @cdoublev's suggestion. Implementations could be simpler if they didn't have to branch for all the different, mutually-exclusive syntaxes.


-- 
GitHub Notification of comment by GPHemsley
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7900#issuecomment-1317724789 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 22:13:48 UTC