This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 2560 - @media with mixed-case media type not recognized
Summary: @media with mixed-case media type not recognized
Status: RESOLVED FIXED
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: media type (show other bugs)
Version: CSS Validator
Hardware: All All
: P3 major
Target Milestone: ---
Assignee: Olivier Thereaux
QA Contact: qa-dev tracking
URL: http://jigsaw.w3.org/css-validator/va...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-30 20:08 UTC by Ray McCord
Modified: 2006-04-20 07:36 UTC (History)
0 users

See Also:


Attachments
mixed-case @media rules (162 bytes, text/css)
2006-04-20 07:21 UTC, Olivier Thereaux
Details

Description Ray McCord 2005-11-30 20:08:10 UTC
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
Comment 1 Ray McCord 2006-01-31 12:01:15 UTC
*bump*
Comment 2 Olivier Thereaux 2006-04-20 07:21:41 UTC
Created attachment 423 [details]
mixed-case @media rules
Comment 3 Olivier Thereaux 2006-04-20 07:23:17 UTC
Resent-From: www-validator-cvs@w3.org
From: bugzilla@wiggum.w3.org
Date: 20 April 2006 14:15:41 GMT+09:00
To: www-validator-cvs@w3.org
Subject: [Bug 3099] Selector syntax:  validator passes selectors that have garbage values for names of pseudo-element/pseudo-class


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


ot@w3.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED





Fixed in CVS by Jean-Guilhem Rouel.

Testable at 
http://qa-dev.w3.org:8001/css-validator/validator?uri=http%3A%2F%2Fwww.w3.org%2FBugs%2FPublic%2Fattachment.cgi%3Fid%3D423

Will be in the production service shortly.

Comment 4 Ray McCord 2006-04-20 07:34:09 UTC
Ah, good to see this fixed.
Comment 5 Olivier Thereaux 2006-04-20 07:36:41 UTC
comment #3 was a hasty copy-paste, sorry about that. 
Should have been only:

> Fixed in CVS by Jean-Guilhem Rouel.
> 
> Testable at 
> http://qa-dev.w3.org:8001/css-validator/validator?uri=http%3A%2F%2Fwww.w3.org%2FBugs%2FPublic%2Fattachment.cgi%3Fid%3D423
> 
> Will be in the production service shortly.
>