Re: [mediaqueries] calc() and other syntax restrictions

Le 05/05/2013 08:33, Gunther Pilz a écrit :
>> That said, I’m always in favor of clarification in specs. And calc() is indeed
>> not very useful in MQs, since eg. the em unit is based on the initial
>> font-size and not one from a stylesheet.
> Sorry, but here I have to disagree! In RWD it is essential to use em unit and
> therefor it would also be quite important to ensure that an author may stack his
> MQ rules, no matter what the user has set his basic font size to.
> This could only be achieved by using the calc() syntax.

Ok, I didn’t think of user settings for the initial font size. And you 
seem to be aware that 1em in MQs will not account for any font-size set 
in a stylesheet, even on the root element.


> And beside of the question if it is useful or not - if the spec allows for it,
> it should be supported!
> So it is not a topic for this list, but rather one for the browser vendors.

Well, specs can always be changed when they don’t say what we want. 
("We" being the working group, by consensus.) But in this case I agree. 
Feel free to report bugs on browsers.

-- 
Simon Sapin

Received on Sunday, 5 May 2013 07:33:55 UTC