Re: [csswg-drafts] [css-images] Define `<zero>` as an alternative for `<angle>` (#8346)

Requested in #11952.

While adding `<zero>` to the grammar of conic/linear gradient rotations is an editorial change, adding `<zero>` to the grammar of angular color stop/hint is not. It matches the current output in Chrome and FF though:

```js
el.style.backgroundImage = 'conic-gradient(from 0, blue 0 0, yellow)'
el.style.backgroundImage // conic-gradient(from 0deg, blue 0deg, blue 0deg, yellow)
el.style.backgroundImage = 'linear-gradient(0, blue, yellow)'
el.style.backgroundImage // linear-gradient(0deg, blue, yellow)
```

WPT tests may need to be added/updated:

  - for the [conic/linear gradient rotation](https://github.com/web-platform-tests/wpt/tree/master/css/css-images/parsing)
  - for the (angular) [color stop list](https://github.com/web-platform-tests/wpt/blob/master/css/css-images/gradient/color-stops-parsing.html)

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


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

Received on Tuesday, 18 March 2025 07:10:57 UTC