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 392 - {@media handheld} returns errors for all contained declarations
Summary: {@media handheld} returns errors for all contained declarations
Status: RESOLVED FIXED
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: Other (show other bugs)
Version: CSS Validator
Hardware: Other other
: P2 major
Target Milestone: ---
Assignee: Philippe Le Hegaret
QA Contact: qa-dev tracking
URL: http://jigsaw.w3.org/css-validator/va...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-20 11:43 UTC by Alexandre Alapetite
Modified: 2004-11-20 18:44 UTC (History)
1 user (show)

See Also:


Attachments

Description Alexandre Alapetite 2003-11-20 11:43:49 UTC
In a CSS file, using
@media handheld {
 ...
}
returns errors whatever the content is.

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

@charset "ISO-8859-1";
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't exist for media h : #fff
* Line: 0 Context : body
  Invalid number : colorProperty color doesn't exist for media h : #000

--------------------------
Cordially,
Alexandre.
http://alexandre.alapetite.net
Comment 1 Etan Wexler 2004-10-05 23:00:15 UTC
http://jigsaw.w3.org/css-validator/validator?text=%40media+handheld%7Ba%7Bdisplay%3Anone%7D%7D&warning=2&profile=none&usermedium=all

The validator says the following:

Warnings...

    * Line : 0 Property display doesn't exist for media 

Valid CSS information

    * @media handheld {
          * a {
                * display : none;
            }
      }