Re: [csswg-drafts] [resize-observer] devicePixelContentBoxSize is always present in ResizeObserverEntry whether or not it's being observed (#6608)

> because devicePixelContentBoxSize is always present in ResizeObserverEntry, whether or not it's 
> being observed, then the UA has to compute it on every callback anyway.

Chrome's implementation computes devicePixelContentBoxSize only when reporting new sizes, and the cost of computation is negligible.

If computing `device-pixel-content-box` on Safari is costly, it sounds reasonable to make devicePixelContentBoxSize optional.

I am no longer working on ResizeObserver, I think v2 was completed by msft team.

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


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

Received on Monday, 13 September 2021 22:10:26 UTC