Changeset 239516 in webkit


Ignore:
Timestamp:
Dec 21, 2018 1:33:03 PM (5 years ago)
Author:
Justin Michaud
Message:

CSS variables don't work for colors in "border" property
https://bugs.webkit.org/show_bug.cgi?id=192922

Reviewed by Simon Fraser.

Source/WebCore:

ParseColorFunction no longer consumes anything if the color was not valid.

Test: css-custom-properties-api/border-variable-parsing.html

  • css/parser/CSSPropertyParserHelpers.cpp:

(WebCore::CSSPropertyParserHelpers::parseColorFunction):

LayoutTests:

  • css-custom-properties-api/border-variable-parsing-expected.html: Added.
  • css-custom-properties-api/border-variable-parsing.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r239512 r239516  
     12018-12-21  Justin Michaud  <justin_michaud@apple.com>
     2
     3        CSS variables don't work for colors in "border" property
     4        https://bugs.webkit.org/show_bug.cgi?id=192922
     5
     6        Reviewed by Simon Fraser.
     7
     8        * css-custom-properties-api/border-variable-parsing-expected.html: Added.
     9        * css-custom-properties-api/border-variable-parsing.html: Added.
     10
    1112018-12-21  Zalan Bujtas  <zalan@apple.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r239515 r239516  
     12018-12-21  Justin Michaud  <justin_michaud@apple.com>
     2
     3        CSS variables don't work for colors in "border" property
     4        https://bugs.webkit.org/show_bug.cgi?id=192922
     5
     6        Reviewed by Simon Fraser.
     7
     8        ParseColorFunction no longer consumes anything if the color was not valid.
     9
     10        Test: css-custom-properties-api/border-variable-parsing.html
     11
     12        * css/parser/CSSPropertyParserHelpers.cpp:
     13        (WebCore::CSSPropertyParserHelpers::parseColorFunction):
     14
    1152018-12-21  Justin Fan  <justin_fan@apple.com>
    216
  • trunk/Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp

    r239273 r239516  
    682682        return Color();
    683683    }
    684     range = colorRange;
     684    if (color.isValid())
     685        range = colorRange;
    685686    return color;
    686687}
Note: See TracChangeset for help on using the changeset viewer.