[Bug 3313] Validator does not accept comments between tokens

http://www.w3.org/Bugs/Public/show_bug.cgi?id=3313

           Summary: Validator does not accept comments between tokens
           Product: CSSValidator
           Version: CSS Validator
          Platform: All
               URL: http://www.mit.edu/~cananian/tsE/
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: CSS 2.1
        AssignedTo: ot@w3.org
        ReportedBy: w3c@cscott.net
         QAContact: www-validator-cvs@w3.org


The CSS2.1 spec says that comments can appear between any two tokens.

In this CSS stylesheet:
  http://www.mit.edu/~cananian/tsE/stylesheet.css

The CSS validator complains about the context "ieMacOnly" which is the
following code (an unfortunately necessary workaround for an IE/Mac bug):

/* \*/ ieMacOnly /**/
* html #sidebar { position: absolute; top:175px; left:0; margin-left: 0; }

This should be parsed as the selector:

ieMacOnly * html #sidebar

but the CSS validator is choking on it.

(There's also some CSS which is *actually* invalid in that stylesheet, in the
"#beaver" context, which is an evil microsoft-specific style needed to get
transparent PNGs to work.  That has no impact on the actual bug discussed
above.)

The URLs cited in this bug report are temporary; email me if they have
disappeared by the time you are looking at this bug.

Received on Monday, 5 June 2006 19:46:02 UTC