[csswg-drafts] [css-images-4][css-shapes-1] Allow mixing `<radial-extent>` and `<length-percentage>` in `<radial-size>` (#9729)

cdoublev has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-images-4][css-shapes-1] Allow mixing `<radial-extent>` and `<length-percentage>` in `<radial-size>` ==
Two `<radial-extent>` keywords can now be specified for [`ellipse()`](https://drafts.csswg.org/css-shapes-1/#funcdef-basic-shape-ellipse) or an elliptical [`radial-gradient()`](https://drafts.csswg.org/css-images-4/#typedef-radial-gradient-syntax), thanks to https://github.com/w3c/csswg-drafts/commit/351600a57424296b9616cb701dd95d4533e4b638.

For example, `radial-gradient(farthest-corner closest-side, yellow, magenta)` is now valid.

This was proposed in #824 but @astearns also suggested a [syntax](https://github.com/w3c/csswg-drafts/issues/824#issuecomment-546097364) that allows mixing `<radial-extent>` and `<length-percentage>`.

For example, `radial-gradient(farthest-corner 100%, yellow, magenta)` would be valid.

But the current syntax does not allow it:

  > `<radial-size> = <radial-extent>{1,2} | <length-percentage [0,∞]>{1,2}`

Is this an oversight or is there a reason to not use `[ <radial-extent> | <length-percentage [0,∞]> ]{1,2}`?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9729 using your GitHub account


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

Received on Wednesday, 20 December 2023 10:53:04 UTC