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

On Sun, 02 Jun 2013 07:43:02 +0200, Simon Sapin <simon.sapin@exyr.org>  
wrote:

> 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  
compatibility.
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