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

Re: [css3-mediaqueries] Media query "em" example contradicts normative prose

From: Rune Lillesveen <rune@opera.com>
Date: Fri, 10 Feb 2012 10:58:26 +0100
To: www-style@w3.org
Message-ID: <op.v9gjbohk8isf1p@id-c1005.oslo.osa>
On Fri, 10 Feb 2012 03:22:18 +0100, Boris Zbarsky <bzbarsky@mit.edu> wrote:

> Section 6 says:
>
>    Relative units in media queries are based on the initial value. For
>    example, in HTML, the ‘em’ unit is relative to the initial value of
>    ‘font-size’.
>
> while example 25 in section 4.1 says:
>
>    The ‘em’ value is relative to the font size of the root element.
>
> I believe the normative prose is correct and the example is wrong.

Yes.

> Furthermore, I think it would be good to add an example that shows that
> "rem" is also based on the initial value of 'font-size' in media queries.

-- 
Rune Lillesveen
Layout Group Manager
Core Technology Department
Opera Software ASA
Received on Friday, 10 February 2012 09:58:58 GMT

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