[Bug 2560] @media with mixed-case media type not recognized

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

           Summary: @media with mixed-case media type not recognized
           Product: CSSValidator
           Version: CSS Validator
          Platform: All
               URL: http://jigsaw.w3.org/css-
                    validator/validator?text=%40media+Screen+%7B+p+%7B+margi
                    n%3A+0%3B+%7D+%7D&warning=1&profile=css2&usermedium=all
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P3
         Component: media type
        AssignedTo: ot@w3.org
        ReportedBy: ray.mccord@gmail.com
         QAContact: www-validator-cvs@w3.org


The validator does not seem to recognize media type names specified in a
case-insensitive manner. For instance, the following is valid CSS:

    @media Screen { p { margin: 0; } }


Refer to: http://www.w3.org/TR/REC-CSS2/media.html#x4

    "Media type names are case-insensitive."


This is observed when validating using the direct input textarea:

http://jigsaw.w3.org/css-validator/validator?text=%40media+Screen+%7B+p+%7B+margin%3A+0%3B+%7D+%7D&warning=1&profile=css2&usermedium=all


The observed response from the validator in this instance was:

Errors

URI : file://localhost/TextArea

    * Line: 1

      unrecognized media Screen

Valid CSS information

    * @media

Received on Wednesday, 30 November 2005 20:08:37 UTC