Extra shout-out to @jaffathecake as well, for suggesting “some of the discrete value animation stuff” could possibly be used …
https://github.com/w3c/csswg-drafts/issues/8982#issuecomment-2317203434
Top-level
Extra shout-out to @jaffathecake as well, for suggesting “some of the discrete value animation stuff” could possibly be used … https://github.com/w3c/csswg-drafts/issues/8982#issuecomment-2317203434 5 comments
UPDATE: Jake found a workaround to bypass that Chrome bug: register the custom property with @property. That works. But … Safari doesn’t like it. It seems to be stuck in a transition loop when the custom props is registered to contain string values ("<string>" or "*") 😕 Yesterday I collected all bugs I could find related to `transition-behavior: allow-discrete` onto a dedicated repo/site [^1] and also filed a bunch bugs. The WebKit team at Apple didn’t waste any time and moved really fast on this one, as the PR to fix the WebKit bugs [^2] is already merged in! 🤩👏 [^1]: https://allow-discrete-bugs.netlify.app/ |
Winging back to the Chrome bug I mentioned, here’s the issue: `allow-discrete` erroneously does not work on custom properties – https://issues.chromium.org/issues/360159391
There technically is a workaround for it (by animating `content`) but I haven’t been able to consistently make it work.
Gonna see who I can poke internally to get the ball rolling on it ;)