From ec435e7a7fce6b943ce088a43d2ef95a0b9cce0e Mon Sep 17 00:00:00 2001 From: Noam Rosenthal Date: Wed, 9 Dec 2020 20:43:59 +0200 Subject: [PATCH] Allow <> --- css-shapes-2/Overview.bs | 49 +++++++++++++++++++++++++--------------- 1 file changed, 31 insertions(+), 18 deletions(-) diff --git a/css-shapes-2/Overview.bs b/css-shapes-2/Overview.bs index 91b8cdd852e4..ef142b15821f 100644 --- a/css-shapes-2/Overview.bs +++ b/css-shapes-2/Overview.bs @@ -170,13 +170,12 @@ Supported Shapes
-				shape() = shape( [<>]? from <>, <>#)
+				shape() = shape( [<>]? from <>, <>#)
 			
  • - The <> represents the starting point for the first draw-command, - in physical coordinates. + The <> represents the starting point for the first draw-command.
  • The sequence of <>s represent commands of an SVG Path. @@ -187,41 +186,55 @@ Supported Shapes
    <> = <>{2} -
    Defines a pair of coordinates x & y. - -
    <> = <> | <> | <> | - <> | <> | <> | close
    - Defines a single draw command, equivalent to an SVG draw command. -
    <> = by | to + Defines a pair of coordinates x & y. +
    <> = by <> | to <>
    - Represents the reference from which offsets are computed in <>s. + Defines the end coordinates of a shape command. When ''to'' is present, the coordinates are relative to the top-left origin of the reference box. Otherwise ''by'' is present, the coordinates are relative to the end position of the previous command. Note: <> values are always computed relative to the reference box regardless of how offsets are computed. + +
    <> = by <> | to <> +
    + Represents the reference from which offsets are computed in <>s. +
    <> = <> | <> | <> | + <> | <> | <> | <> | close
    + Defines a single draw command, equivalent to an SVG draw command. -
    <> = move <> <> +
    <> = move <>
    Corresponds to a moveto command. -
    <> = line <> <> +
    <> = line <>
    Corresponds to a lineto command. If '''x''' or '''y''' are present instead of a <>, the line will be horizontal or vertical, respectively. -
    <> = [hline | vline] <> <> +
    <> = hline [[by <>] | [to [<> | left | center | right]]] +
    + Corresponds to a horizontal or lineto command. + + The coordinates are computed in the same manner as <>. +
    <> = vline [[by <>] | [to [<> | top | center | bottom]]]
    - Corresponds to a horizontal or vertical lineto command. -
    <> = curve <> <> via <>{1,2} + Corresponds to a vertical lineto command. + + The coordinates are computed in the same manner as <>. +
    <> = curve [[to <> via <>{1,2}] | [by <> via <>{1, 2}]]
    - Corresponds to a quadratic curve command if one <> is provided, + Corresponds to a quadratic curve command if one set of coordinats is provided, otherwise corresponds to a cubic curve command. -
    <> = smooth <> <> [via <>]? + + The coordinates are computed in the same manner as <>. +
    <> = smooth [[to <> [via <>]?] | [[by <> [via <>]?]]
    Corresponds to a smooth cubic curve command if a second <> is provided, otherwise corresponds to a smooth quadratic curve command. -
    <> = arc [<> <> <> || <> || <> || <>] + + The coordinates are computed in the same manner as <>. +
    <> = arc [<> || <> || <> || <> || <>]
    Corresponds to an arc command.
    <> = of <>{1, 2}