NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 703 - add checking for negative and zero in media-query values
add checking for negative and zero in media-query values
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-30 15:28 CET by Michael[tm] Smith
Modified: 2010-01-06 19:08 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael[tm] Smith 2009-12-30 15:28:35 CET
The Media Queries spec says:

"The <ratio> value is a positive (not zero or negative) <integer> followed by optional whitespace, followed by a solidus (‘/’), followed by optional whitespace, followed by a positive <integer>.
The <resolution> value is a positive <number> immediately followed by a unit identifier (‘dpi’ or ‘dpcm’)."

Also, the spec for every media feature that takes an integer or lenght value includes a statement that is "cannot be negative".