Accept comments as separators in rgba/hsla
In order to make this work, because comments are already stripped by the time ParseRGBParameters/ParseHSLParameters is reached, relax the strictness and simply require the color components to be there. This works since although the comment is stripped out, the effect is that it still acts as a separator and will preserve numeric tokens: 1/* comment */2 -> NumericToken(1) + NumericToken(2) Behavior matches Firefox. Bug: 808888 Change-Id: I43ae53a0d7630b8229745a347c5fb914f8949589 Reviewed-on: https://chromium-review.googlesource.com/962989Reviewed-by:Timothy Loh <timloh@chromium.org> Reviewed-by:
Rune Lillesveen <futhark@chromium.org> Commit-Queue: Rob Buis <rob.buis@samsung.com> Cr-Commit-Position: refs/heads/master@{#543337}
Showing
Please register or sign in to comment