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

@kenrussell I don't believe that's what @dbaron was meaning. Yes pixel snapping occurs and this will vary by browser as it isn't specified anywhere, nor is subpixel rounding. What David was getting at is when pixel snapping is done and if it includes transforms or not, Chromium does not include transforms - thus if the element is transformed the dimensions snapped may be incorrect if it's a position+size altering transform as it will result in different rounding which isn't observed by ResizeObserver which primarily captures Layout adjustments.

That said, while `device-pixel-border-box` is not currently in the spec, this issue is to work out how to go about it and what the tradeoffs are. 

So to put it another way, **are you ok with that tradeoff, being able to get device pixels in the general case but some authors may not if they apply certain transforms?**

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

Received on Friday, 1 March 2019 05:40:51 UTC