Re: [csswg-drafts] [css-shapes-2] `curve to` keyword `using` seems a bit off (#10649)

Summary of the changes since we last discussed shape syntax in https://github.com/w3c/csswg-drafts/issues/5841#issuecomment-2260966191:

- Control points are introduced using `with` (we tried `using` and `via`) but `with` seems most reasonable).
- Two control points are separated by a slash: `curve to top left with 100px 200px / 20px 40px`
- `<position>` is allowed for points and control points that take absolute values, e.g. `line to top right` is valid, `line by top right` is not. `to` control points can also be `<positions>`: `curve to top right with top left / bottom right`.
- Similarly, `hline` and `vline` accept single axis position-like values: `hline to center`.
- Relative control points can be qualified with `from start` and `from end` to specify whether they are relative to the segment's start or end point.

Open questions:

- Should we allow arbitrary order of the point and control point parts? E.g., are both of these valid: `curve to top left with 100px 200px` and `curve with 100px 200px to top left`?

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


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

Received on Tuesday, 12 November 2024 23:21:53 UTC