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

Re: [css-variables] Serialization of custom properties vs. comments

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 10 Jun 2013 08:05:20 -0700
Message-ID: <CAAWBYDAbMewiZ_ph38uWtncQvwnQQm_tqaUr-G-U083e+gBvig@mail.gmail.com>
To: Simon Sapin <simon.sapin@exyr.org>
Cc: www-style list <www-style@w3.org>
On Sun, Jun 9, 2013 at 6:44 AM, Simon Sapin <simon.sapin@exyr.org> wrote:
> Hi,
> I think that section 4.1.1 Serializing Custom Properties should require that
> the serialization "round-trips". That is, tokenizing it again should give
> the same sequence of tokens.
> In particular, this requires either preserving all CSS comments and their
> position when parsing, or inserting comments during serialization between
> "problematic" pairs of of tokens. For example, the following tokenizes as
> two consecutive identifiers without intervening whitespace:
>     solid/**/green
> They would become a single identifier if serialized naively.
> Syntax 3 has a Serialization section about this:
> http://dev.w3.org/csswg/css-syntax/#serialization

I'm just going to explicitly lean on Syntax the moment that gets
approved as FPWD.  It's not worth pretending this is a separate
document and duplicating anything from it.

Received on Monday, 10 June 2013 15:06:07 UTC

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