W3C home > Mailing lists > Public > site-comments@w3.org > November 2014

Re: Screen pixel density.

From: Dominique Hazael-Massieux <dom@w3.org>
Date: Mon, 24 Nov 2014 09:43:16 +0100
Message-ID: <1416818596.14020.3.camel@w3.org>
To: /#!/JoePea <trusktr@gmail.com>
Cc: site-comments@w3.org
Hi Joe,

Le dimanche 23 novembre 2014 à 18:37 -0800, /#!/JoePea a écrit :
> There's something important missing in web development: window.screen
> does not contain the screen's hardware pixel density.

window.devicePixelRatio is probably what you need here, see:
https://developer.mozilla.org/en-US/docs/Web/API/Window.devicePixelRatio

If it's not, I suggest making your case as to why it's needed and why
the current data isn't sufficient on http://discourse.specifiction.org/

Thanks,

Dom
Received on Monday, 24 November 2014 08:43:32 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:52:45 UTC