Re: [csswg-drafts] [cssom] `ComputedStyleObserver` to observe changes in elements' computed styles (#8982)

Oh, Jake, that’s the clue I needed!

Here, a quick POC: https://codepen.io/bramus/pen/ZEdjjPw/1fa07805a7d6a6ea204decce87ee6705

I’m storing the value in `content`. Because `content` only accepts strings though, the value for `--observed` won’t make it into there. However, the `transitionstart` still fires because of `transition-behavior: allow-discrete`, so it’s possible to read `--observed` in the callback attached to it.


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


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

Received on Thursday, 29 August 2024 10:25:27 UTC