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

Re: [mediaqueries] resolution and device-pixel-ratio

From: Dean Jackson <dino@apple.com>
Date: Thu, 14 Nov 2013 12:10:42 +0800
Cc: John Mellor <johnme@google.com>, Florian Rivoal <florian@rivoal.net>, "www-style@w3.org" <www-style@w3.org>
Message-id: <CAD2BA42-BF89-4094-8843-289FB8217858@apple.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>

On 14 Nov 2013, at 12:05 pm, Tab Atkins Jr. <jackalmage@gmail.com> wrote:

> On Wed, Nov 13, 2013 at 5:54 PM, Dean Jackson <dino@apple.com> wrote:
>> Related: the CSS WG resolved at its meeting two days ago that Apple will
>> make a proposal for something that covers the following issues:
>> 
>> - a definition for all the types of zooms
>> - the fixed number of device pixels to a CSS px at 1:1 zoom
>> - the value of zoom that maps how large a CSS px is now relative to the
>> natural scale (the one browsers do without changing the width of the
>> viewport)
>> - the "user" zoom factor (sometimes called pinch zoom), where everything
>> including the width of the viewport is scaled.
> 
> The zoom types (page and pinch) are already defined in CSSOM View.
> 
> The definition of .devicePixelRatio and the 'resolution' media feature
> are both defined to be the screen's resolution * the page zoom.

The issue isn't where CSS (or whatever) defined them. It's that Safari doesn't follow that definition, and is unlikely to change. This is the reason for proposing a new name.

(Yes, it's Apple's fault that we implemented something and didn't bring it to the standards groups with a clear description that the value was supposed to be constant)

Dean

> I support exposing the pinch zoom directly and/or through an MQ.
> 
> ~TJ
Received on Thursday, 14 November 2013 04:11:14 UTC

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