- From: Guillaume via GitHub <sysbot+gh@w3.org>
- Date: Tue, 03 Sep 2024 09:11:04 +0000
- To: public-css-archive@w3.org
I closed #9730 in favor of this issue, to rephrase my questions about the `<radial-size>` extension in CSS Images 4. As noted in the comments above, it would be great if the restriction to a single component value for `circle()` and a `circle` gradient shape could be hardcoded into the syntax. Before this extension: - `circle()` could be specified with one `<radial-extent>` (restricted to `*-side`) or `<length-percentage>` - a `circle` gradient shape could be specified with one `<radial-extent>` or `<length>` - `ellipse()` could be specified with two `<radial-extent>`s (restricted to `*-side`) or `<length-percentage>`s - a `ellipse` gradient shape could be specified with one `<radial-extent>` or two `<length-percentage>`s Now: - `circle()` and `circle` gradient shape can be specified with one `<radial-extent>` or `<length-percentage>` - `ellipse()` and `ellipse` gradient shape can be specified with one or two `<radial-extent>`s or `<lenth-percentage>`s (possibly mixed, cf. #9729) Now for `ellipse()` and `ellipse` gradient shape, reading #824, it is not clear whether accepting a single component value was intentional, what the default value (if any) of the second component value and the shortest serialization should be when omitted. I suspect it should default to the first component value, except when the first is `*-corner`. Since a single `<length>` (or `<percentage>`, presumably) indicates a `circle` gradient shape, how would you serialize `ellipse 1px` or `ellipse 1px 1px`: 1. `ellipse 1px` 2. `1px 1px` Or maybe it is fine to serialize `1px`? Would it mean that `ellipse(1px)` should serialize as `circle(1px)`? -- GitHub Notification of comment by cdoublev Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10812#issuecomment-2325997811 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 3 September 2024 09:11:05 UTC