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

Re: Behavior of device-pixel-ratio under zoom

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 14 Nov 2012 01:14:46 -0800
Message-ID: <50A36106.60309@mit.edu>
To: www-style@w3.org
On 11/13/12 6:02 PM, James Robinson wrote:
> Neither change
> window.devicePixelRatio - that's an artifact of the display and cannot
> be changed by user interaction.

How is it an artifact of the display?  It's a ratio of CSS pixels to 
device pixels; the display knows nothing about CSS pixels, and in fact 
"page zoom" in your terminology changes this ratio!

Received on Wednesday, 14 November 2012 09:15:23 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:21 UTC