• timloh's avatar
    Fix non-<number> calcs being accepted as numbers · 42ee07bf
    timloh authored
    This patch fixes a missing check in CalcParser::consumeNumberRaw for the
    CalcNumber category. This was causing non-<number> calcs to be accepted
    as numbers (which caused problems in flex where <number> and <length>
    can be used in the same shorthand, e.g. flex: calc(10px + 50%) 1 2)
    
    BUG=559513,499780
    
    Review URL: https://codereview.chromium.org/1464253002
    
    Cr-Commit-Position: refs/heads/master@{#361070}
    42ee07bf
flex-property-parsing-expected.txt 5.08 KB