DescriptionNew parser mode for CSSOM @viewport descriptors.
CSSOM value and descriptor parsing for @viewport used parsing rules for normal
CSS property declarations instead, meaning width and height were not parsed as
shorthands.
This is an issue for other CSSOM access to other descriptors too, like for
@font-face.
This fix is minimal for the @viewport case and intended for feedback on the
general approach. I considered not adding new parser modes, but use a bit in
StylePropertySet to indicate a CSSParserMode or a descriptor mode and let two
bits store the mode. With both the current changes and the split, a descriptor
mode would implicitly be strict.
BUG=272718
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=157955
Patch Set 1 #
Total comments: 4
Patch Set 2 : Rebased onto master #Patch Set 3 : Fixed review issues and added more tests #
Total comments: 8
Patch Set 4 : Rebase #Patch Set 5 : Fixed review issues. #
Total comments: 4
Patch Set 6 : More comments added. #
Messages
Total messages: 15 (0 generated)
|