W3C home > Mailing lists > Public > public-css-archive@w3.org > November 2020

Re: [csswg-drafts] [css-shapes] Find a way to create a polygon with rounded-corners and non-absolute coordinates (#5674)

From: Christoph Päper via GitHub <sysbot+gh@w3.org>
Date: Mon, 02 Nov 2020 09:00:33 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-720336277-1604307632-sysbot+gh@w3.org>
For what it's worth, I'd prefer to keep the [SVG `d` attribute syntax](https://www.w3.org/TR/SVG2/paths.html#PathData) with case-sensitive single-letter commands for verbatim dumps into `path(<string>)` and define the more CSSish keyword syntax as a new type, e.g.:

~~~~ ebnf
<complex-shape> ::= shape( [
    [[horizontal|vertical] [to|by] <<length-percentage>>+] |
    [[move|line] [to|by] <coordinate-pair>+] |
    [qurve [to|by] [<coordinate-pair> [via <coordinate-pair>]?]+] |
    [curve [to|by] [<coordinate-pair> [via <coordinate-pair>{1,2}]?]+] |
    [arc [to|by] [<coordinate-pair> [at <<length-percentage>>{1,2}] <<angle>>? large-arc? sweep?]+] |
  ]# );

<coordinate-pair> ::= <<length-percentage>>{2};

GitHub Notification of comment by Crissov
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5674#issuecomment-720336277 using your GitHub account

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 2 November 2020 09:00:35 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:22 UTC