From 6ad3fe976eb5001016c1627ad1810eea6a45ff6f Mon Sep 17 00:00:00 2001 From: Noam Rosenthal Date: Mon, 15 Jan 2024 13:22:41 +0000 Subject: [PATCH] [css-shapes-2]: `shape()`: using instead of via, allow any order in arcs/curves Closes #5841 --- css-shapes-2/Overview.bs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/css-shapes-2/Overview.bs b/css-shapes-2/Overview.bs index 326c3a73c19..bfa2631bb7e 100644 --- a/css-shapes-2/Overview.bs +++ b/css-shapes-2/Overview.bs @@ -168,10 +168,10 @@ The ''shape()'' Function <> = move <> <> <> = line <> <> <> = [hline | vline] <> <> - <> = curve <> <> via <>{1,2} - <> = smooth <> <> [via <>]? - <> = arc <> <> of <>{1,2} - [ <> || <> || rotate <> ]? + <> = curve [<> <> using <>{1,2}] + <> = smooth [[<> <>] || [using <>]?] + <> = arc [[<> <>] || [of <>{1,2}] || + <>? || <>? || [rotate <>]?] <> = cw | ccw <> = large | small @@ -227,23 +227,23 @@ The ''shape()'' Function of the <>, and the other component specified appropriately to make the line horizontal or vertical. -
<> = curve <> <> via <>{1,2} +
<> = curve [[<> <>] || [using <>{1,2}]]
Adds a Bézier curve command to the list of path data commands, ending at the point specified by the first <>. - The via component specifies control points for the curve: + The using component specifies control points for the curve: if a single <> is provided, the command specifies a quadratic curve; if two <>s are provided, it specifies a cubic curve. -
<> = smooth <> <> [via <>]? +
<> = smooth [[<> <>] || [using <>]?]
Adds a smooth Bézier curve command to the list of path data commands, ending at the point specified by the first <>. - The via component specifies control points for the curve: + The using component specifies control points for the curve: if it's omitted, the command specifies a smooth quadratic curve; if it's provided, @@ -258,7 +258,7 @@ The ''shape()'' Function so the curve appears to smoothly continue from the previous command, rather than possibly making a sudden direction change. -
<> = arc <> <> of <>{1,2} [ <> || <> || rotate <> ] +
<> = arc [[<> <>] || [of <>{1,2}] || <>? || <>?|| rotate <>? ]
Add an elliptical arc command to the list of path data commands,