- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Wed, 3 Oct 2012 15:30:02 -0700
- To: Simon Sapin <simon.sapin@kozea.fr>
- Cc: www-style@w3.org
On Wed, Oct 3, 2012 at 3:05 PM, Simon Sapin <simon.sapin@kozea.fr> wrote:
>> The following is an malformed media query because having no space
>> between ‘and’ and the expression is not allowed. (That is reserved
>> for the functional notation syntax.)
>>
>> @media all and(color) { … }
>
>
> but the relevant grammar is "AND S* expression". Should the grammar be
> changed to "AND S+ expression" to capture in normative spec that some
> whitespace is required there?
>
> Whatever we decide here should also apply to css3-conditional’s 'and', 'or',
> and 'not' operators. (ie: can they be functions?)
Whitespace is not actually required there. The following is valid:
@media all and/*wooo!*/(color) { ... }
This is why, sadly, we need to preserve comments in the tokenizer.
~TJ
Received on Wednesday, 3 October 2012 22:30:49 UTC