W3C home > Mailing lists > Public > public-css-archive@w3.org > May 2016

[csswg-drafts] [css-values] Font-relative length definitions don't account for media query usage

From: Chris Rebert via GitHub <sysbot+gh@w3.org>
Date: Sun, 29 May 2016 05:01:09 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-157369468-1464498069-sysbot+gh@w3.org>
cvrebert has just created a new issue for 

== [css-values] Font-relative length definitions don't account for 
media query usage ==
(All emphases added)

> [...] the [font-relative 
refer to the font metrics of the **element on which they are used**.
> [...]
> <dl><dt><a href="https://drafts.csswg.org/css-values/#em">em 
> <dd>Equal to the computed value of the 'font-size' property of the 
<b>element on which it is used</b>.</dd></dl>

When using such font-relative lengths in a media query expression:
* The author isn't "using" the length "on" something, per se.
* In the most common case, the author is using the length in relation 
to the viewport, which isn't an *element*.

> <dl><dt><a href="https://drafts.csswg.org/css-values/#rem">rem 
> <dd>Equal to the <b>computed value</b> of font-size on the root 
element. When specified on the 'font-size' property [...]</dd></dl>

Media queries interpret `rem` differently; see 

The other font-relative unit definitions likewise don't seem to 
account for usage in media query expressions.

Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/153 using your GitHub 
Received on Sunday, 29 May 2016 05:01:11 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:40:58 UTC