Skip to content

[css-shapes-2] Minor problems with the new <arc-command> #11368

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

Closed
cdoublev opened this issue Dec 13, 2024 · 1 comment · Fixed by #11488
Closed

[css-shapes-2] Minor problems with the new <arc-command> #11368

cdoublev opened this issue Dec 13, 2024 · 1 comment · Fixed by #11488

Comments

@cdoublev
Copy link
Collaborator

Its production requires specifying the size with two <length-percentage>:

<arc-command> = arc [ 
     <command-end-point>
  && [ of <coordinate-pair> ]
  && <arc-sweep>? 
  && <arc-size>? 
  && [rotate <angle>]? 
]
<coordinate-pair> = <length-percentage>{2}

But then its contextual definition has a different value definition and a prose that allows omitting the second component value:

<arc-command> = arc [[<by-to> <coordinate-pair>] || [of <length-percentage>{1,2}] || <arc-sweep>? || <arc-size>?|| rotate <angle>? ]

[...] The of component specifies the size of the ellipse that the arc is taken from. The first <length-percentage> provides the horizontal radius of the ellipse and the second provides the vertical radius. [...]

If only one <length-percentage> is provided, both radiuses use the provided value. In that case, <percentage> values are resolved against the direction-agnostic size of the reference box (similar to the circle() function).

@smfr
Copy link
Contributor

smfr commented Dec 13, 2024

cc @tabatkins who did the most recent edits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants