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

Re: [csswg-drafts] [css-shapes-2] WIP: Add a draw() shape syntax, which accepts shape-segments equivalent to (#5711)

From: Noam Rosenthal via GitHub <sysbot+gh@w3.org>
Date: Fri, 13 Nov 2020 19:27:13 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-726988798-1605295632-sysbot+gh@w3.org>
> Looks nice! I like the by/to distinction, seems like a reasonable way to handle the rel/abs distinction.
> 
> The only thing I don't like is the `horizontal`/`vertical` keywords, because they're so long; it's shorter to just type `line 0 X` instead of `vertical X`. I think we can get away with just shortening those to `h` and `v`.

The thing is that with absolute coordinates, `line to X 0` is not the same as `horizontal to X`. 
I was thinking as an alternative to use the `auto` keyword (`line to X auto` and `line to auto Y`). WDYT?

Something about the one-character EBNF feels less readable to me, but maybe just for h/v it's OK.

-- 
GitHub Notification of comment by noamr
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/pull/5711#issuecomment-726988798 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 13 November 2020 19:27:14 UTC

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