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

Re: [csswg-drafts] [cssom-view] Add pageZoomFactor to window interface (#3538)

From: Xidorn Quan via GitHub <sysbot+gh@w3.org>
Date: Tue, 05 Feb 2019 08:48:16 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-460557131-1549356494-sysbot+gh@w3.org>
> nope, we currently have decided to counteract. The reason is we render boxes which should be closable and there can be cases when box in user zoomed page can grow too big and hide close button. Also we do not want our boxes to be rendered too small. The solution is to detect browser zoom and apply correction to our boxes keeping them visually constant, desired size.

How is a large zoom different from user changing their window to a smaller size that your box would simply overflow? As I mentioned above, I believe sites should just be responsive to the viewport size, regardless of it being from zooming or window resizing. Am I missing something?

> I do not try to rely on zoom property, but to render content in iframe i _must_ apply the equal zoom into iframe content. Otherwise main page content and iframe content are zoomed diferently.
> Correct, browser zooming is like matrix transform, everything is scaled. But CSS zoom acts only for current window context.

So why do you use `zoom` at the first place?

GitHub Notification of comment by upsuper
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3538#issuecomment-460557131 using your GitHub account
Received on Tuesday, 5 February 2019 08:48:17 UTC

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