W3C home > Mailing lists > Public > www-style@w3.org > October 2012

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 3 Oct 2012 17:38:47 -0700
Message-ID: <CAAWBYDBOtNy2-A_NED1H2fJ=C52F3RjbE1KMVRoftegvFbEGUQ@mail.gmail.com>
To: Bjoern Hoehrmann <derhoermi@gmx.net>
Cc: Simon Sapin <simon.sapin@kozea.fr>, www-style@w3.org
On Wed, Oct 3, 2012 at 5:33 PM, Bjoern Hoehrmann <derhoermi@gmx.net> wrote:
> * Tab Atkins Jr. wrote:
>>On Wed, Oct 3, 2012 at 3:49 PM, Simon Sapin <simon.sapin@kozea.fr> wrote:
>>> Le 04/10/2012 00:30, Tab Atkins Jr. a écrit :
>>>> This is why, sadly, we need to preserve comments in the tokenizer.
>>>
>>> What do you mean by preserve? Even if the tokenizer eats comments, the
>>> tokens here should still be IDENT '(' rather then FUNCTION.
>>
>>If it eats comments, it doesn't know how to re-serialize unless it's
>>context-aware.  (It can't just put whitespace between every token,
>>because that might change the meaning of e.g. a selector.)
>
> Not white space, but comments can be added like that.

Yes, you could theoretically throw out comment tokens (but keep
whitespace) and then insert comment tokens between every single token
when serializing.  Nobody does that or will ever do that, though.

Or are you trying to say something else?

~TJ
Received on Thursday, 4 October 2012 00:39:34 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:01 GMT