• alancutter's avatar
    Ensure original parser context is used when parsing resolved var() references · a3079e2f
    alancutter authored
    When resolving var() references at style building time we were not
    using the CSSParserContext specific to where the var() came from.
    This resulted in relative url()s not being able to resolve to an appropriate
    absolute URL based on the source base URL.
    
    This change attaches CSSParserContexts to var() references so they can be
    used at style resolution time and appropriately resolve relative URLs.
    
    BUG=700445
    
    Review-Url: https://codereview.chromium.org/2873943002
    Cr-Commit-Position: refs/heads/master@{#471205}
    a3079e2f
image-url-var.css 707 Bytes