Re: [csswg-drafts] [css-shapes-2] Minor comments on shape() (#5841)

Another comment: the `from` parameter to `shape()` is specified as a `coordinate-pair`, but that doesn't seem to allow keywords like `top left` which is natural for the "from" point, which is always absolute. Maybe a `<position>` here would be better?

Similarly, you can't use `<position>` arguments to the various commands; maybe allow, and if we encounter a `<position>` keyword it's an error if it's not a `to` point? This would enable very natural shapes like `shape(from center top,  line to right center, line to center bottom, line to left center, close)`.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 30 July 2024 00:38:50 UTC