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

Re: [css3-mediaqueries] Re: Media queries using relative units

From: Brad Kemper <brad.kemper@gmail.com>
Date: Sun, 20 May 2012 08:10:11 -0700
Message-Id: <D81B1BD7-9922-4320-9139-E80C27EFFD71@gmail.com>
Cc: Maciej Stachowiak <mjs@apple.com>, Hugh Guiney <hugh.guiney@gmail.com>, www-style list <www-style@w3.org>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
On May 16, 2012, at 4:25 PM, "Tab Atkins Jr." <jackalmage@gmail.com> wrote:

> On Wed, May 16, 2012 at 4:11 PM, Maciej Stachowiak <mjs@apple.com> wrote:
>> On May 16, 2012, at 3:53 PM, Hugh Guiney <hugh.guiney@gmail.com> wrote:
>>> Not sure if this is already on your radar, but if you're working on
>>> relative-unit MQ parsing in WebKit, it would be awesome to see a fix
>>> for this bug along with it. :)
>>> https://bugs.webkit.org/show_bug.cgi?id=41063
>> 
>> By my reading of the Media Queries spec (in particular the statement below), this bug is invalid. The em unit used for media queries should be based on the initial value of font-size, which should not be affected by a user zoom operation. But I'm not a CSS expert so I might be misunderstanding. Clarification from folks who know more about media queries would be welcome.
> 
> 'zoom' (and its more insidious cousin, browser zoom) is completely
> unspecified within CSS. :/  So, there's no definite answer either way.
> (But I think browser zoom should indeed trigger that MQ, because the
> effective width of the window is shrinking due to larger pixels.)

The width as measured in CSS pixels is the same. Having a retina display doesn't change the width, so why should zoom?
Received on Sunday, 20 May 2012 15:10:46 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:54 GMT