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

Re: Media queries using relative units

From: Hugh Guiney <hugh.guiney@gmail.com>
Date: Wed, 16 May 2012 18:53:10 -0400
Message-ID: <CAEHyr+Z4Dvx87JcyJfFQoWG3=immoO5idSHFF7J0czO+uQ7=UQ@mail.gmail.com>
To: Maciej Stachowiak <mjs@apple.com>
Cc: www-style list <www-style@w3.org>
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

On Wed, May 16, 2012 at 4:54 PM, Maciej Stachowiak <mjs@apple.com> wrote:
>
>
> My mistake, this is defined in the Units section:
>
> "Relative units in media queries are based on the initial value, which means that units are never based on results of declarations. For example, in HTML, the ‘em’ unit is relative to the initial value of ‘font-size’."
>
>  - Maciej
>
> On May 16, 2012, at 1:42 PM, Maciej Stachowiak <mjs@apple.com> wrote:
>
>>
>> How are media queries using relative units supposed to be computed? The draft says:
>>
>> "The ‘em’ value is relative to the initial value of ‘font-size’."
>> <http://www.w3.org/TR/css3-mediaqueries/#width>
>>
>> However, this statement is contained in an example. So it's not clear if this is meant to be a normative requirement or a fact that happens to be true for some other (non-obvious) reason, and it's not clear if it applies to all uses of relative units or only the specific example.
>>
>> Regards,
>> Maciej
>>
>>
>
>
Received on Wednesday, 16 May 2012 22:54:00 GMT

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