W3C home > Mailing lists > Public > public-css-archive@w3.org > March 2019

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

From: Greg Whitworth via GitHub <sysbot+gh@w3.org>
Date: Fri, 01 Mar 2019 05:40:50 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-468549603-1551418849-sysbot+gh@w3.org>
@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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:44 UTC