Re: [csswg-drafts] [css-images] Mesh gradient / Freeform gradient (#7648)

> @JoshTumath already provided an example for a more simplistic approach.
> I assume that would restrict the interpolation between the color stops to be linear, though that probably already covers a lot of use cases.
> And the syntax could still be extended in the future to allow Coons Patches if required.

If we're going to define a 2D gradient syntax I would rather we do it once, in such a way that it covers the options. Make the simple things easy, and the difficult things possible.

So, fond as I am of CSS, I'm not sure it's the right place for this. There are all sort of interesting uses 2D gradients and the end result of all of them is going to be a very large function with hundreds of arguments. CSS tooling isn't designed for these - they're going to be impossible to prototype, edit or understand by hand.

If a concept requires structure to usefully represent it then we should start with a structured container, like XML (in the form of SVG), rather than trying to force it into a function where it will be a very long list of numbers.

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


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

Received on Friday, 26 August 2022 13:53:40 UTC