W3C home > Mailing lists > Public > www-validator-css@w3.org > July 2004

CSS Validator gives lots of errors when media="handheld"

From: Miikka Leskinen <miikkaleskinen@mailforce.net>
Date: Wed, 07 Jul 2004 08:50:01 +0300
To: www-validator-css@w3.org
Message-Id: <1089179401.27766.199871194@webmail.messagingengine.com>

I'm sorry I can't give the URL of a site that produces this, since it's
a temporary one and we're currently working on it. When I try to
validate the CSS we have written from scratch with the help of the CSS2
specifications, I recieve lots of strange errors. I'm talking about the
stylesheet for "handheld" media (small.css). The other stylesheets
validate ok.

Some those errors include:

# Line: 0 Context : a:focus
Invalid number : background-color#009 is not a background-color value :
#009

# Line: 0 Context : h1
Invalid number : font-sizelarge is not a font-size value : large

# Line: 0 Context : h2
Invalid number : font-sizelarge is not a font-size value : large

# Line: 0 Context : h3
Invalid number : font-sizemedium is not a font-size value : medium

...

# Line: 0 Context : div.nav h2
Invalid number : borderParse Error - [empty string]

# Line: 0 Context : td , th
Invalid number : borderParse Error - [empty string]

# Line: 0 Context : caption
Invalid number : font-sizesmall is not a font-size value : small


Does this *really* mean that there aren't "font-size: large" or
"border:1px solid black" for handheld media? If for some reason not,
where can I find more information on this? We seriously need a separate
stylesheet for small-screen and pocket-sized computers.

The only major difference between these two is the way they're pointed
to.
   <link rel="stylesheet" type="text/css" href="safelyinrussia.css"
   media="screen, tty, tv, projection, print" />
   <link rel="stylesheet" type="text/css" href="small.css"
   media="handheld" />
--
  Miikka Leskinen
  Fastmail Account
Received on Wednesday, 7 July 2004 01:51:14 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 June 2012 00:14:15 GMT