DescriptionMake media query feature values more strict
Before this patch MediaQueryData::addParserValue would
accept any kind of css token, including url() and '#' types.
With this patch addParserValue becomes more restrictive and
only allows number, percentage, dimension, delimiter and
ident token types. To detect when some other token type
is used, make it return a bool and reflect this by renaming
to tryAddParserValue.
Behavior matches Firefox.
BUG=446393
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=188154
Patch Set 1 #Patch Set 2 : Add tests #
Total comments: 1
Patch Set 3 : Skip on unexpected token types #Patch Set 4 : Add two more tests #
Messages
Total messages: 12 (3 generated)
|