[resize-observer] devicePixelContentBoxSize is always present in ResizeObserverEntry whether or not it's being observed · Issue #6608 · w3c/csswg-drafts · GitHub
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The spec notes that observingdevice-pixel-content-box can be expensive because the UA has to compute it every time, but 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.
It would be better if the spec allowed devicePixelContentBoxSize to be optional, and only present when being observed.