W3C home > Mailing lists > Public > public-css-archive@w3.org > August 2021

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

From: Guillaume via GitHub <sysbot+gh@w3.org>
Date: Sun, 29 Aug 2021 05:43:16 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-907733117-1630215794-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:43 UTC