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

> 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