NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 700 - add warnings for media queries with media features for media types to which they are inapplicable
add warnings for media queries with media features for media types to which t...
Status: RESOLVED FIXED
Product: Validator.nu
Classification: Unclassified
Component: Datatype library
HEAD
All All
: P2 enhancement
Assigned To: Michael[tm] Smith
http://www.w3.org/TR/css3-mediaquerie...
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-12-29 11:31 CET by Michael[tm] Smith
Modified: 2010-01-06 19:09 CET (History)
0 users

See Also:


Attachments
patch (36.66 KB, patch)
2010-01-06 19:04 CET, Michael[tm] Smith
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael[tm] Smith 2009-12-29 11:31:56 CET
Each entry for a media feature defined in the Media Queries spec has a field titled "Applies to" that specifies which media types or "media groups" the media feature applies to. The datatype library should do checking for instances of media features used with media types they do not apply to. It's not clear from the spec whether such instances are conformance errors, so it may be that we will need to just report them as warnings.

For example, "print and (scan: progressive)" should be reported as "The 'scan' media feature does not apply to the 'print' media type."
Comment 1 Michael[tm] Smith 2010-01-06 19:04:34 CET
Created attachment 144 [details]
patch