Bugzilla – Bug 703
add checking for negative and zero in media-query values
Last modified: 2010-01-06 19:08:06 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".
syntax 517 http://whattf.browse.cvsdude.com/syntax?view=rev&revision=517 http://bugzilla.validator.nu/attachment.cgi?id=137