<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>2560</bug_id>
          
          <creation_ts>2005-11-30 20:08:10 +0000</creation_ts>
          <short_desc>@media with mixed-case media type not recognized</short_desc>
          <delta_ts>2006-04-20 07:36:41 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSSValidator</product>
          <component>media type</component>
          <version>CSS Validator</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://jigsaw.w3.org/css-validator/validator?text=%40media+Screen+%7B+p+%7B+margin%3A+0%3B+%7D+%7D&amp;warning=1&amp;profile=css2&amp;usermedium=all</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ray McCord">ray.mccord</reporter>
          <assigned_to name="Olivier Thereaux">ot</assigned_to>
          
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>7293</commentid>
    <comment_count>0</comment_count>
    <who name="Ray McCord">ray.mccord</who>
    <bug_when>2005-11-30 20:08:10 +0000</bug_when>
    <thetext>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

    &quot;Media type names are case-insensitive.&quot;


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&amp;warning=1&amp;profile=css2&amp;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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8061</commentid>
    <comment_count>1</comment_count>
    <who name="Ray McCord">ray.mccord</who>
    <bug_when>2006-01-31 12:01:15 +0000</bug_when>
    <thetext>*bump*</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9329</commentid>
    <comment_count>2</comment_count>
      <attachid>423</attachid>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2006-04-20 07:21:41 +0000</bug_when>
    <thetext>Created attachment 423
mixed-case @media rules</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9330</commentid>
    <comment_count>3</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2006-04-20 07:23:17 +0000</bug_when>
    <thetext>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.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9331</commentid>
    <comment_count>4</comment_count>
    <who name="Ray McCord">ray.mccord</who>
    <bug_when>2006-04-20 07:34:09 +0000</bug_when>
    <thetext>Ah, good to see this fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9332</commentid>
    <comment_count>5</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2006-04-20 07:36:41 +0000</bug_when>
    <thetext>comment #3 was a hasty copy-paste, sorry about that. 
Should have been only:

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

</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>423</attachid>
            <date>2006-04-20 07:21:41 +0000</date>
            <delta_ts>2006-04-20 07:21:41 +0000</delta_ts>
            <desc>mixed-case @media rules </desc>
            <filename>2560-atmedia_mixcase.css</filename>
            <type>text/css</type>
            <size>162</size>
            <attacher name="Olivier Thereaux">ot</attacher>
            
              <data encoding="base64">CkBtZWRpYSBTY3JlZW4geyBwIHsgbWFyZ2luOiAwOyB9IH0NDUBtZWRpYSBzQ3JlZW4geyBwIHsg
Ym9yZGVyLXRvcDogMTJweDsgfSB9DQ1AbWVkaWEgYXVyYUwgeyBwIHsgcmljaG5lc3M6IDEwMDsg
fSB9DQ1AbWVkaWEgcHJpbnQgeyBib2R5IHsgZm9udC1zaXplOiAxMHB0OyB9IH0K
</data>

          </attachment>
      

    </bug>

</bugzilla>