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

[CSSOM View] Units for window.screen

From: Henri Sivonen <hsivonen@iki.fi>
Date: Wed, 26 Sep 2012 09:37:37 +0300
Message-ID: <CAJQvAueBXUrHTawfn6Ak-fSFw1R99zG8UfTPmtscfnpzYTVvzQ@mail.gmail.com>
To: www-style@w3.org
According to http://mpulp.mobi/labs/ppk/widthtest_vpdevice.html and
http://www.quirksmode.org/m/tests/widthtest_vpdevice.html (be sure to
test both; see http://www.quirksmode.org/blog/archives/2012/09/apples_mobi_ins.html
) as tested on Galaxy Nexus/JB, Firefox (tested Nightly), Chrome,
Opera Mobile and Android stock all make window.screen.width and
.height return in device pixels. The spec says the unit should be CSS

I don’t have iDevices here, but this is worth testing in Safari on
retina iPad&iPhone. If Safari agrees with the browsers available for
Android, perhaps the spec should accept this oddity instead of trying
to change it. (I don’t know what the screen stuff is good for
anyway—it’s the viewport that should matter to Web developers.)

Henri Sivonen
Received on Wednesday, 26 September 2012 06:38:05 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:04 UTC