- From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
- Date: Fri, 23 May 2025 22:55:44 +0000
- To: public-css-archive@w3.org
Okay, so just making sure I understand this proposal: * We start with a theoretical straight line stretching from the starting point to the ending point, with numeric values at those two points identified by the `from` and `to` values. * We evaluate the `with <expr>` (can just be a `with <calc-sum>`, fwiw) at "sufficient" points between the start/end value, letting the `x` calc-keyword resolve to the value at that point, and the result dictates how far away from the line the corresponding point should be. * Presumably the output value needs to resolve to a length? * All the points are connected as if by `line`, or maybe with a smoother function like `curve`. So I think your example would need to be: ``` shape( plot to x-end with sin(x)*5px from 0 to calc(2*pi) ) ``` I think this is potentially interesting, but do you have some examples of things that would be nicer to write like this? -- GitHub Notification of comment by tabatkins Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12224#issuecomment-2905984252 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 23 May 2025 22:55:45 UTC