W3C home > Mailing lists > Public > www-style@w3.org > September 2009

Re: CSSOM & browser scaling / zoom

From: Robert O'Callahan <robert@ocallahan.org>
Date: Wed, 30 Sep 2009 06:00:50 +1000
Message-ID: <11e306600909291300i288c7fd9u37ebc5764fe2bb9@mail.gmail.com>
To: Anne van Kesteren <annevk@opera.com>
Cc: CSS WG <www-style@w3.org>
On Tue, Sep 29, 2009 at 10:30 PM, Anne van Kesteren <annevk@opera.com>wrote:

> ------- Forwarded message -------
> From: "Jake Archibald" <jaffathecake@gmail.com>
>
...

> One inconsistency is in measuring the window size. Eg, Webkit gives
> (screenPixels / zoom), meaning the reported window size shrinks as the
> zoom is increased. Firefox on the other hand gives actualWindowSize
> (although I'm told it behaves like Webkit on a mac).
>
> I'm not sure what the standard should be, but there should be one.
> Perhaps Firefox is right as the document is zoomed rather than the
> window, so values attached to window should be agnostic of zoom.
>

I believe all measurements including window.outerWidth/Height etc should be
reported in CSS pixels, i.e. dividing device pixels by the zoom factor. I
actually don't know of any testcases where Gecko fails to do this, but if
there are any, it's our bug.

Rob
-- 
"He was pierced for our transgressions, he was crushed for our iniquities;
the punishment that brought us peace was upon him, and by his wounds we are
healed. We all, like sheep, have gone astray, each of us has turned to his
own way; and the LORD has laid on him the iniquity of us all." [Isaiah
53:5-6]
Received on Tuesday, 29 September 2009 20:01:30 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:21 GMT