-
Notifications
You must be signed in to change notification settings - Fork 709
[css-shapes][css-images-3] <radial-size>
syntax seems incorrect
#10812
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
<radial-size>
syntax seems incorrect<radial-size>
syntax seems incorrect
Aha, I wasn't aware of the prose in that section. Thank you for finding this 🙇 Unfortunately we can't parse prose 😛
(Working on a CSS declaration linter that uses |
I closed #9730 in favor of this issue, to rephrase my questions about the As noted in the comments above, it would be great if the restriction to a single component value for Before this extension:
Now:
Now for I suspect it should default to the first component value, except when the first is Since a single
Or maybe it is fine to serialize |
Temporary implementation: - disallow mixing `*-corner` (w3c/csswg-drafts#10833) - allow mixing `<radial-extent>` and `<length-percentage>` (w3c/csswg-drafts#9729) - the second component value of `<radial-radius>` defaults to the first when omitted (w3c/csswg-drafts#10812) - serialize `ellipse 1px` as `1px` (the gradient shape becomes `circle`) - serialize `ellipse(1px)` as is (the basic shape does not become `circle()`)
https://drafts.csswg.org/css-images-3/#typedef-radial-size
This syntax does not allow this:
Despite that being the implemented feature: https://codepen.io/romainmenke/pen/PordyZx
I think this was a regression in #9723
Grouping it seems to resolve the issue:
But I am not that familiar with the feature, so my suggestion might be incorrect.
Edit:
The suggested edit would break
circle()
.I think that that might be the root cause.
That both
circle()
andellipse()
are defined with<radial-size>
while they should be different.This might work though:
https://drafts.csswg.org/css-images-3/#typedef-radial-size
https://drafts.csswg.org/css-shapes/#funcdef-basic-shape-ellipse
The text was updated successfully, but these errors were encountered: