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

Re: [mediaqueries4][css3-conditional] Whitespace: "and(" vs. "and ("

From: Florian Rivoal <florian@rivoal.net>
Date: Sun, 02 Jun 2013 10:23:07 +0200
To: www-style@w3.org
Message-ID: <op.wx1lktpuf5de51@riboaru-nashiosamus-imac-2.local>
On Sun, 02 Jun 2013 07:43:02 +0200, Simon Sapin <simon.sapin@exyr.org>  

> Le 04/10/2012 07:30, Tab Atkins Jr. a écrit :
>> Whitespace is not actually required there.  The following is valid:
>> @media all and/*wooo!*/(color) { ... }
> We changed @supports to require whitespace, so that the spec is less  
> misleading. (Since the tokenizer is not in the same spec, a reader might  
> not know about function tokens and expect "and(" to be valid.)
> http://lists.w3.org/Archives/Public/www-style/2012Dec/0330.html
> But this issue still exists in Media Queries. Should we make the same  
> change in MQ4?

Were we to design it from scratch, I would be in favor of this, but as this
has been in the wild for quite some time, we now have to deal with  
I suspect this kind of comment between "and" and the opening parenthesis  
is pretty
rare, so that might be ok, but still, making correct style sheets  
incorrect is
not something we should do without careful consideration.

  - Florian
Received on Sunday, 2 June 2013 08:23:42 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:30 UTC