NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 696 - fix media-query checker to not report errors for media features that lack a value
fix media-query checker to not report errors for media features that lack a v...
Status: RESOLVED FIXED
Product: Validator.nu
Classification: Unclassified
Component: Datatype library
HEAD
All All
: P2 normal
Assigned To: Michael[tm] Smith
http://www.w3.org/TR/css3-mediaquerie...
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-12-29 09:12 CET by Michael[tm] Smith
Modified: 2009-12-29 12:32 CET (History)
0 users

See Also:


Attachments
patch (1.56 KB, patch)
2009-12-29 12:29 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 09:12:22 CET
http://www.w3.org/TR/css3-mediaqueries/#media1

The current Media Queries CR says, "Media features... can also be used without a value. For a media feature _feature_, (feature) will evaluate to true if (feature:x) will evaluate to true for a value x other than zero or zero followed by a unit identifier (i.e., other than 0, 0px, 0em, etc.)." and provides an example:

[[
For example, the ‘color’ media feature can form expressions without a value (‘(color)’), or with a value (‘(min-color: 1)’).
]

However, it also notes:

[[
Media features that are prefixed by min/max cannot be used without a value. When a media feature prefixed with min/max is used without a value it makes the media query malformed.
]]
Comment 1 Michael[tm] Smith 2009-12-29 12:29:03 CET
Created attachment 139 [details]
patch
Comment 2 Michael[tm] Smith 2009-12-29 12:32:40 CET
syntax 516
http://whattf.browse.cvsdude.com/syntax?view=rev&revision=516