[csswg-drafts] Pull Request: [css-images] Allow specifying any angle as a bare zero in gradients

cdoublev has just submitted a new pull request for https://github.com/w3c/csswg-drafts:

== [css-images] Allow specifying any angle as a bare zero in gradients ==
Fixes #8346.

It explicitly allows declaring a conic/linear gradient rotation with `<zero>` in the grammar, which is already defined in prose.

It allows declaring an angular color stop/hint with `<zero>`, which matches the output in Chrome and Firefox but is currently undefined, so this change is substantive.

As noted in the issue, I believe that this change allows these lines to be removed from CSS V&U [3](https://github.com/w3c/csswg-drafts/blob/2e37f85c673df18fb79998c96124aab9d87e321f/css-values-3/Overview.bs#L1590-L1593) and [4](https://github.com/w3c/csswg-drafts/blob/2e37f85c673df18fb79998c96124aab9d87e321f/css-values-4/Overview.bs#L2635-L2638), because all uses `<angle>` with a bare `0` would now be explicitly allowed in the grammar:

  > Note: For legacy reasons,
  > some uses of `<<angle>>` allow a bare ''0'' to mean ''0deg''.
  > This is not true in general, however,
  > and will not occur in future uses of the `<<angle>>` type.

See https://github.com/w3c/csswg-drafts/pull/11952


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

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