Re: [csswg-drafts] [css-images] Typos gradient grammars (#6425)

Also:

> A color stop with two positions is equivalent to specifying two color stops with the same color, one for each position.

But currently two or more stops (`#`) are required:

> Color stops and transition hints are specified in a color stop list, which is a list of two or more color stops interleaved with optional transition hints:
> 
> `<color-stop-list> = <linear-color-stop> , [ <linear-color-hint>? , <linear-color-stop> ]#`

It may be helpfull to note the "implicit" expanded definition:

```
<color-stop-list> =   <color> && <color-stop-length>? [ , <linear-color-hint>? , <linear-color-stop> ]#
                    | <color> && <color-stop-length>{2} , [ <linear-color-hint>? , <linear-color-stop> ]#?
```

Note: `#?` is [not officially valid yet](https://github.com/w3c/csswg-drafts/issues/6085#issuecomment-799898161).

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


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

Received on Sunday, 29 August 2021 05:43:17 UTC