NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 659 - "speech" is flagged as an invalid value for @media, contrary to what MQ says
"speech" is flagged as an invalid value for @media, contrary to what MQ says
Status: RESOLVED FIXED
Product: Validator.nu
Classification: Unclassified
Component: HTML5 schema
HEAD
All All
: P2 normal
Assigned To: Michael[tm] Smith
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-10-01 20:49 CEST by Tab Atkins Jr.
Modified: 2009-10-02 06:15 CEST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tab Atkins Jr. 2009-10-01 20:49:57 CEST
If you use media="speech" on a <link>, the validator flags it as an incorrect value.  But HTML5 references MQ for valid @media values, and MQ says that "aural" was deprecated for "speech" by CSS2.
Comment 1 Michael[tm] Smith 2009-10-02 01:36:59 CEST
so this is another case where we'd really want to be able to emit a warning message if we could (Warning: The "aural" media type is deprecated; use "speech" instead). For now, I've just added "speech" to the datatype code and left "aural" in the list of valid media types, FIXME comment. If/when we get the datatypes-warning mechanism added, we can go back and consider adding code to emit a warning for "aural".
Comment 2 Michael[tm] Smith 2009-10-02 05:31:18 CEST
I added the following description for media-query to the MicrosyntaxDescriptions page:

"One or more media queries, combined in a comma-separated list. Each media query consists of a media type and zero or more expressions that check for the presence or absence of particular media features. A media type is one of the following: braille, embossed, handheld, print, projection, screen, speech, tty, tv. Note: The aural media type is deprecated. For information about valid media features and about the exact syntax of media queries, see the Media Queries specification."

http://wiki.whatwg.org/wiki/MicrosyntaxDescriptions#media-query
Comment 3 Michael[tm] Smith 2009-10-02 06:15:31 CEST
syntax r467
http://whattf.browse.cvsdude.com/syntax?view=rev&revision=467