Skip to content

Commit

Permalink
[css-shapes-2] Match shape() main syntax with command-specific synt…
Browse files Browse the repository at this point in the history
…ax (#11488)

* [css-shapes-2] Match main syntax with command-specific syntax

Closes #11368

* Fix radius

* nits
  • Loading branch information
noamr authored Jan 13, 2025
1 parent cd59f76 commit ddcbffd
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions css-shapes-2/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -185,14 +185,14 @@ The ''shape()'' Function</h4>
[ to [ <<length-percentage>> | top | center | bottom | y-start | y-end ]
| by <<length-percentage>> ]
<<curve-command>> = curve
[ [ to <<position>> && [ with <<control-point>> [ / <<control-point>> ]? ] ]
| [ by <<coordinate-pair>> && [ with <<relative-control-point>> [ / <<relative-control-point>> ]? ] ] ]
[ [ to <<position>> with <<control-point>> [ / <<control-point>> ]? ]
| [ by <<coordinate-pair>> with <<relative-control-point>> [ / <<relative-control-point>> ]? ] ]
<<smooth-command>> = smooth
[ [ to <<position>> && [ with <<control-point>> ]? ]
| [ by <<coordinate-pair>> && [ with <<relative-control-point>> ]? ] ]
<<arc-command>> = arc [ <<command-end-point>>
&& [ of <<coordinate-pair>> ]
&& <<arc-sweep>>? && <<arc-size>>? && [rotate <<angle>>]? ]
[ [ to <<position>> [ with <<control-point>> ]? ]
| [ by <<coordinate-pair>> [ with <<relative-control-point>> ]? ] ]
<<arc-command>> = arc <<command-end-point>>
[ [ of <<length-percentage>>{1,2} ]
&& <<arc-sweep>>? && <<arc-size>>? && [rotate <<angle>>]? ]
<<command-end-point>> = [ to <<position>> | by <<coordinate-pair>> ]
<<control-point>> = [ <<position>> | <<relative-control-point>> ]
Expand Down Expand Up @@ -318,7 +318,7 @@ The ''shape()'' Function</h4>
the command's starting point, the command's end point, or the [=reference box=], respectively.
If such component is not provided, the <<coordinate-pair>> is relative to the segment's start.

<dt><dfn><<arc-command>></dfn> = <dfn value>arc</dfn> <<command-end-point>> [[of <<length-percentage>>{1,2}] || <<arc-sweep>>? || <<arc-size>>?|| rotate <<angle>>? ]
<dt><dfn><<arc-command>></dfn> = <dfn value>arc</dfn> <<command-end-point>> [[of <<length-percentage>>{1,2}] && <<arc-sweep>>? && <<arc-size>>? && rotate <<angle>>? ]
<dd>
Add an <a href="https://www.w3.org/TR/SVG/paths.html#PathDataEllipticalArcCommands">elliptical arc</a> command
to the list of path data commands,
Expand Down

0 comments on commit ddcbffd

Please sign in to comment.