[css-houdini-drafts] ComputedStyleObserver? (#1010)

LeaVerou has just created a new issue for https://github.com/w3c/css-houdini-drafts:

== ComputedStyleObserver? ==
Just wanted to bring this WICG thread to the group's attention: https://discourse.wicg.io/t/observe-current-computed-style-changes-styleobserver/4879

I posted [my thoughts about use cases](https://discourse.wicg.io/t/observe-current-computed-style-changes-styleobserver/4879/4) there too.

Would something like this be implementable?
I believe (correct me if I'm mistaken) that UAs are not actually listening to changes, but inspecting dirty flags on repaint, which makes implementation for something like this tricky. Would it make it implementable if such an observer explicitly registered a list of elements that should be observed and fired when they are actually repainted, and not the moment the style change happens? I believe this would still cover most use cases.

Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/1010 using your GitHub account


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

Received on Tuesday, 13 October 2020 15:58:03 UTC