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

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