Re: invalid comments among declaration blocks

* 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 UTC