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

>  Can you give a bit more detail on how debouncing this to the render steps would inevitably lead to changes being missed?

Because we end up once more in the race for "the closest to the painting" that trukstr implied to in https://github.com/w3c/csswg-drafts/issues/8982#issuecomment-1859299602 , and once more it won't take long before it's outraced by yet another API.
And also because it would at least miss the changes made by other observers, or even its own.

Firing in the actual recalc seems like the best place to me, moreover since it's generally already debounced anyway as you noted.

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


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

Received on Monday, 2 September 2024 12:34:50 UTC