Here’s something nice by @matthewp built on top of all this: a Selector Matcher Observer powered by CSSStyleObserver.
When the element matches the given selector, a custom property gets flipped, triggering the callback attached to the CSSStyleObserver.
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/
[^2]: https://github.com/WebKit/WebKit/pull/33061