<?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>392</bug_id>
          
          <creation_ts>2003-11-20 11:43:49 +0000</creation_ts>
          <short_desc>{@media handheld} returns errors for all contained declarations</short_desc>
          <delta_ts>2004-11-20 18:44:18 +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>Other</component>
          <version>CSS Validator</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://jigsaw.w3.org/css-validator/validator?text=%40media+handheld%7Ba%7Bdisplay%3Anone%7D%7D&amp;warning=2&amp;profile=none&amp;usermedium=all</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexandre Alapetite">alexandre.alapetite</reporter>
          <assigned_to name="Philippe Le Hegaret">plh</assigned_to>
          <cc>ewexler</cc>
          
          <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>893</commentid>
    <comment_count>0</comment_count>
    <who name="Alexandre Alapetite">alexandre.alapetite</who>
    <bug_when>2003-11-20 11:43:49 +0000</bug_when>
    <thetext>In a CSS file, using
@media handheld {
 ...
}
returns errors whatever the content is.

----Example:-------

@charset &quot;ISO-8859-1&quot;;
body {
 background:#EEE;
 color:#000;
 font-family:sans-serif;
}

@media print {
 body {
  font-family:serif;
 }
}

@media handheld {
 body {
  background:#FFF;
  color:#000;
 }
}

----------returns---------

* Line: 0 Context : body
  Invalid number : backgroundProperty background doesn&apos;t exist for media h : #fff
* Line: 0 Context : body
  Invalid number : colorProperty color doesn&apos;t exist for media h : #000

--------------------------
Cordially,
Alexandre.
http://alexandre.alapetite.net</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2457</commentid>
    <comment_count>1</comment_count>
    <who name="Etan Wexler">ewexler</who>
    <bug_when>2004-10-05 23:00:15 +0000</bug_when>
    <thetext>http://jigsaw.w3.org/css-validator/validator?text=%40media+handheld%7Ba%7Bdisplay%3Anone%7D%7D&amp;warning=2&amp;profile=none&amp;usermedium=all

The validator says the following:

Warnings...

    * Line : 0 Property display doesn&apos;t exist for media 

Valid CSS information

    * @media handheld {
          * a {
                * display : none;
            }
      }</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>