DescriptionLength MQs invalidate non zero numbers
According to the specification, certain media queries accept a CSS length as their value (e.g. http://www.w3.org/TR/css3-mediaqueries/#width).
A CSS length (http://www.w3.org/TR/css3-values/#lengths) must have a known unit, unless the value is zero.
This was not properly represented in the MediaQueryExp code, where any number was accepted.
So such media queries (e.g. "(max-width: 1)") were considered valid, but evaluated to false.
This CL fixes that, making such MQs invalid.
BUG=
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168606
Patch Set 1 #Patch Set 2 : Added MQ unit tests #
Total comments: 2
Patch Set 3 : Changed name of char conversion. Ignored failing test #Patch Set 4 : Added full stops to comment #
Total comments: 5
Patch Set 5 : Fixed review nits #
Total comments: 4
Patch Set 6 : Fixed review comments #Patch Set 7 : Fixed build issue #
Messages
Total messages: 16 (0 generated)
|