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

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

From: Florian Rivoal via GitHub <sysbot+gh@w3.org>
Date: Mon, 30 May 2016 02:55:47 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-222402326-1464576946-sysbot+gh@w3.org>
The media query spec does have some generic phrasing:

> Relative length 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, defined by the user agent or the user’s 
preferences, not any styling on the page.

This seems sufficient, even for the units whose value normally depend 
on which element you compute them against, since properties at their 
initial value will give the same result on any element. We could add 
something about the root element, as that wouldn't be wrong, and might
 be clearer to some, but I don't think this would actually make any 
normative difference, so I am not sure it's a good idea.

As to whether the values and units spec should also say something, or 
whether it can rely on MQs dealing with it with the above phrasing, I 
have no strong opinion.

-- 
GitHub Notification of comment by frivoal
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/153#issuecomment-222402326 
using your GitHub account
Received on Monday, 30 May 2016 02:55:49 UTC

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