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

Thank you for cleaning up my bad grammar!

>  I have to say it wasn't clear at all from a first reading that the `with` keyword is meant to indicate the control point(s).

We've been through `via`, `using` and `with`; it's hard to find a good name.

> And the meaning of the `start`, `end`, and `origin` keywords is also not clear to me yet.

These describe how to interpret the `<coordinate-pair>`. `start` means that the coordinates are offsets from the segment start, `end` means that the coordinates are offsets from the segment end. And `origin` means that they are relative to the origin of the reference box. These options allow for "point-anchored" control points, which is not possible in SVG, which only allows offsets from the origin (in absolute segments) and from the segment start (in relative segments).

> And it's also confusing that <to-control-point> can be a <relative-control-point>, as the to keyword always indicates an absolute point, right?

The `from start/end` qualifier on a control point allows the author to specify a start/end-relative offset even for a ` <to-control-point>`, which is an enhancement over SVG paths.

> Also, is it really valid to have multiple close commands an that they can appear in the middle of the command list and not just at the end

Yes, a shape can consist of multiple sub-paths.

For the `arc` syntax, `[ <arc-sweep> || <arc-size> || rotate <angle> ]` is wrong; all of these are optional, which is unchanged from the [existing draft](https://drafts.csswg.org/css-shapes-2/#typedef-shape-arc-command).

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


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

Received on Monday, 21 October 2024 04:04:29 UTC