W3C home > Mailing lists > Public > public-css-testsuite@w3.org > November 2010

Re: invalid comments among declaration blocks

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Fri, 12 Nov 2010 04:17:26 +0100
To: Alan Gresley <alan@css-class.com>
Cc: CSS-testsuite <public-css-testsuite@w3.org>
Message-ID: <p8cpd6tjsijeqdjfq7i77d5p3vnmlomp90@hive.bjoern.hoehrmann.de>
* Alan Gresley wrote:
>Hello all,
>
>What should happen here?

>.test1 { background: lime; }
>/* .test2 { background: red; } /* css comment */
>.test3 { background: blue; } */

Due to the second "/*" you don't have a comment token starting with the
first "/*", so that is read as two delims which are allowed at that pos-
ition. After the ruleset you have a comment and another ruleset and then
again two delims. So this is the same as, say,

  .test1 { background: lime; }
  $$ .test2 { background: red; } /* css comment */
  .test3 { background: blue; } $$
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Friday, 12 November 2010 03:18:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 12 November 2010 03:18:11 GMT