Re: [csswg-drafts] [resize-observer] device-pixel-border-box size (#3554)

It should be sufficient for ResizeObserver to be eventually consistent, so a frame of latency would be acceptable, though it sounds like the spec doesn't presently allow this behavior.

FWIW, I'm playing with a pixel-pre-snapping resize: `canvas.style.width = canvas.width / window.devicePixelRatio`, which appears to work well on at least Windows. It does, of course, depend on an assumed pixel snapping behavior, which may be insufficient to work on all platforms. (But theoretically, the behavior seems sound for intuitive pixel snapping)

device-pixel-border-box does satisfy this use-case, but it seems incredibly specific. Perhaps it needs to be because of layout rules I'm not familiar with, but @dholbert indicated that this should work in at least some cases. I'm following up with our Painting/Compositing people.

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

Received on Tuesday, 21 May 2019 03:19:22 UTC