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 697 - multiple media types unrecognised
Summary: multiple media types unrecognised
Status: RESOLVED FIXED
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: media type (show other bugs)
Version: CSS Validator
Hardware: Other other
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-02 21:12 UTC by Paul Sleigh
Modified: 2011-03-17 12:42 UTC (History)
1 user (show)

See Also:


Attachments
test case as described (537 bytes, text/html)
2007-05-28 06:12 UTC, Olivier Thereaux
Details

Description Paul Sleigh 2004-05-02 21:12:37 UTC
<http://www.w3.org/TR/REC-CSS2/media.html> says it's legal to specify media like
<link rel="stylesheet" type="text/css" media="print, projection" ...>.  This
gives an error in the CSS Validator: "unrecognized media screen, projection". 
It shouldn't.  Unfortunately the spurious error also prevents the rest of the
validator from running.
Comment 1 Yves Lafon 2005-08-26 14:42:22 UTC
Fixed, see http://qa-dev.w3.org:8001/css-validator/
Comment 2 Alex 2005-11-08 04:00:05 UTC
Same error "unrecognized media screen,projection" when using the following syntax:

<style type="text/css" media="screen, projection">
	@import url(css/styles.css);
</style>
Comment 3 mat 2007-01-25 16:27:44 UTC
I am using this piece of code:

<style type="text/css" media="screen, projection, print, tv">
@import '/shared/public/css/style.css';
</style>

which produce the same error message.
Comment 4 Olivier Thereaux 2007-05-28 06:12:36 UTC
Created attachment 471 [details]
test case as described
Comment 5 Reto Steffen 2008-02-10 21:25:10 UTC
the apple site tells people to add
media="screen and (min-device-width: 481px)
and
media="only screen and (max-device-width: 480px)"
to optimize a site for the iphone
which gives me the same error:
unrecognized media screen and (min-device-width: 481px)