Skip to content

Commit ddcbffd

Browse files
authored
[css-shapes-2] Match shape() main syntax with command-specific syntax (#11488)
* [css-shapes-2] Match main syntax with command-specific syntax Closes #11368 * Fix radius * nits
1 parent cd59f76 commit ddcbffd

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

css-shapes-2/Overview.bs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -185,14 +185,14 @@ The ''shape()'' Function</h4>
185185
[ to [ <<length-percentage>> | top | center | bottom | y-start | y-end ]
186186
| by <<length-percentage>> ]
187187
<<curve-command>> = curve
188-
[ [ to <<position>> && [ with <<control-point>> [ / <<control-point>> ]? ] ]
189-
| [ by <<coordinate-pair>> && [ with <<relative-control-point>> [ / <<relative-control-point>> ]? ] ] ]
188+
[ [ to <<position>> with <<control-point>> [ / <<control-point>> ]? ]
189+
| [ by <<coordinate-pair>> with <<relative-control-point>> [ / <<relative-control-point>> ]? ] ]
190190
<<smooth-command>> = smooth
191-
[ [ to <<position>> && [ with <<control-point>> ]? ]
192-
| [ by <<coordinate-pair>> && [ with <<relative-control-point>> ]? ] ]
193-
<<arc-command>> = arc [ <<command-end-point>>
194-
&& [ of <<coordinate-pair>> ]
195-
&& <<arc-sweep>>? && <<arc-size>>? && [rotate <<angle>>]? ]
191+
[ [ to <<position>> [ with <<control-point>> ]? ]
192+
| [ by <<coordinate-pair>> [ with <<relative-control-point>> ]? ] ]
193+
<<arc-command>> = arc <<command-end-point>>
194+
[ [ of <<length-percentage>>{1,2} ]
195+
&& <<arc-sweep>>? && <<arc-size>>? && [rotate <<angle>>]? ]
196196
197197
<<command-end-point>> = [ to <<position>> | by <<coordinate-pair>> ]
198198
<<control-point>> = [ <<position>> | <<relative-control-point>> ]
@@ -318,7 +318,7 @@ The ''shape()'' Function</h4>
318318
the command's starting point, the command's end point, or the [=reference box=], respectively.
319319
If such component is not provided, the <<coordinate-pair>> is relative to the segment's start.
320320

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

0 commit comments

Comments
 (0)