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.

There is no precedent for `<fn-name>(...)`. If it the CSS value definition syntax does not allow it, and if non-legacy `hsla|rgba` have to be included in the syntax as non-terminals, then it can be defined like this:

```
<rgb-syntax> = [ <legacy-rgb-syntax> | <modern-rgb-syntax> | <relative-rgb-syntax> ]
<rgb()> = rgb( [ <rgb-syntax> ] )
<rgba()> = rgba( [ <rgb-syntax> ] )
```

-- 
GitHub Notification of comment by cdoublev
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7900#issuecomment-1317386741 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 17:25:27 UTC