W3C home > Mailing lists > Public > www-style@w3.org > May 2013

Re: calc() in Media Queries (Was: [CSSWG] Minutes Telecon 2013-05-15)

From: Florian Rivoal <florian@rivoal.net>
Date: Fri, 17 May 2013 21:46:05 +0200
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: "www-style list" <www-style@w3.org>
Message-ID: <op.ww8ui31xf5de51@riboaru-nashiosamus-imac-2.local>
On Fri, 17 May 2013 21:40:08 +0200, Tab Atkins Jr. <jackalmage@gmail.com>

> On Fri, May 17, 2013 at 12:15 PM, Florian Rivoal <florian@rivoal.net>  
> wrote:
> Since V&U introduces calc by saying:
>>   "It can be used wherever <length>, <frequency>, <angle>, <time>,
>>   <number>, or <integer> values are allowed."
>> I suppose it just needs a clarification there, and no change is needed
>> in the MQ spec. Do we agree on that?
> Nothing needs to be changed anywhere - this resolution is just in line
> with what the specs already say.  MQ's token-based syntax just defers
> to "expr", which covers calc(), and the individual MQs use property
> grammar productions like <length>, which include the appropriate
> calc()s.

Right, this resolution is compatible with the specs as they are. At the
same time, while nothing is necessary strictly speaking, I do think a
note would be welcome. The fact that the WG had to debate it shows that
it is not entirely obvious, and both authors and implementors might
miss the implication. V&U seems the best host for this note.

    - Florian
Received on Friday, 17 May 2013 19:46:28 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:11 UTC