W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2020

Re: [csswg-drafts] [css-values-4] Clarify how and when the initial containing block and visual viewport may deviate (#5777)

From: mind-bending-forks via GitHub <sysbot+gh@w3.org>
Date: Sat, 12 Dec 2020 01:39:30 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-743608991-1607737169-sysbot+gh@w3.org>
> > > * You say it _doesn't_ ever change size in response to pinch-zoom.
> > 
> > 
> > It depends on your frame of reference :)
> > Pinch-zooming changes the ratio of CSS pixels to screen pixels. The ICB size remains constant _in CSS pixels_, and varies _in screen pixels_, as you pinch-zoom.
> Thanks @theres-waldo. Wow! I didn't realise I'd need to be Einstein to get my head around positioning a few rectangles grinning That's a lot of degrees of freedom for my brain to cope with, so please give me some time to digest that.

OK. I read [an understanding css units tutorial](https://webplatform.github.io/docs/tutorials/understanding-css-units/) and that has helped clear it up for me. I was thinking of changes in size relative to the device/real world. On pinch-zoom on mobile, the ICB expands in terms of physical size (device/screen pixels or inches), but is constant in CSS px as you say. So, `1px = x/96 in`, where `x` is the zoom factor.

GitHub Notification of comment by mind-bending-forks
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5777#issuecomment-743608991 using your GitHub account

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Saturday, 12 December 2020 01:39:31 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:24 UTC