Re: [csswg-drafts] [css-shapes-2] Order of points and control points in `shape()` (#10666)

@smfr I think I've reached  a similar but slightly different conclusion. 
I think it's important to have `by` or `to` before the control points, but also it makes more sense to have the control points before the final point.

What do you think of https://github.com/w3c/csswg-drafts/issues/10644#issuecomment-2261027738?
Basically it's ordered, but the control points come first, and you can swap from `by` to `to` at any point. 
```
clip-path: shape(from top left,
  hline by 100px,
  curve by 100px 50px / to right bottom,
  curve by 50px 50px / 10% 20% / var(--x) var(--y),
  curve by 50px 50px / 10% 20% / to bottom 50%,
  smooth to bottom left / 0 0,
)
```

We can play with the exact syntax/separators.
This also allows using `position` in control points without losing the flexibility of `by`.

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


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

Received on Friday, 2 August 2024 07:37:08 UTC