• Rob Buis's avatar
    Accept comments as separators in rgba/hsla · b207b031
    Rob Buis authored
    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: default avatarTimothy Loh <timloh@chromium.org>
    Reviewed-by: default avatarRune Lillesveen <futhark@chromium.org>
    Commit-Queue: Rob Buis <rob.buis@samsung.com>
    Cr-Commit-Position: refs/heads/master@{#543337}
    b207b031
W3CImportExpectations 26.8 KB