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

Here's a related issue describing a problem that would need to be solved for `ComputedStyleObserver` (and any other new observers) if it (they) ever become reality (f.e. [`BoundingClientRectObserver`](https://github.com/whatwg/html/issues/9104)):

- https://github.com/w3c/csswg-drafts/issues/9717

The more of these we add (which I think would be super useful) the more this problem will become pronounced.

Adding `takeRecords` and `hasRecords` to **_all_** `*Observer` APIs would help and would be useful.

Alternatively [`requestFinalFrame` (or `requestPaintFrame` or some similar named API)](https://github.com/whatwg/html/issues/9721) would help solve the problem.

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


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

Received on Sunday, 17 December 2023 22:08:51 UTC