[Bug 28533] New: Authoring conformance for @charset


            Bug ID: 28533
           Summary: Authoring conformance for @charset
           Product: CSS
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Syntax
          Assignee: jackalmage@gmail.com
          Reporter: simonp@opera.com
        QA Contact: public-css-bugzilla@w3.org

The current state of css-syntax is a bit unclear when it comes to authoring
conformance for @charset.

http://dev.w3.org/csswg/css-syntax/#input-byte-stream does not say anything is
a parse error/syntax error.

http://dev.w3.org/csswg/css-syntax/#parse-a-stylesheet removes the first rule
if it's @charset.

So it seems to me the following stylesheet parses without errors:

@charset { LOL }
foo { }

This seems bad at least for CSS validators but maybe also browser devtools that
log CSS errors.

Note that HTML has some authoring conformance requirements on <meta charset>
that are not parse errors in the parser section:

You are receiving this mail because:
You are the QA Contact for the bug.

Received on Wednesday, 22 April 2015 08:12:00 UTC