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

Re: [CSSOM View] Units for window.screen

From: Simon Pieters <simonp@opera.com>
Date: Fri, 06 Sep 2013 16:22:09 +0200
To: "Robert O'Callahan" <robert@ocallahan.org>
Cc: "Henri Sivonen" <hsivonen@iki.fi>, "WWW Style" <www-style@w3.org>, "Kang-Hao (Kenny) Lu" <kanghaol@oupeng.com>
Message-ID: <op.w2zt67i1idj3kv@simons-macbook-pro.local>
On Fri, 06 Sep 2013 15:52:01 +0200, Robert O'Callahan  
<robert@ocallahan.org> wrote:

>> On the other hand, changing screen.width when the user zooms seems  
>> wrong.
>>
>
> Why?
>
> "CSS pixels at 100% zoom" doesn't seem all that useful to me. The page
> can't size anything in those units. All it can work with is CSS pixels  
> with
> the current zoom.

It can size popup windows which use the same unit. Things that are sized  
in CSS pixels have no use of the screen's width.

I think some browsers use this unit for <meta viewport> and  
devicePixelRatio as well, though I haven't checked how that's specced.

-- 
Simon Pieters
Opera Software
Received on Friday, 6 September 2013 14:15:42 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:34 UTC