If we actually get @function working, I'm already dreading the mess of trying to track down why a specific gradient is broken in some obscure layer. Imagine trying to debug this:
@function --gradient-to-transparent(--color, --direction: bottom) { result: linear-gradient(to var(--direction), var(--color), transparent);}It's basically
JavaScript in disguise and I'm not sure my brain is ready for that level of abstraction in a stylesheet.
more here:
https://www.joshwcomeau.com/css/interop-2027/