Re: CSSOM & browser scaling / zoom

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 UTC