⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 290897 in webkit


Ignore:
Timestamp:
Mar 7, 2022, 10:18:39 AM (5 years ago)
Author:
graouts@webkit.org
Message:

Transition on text-decoration-color from currentColor jumps
​https://bugs.webkit.org/show_bug.cgi?id=236992
<rdar://problem/89382835>

Reviewed by Antti Koivisto.

LayoutTests/imported/w3c:

  • web-platform-tests/web-animations/responsive/to-color-change-expected.txt:

Source/WebCore:

We need to use the MaybeInvalidColor tag to identify that this property can work with currentColor.

  • animation/CSSPropertyAnimation.cpp:

(WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/imported/w3c/ChangeLog

    r290895 r290897  
     12022-03-07  Antoine Quint  <graouts@webkit.org>
     2
     3        Transition on text-decoration-color from currentColor jumps
     4        https://bugs.webkit.org/show_bug.cgi?id=236992
     5        <rdar://problem/89382835>
     6
     7        Reviewed by Antti Koivisto.
     8
     9        * web-platform-tests/web-animations/responsive/to-color-change-expected.txt:
     10
    1112022-03-07  Antoine Quint  <graouts@webkit.org>
    212
  • trunk/LayoutTests/imported/w3c/web-platform-tests/web-animations/responsive/to-color-change-expected.txt

    r287924 r290897  
    77PASS Outline color responsive to currentColor changes
    88FAIL Stroke color responsive to currentColor changes assert_equals: expected "rgb(0, 34, 102)" but got "none"
    9 FAIL Text decoration color responsive to currentColor changes assert_equals: expected "rgb(0, 34, 102)" but got "rgba(0, 68, 0, 0.5)"
     9PASS Text decoration color responsive to currentColor changes
    1010FAIL Color responsive to parent currentColor changes assert_equals: expected "rgb(34, 51, 34)" but got "rgb(0, 51, 51)"
    1111FAIL Color responsive to repeated parent currentColor changes assert_equals: expected "rgb(102, 17, 51)" but got "rgb(0, 17, 153)"
  • trunk/Source/WebCore/ChangeLog

    r290895 r290897  
     12022-03-07  Antoine Quint  <graouts@webkit.org>
     2
     3        Transition on text-decoration-color from currentColor jumps
     4        https://bugs.webkit.org/show_bug.cgi?id=236992
     5        <rdar://problem/89382835>
     6
     7        Reviewed by Antti Koivisto.
     8
     9        We need to use the MaybeInvalidColor tag to identify that this property can work with `currentColor`.
     10
     11        * animation/CSSPropertyAnimation.cpp:
     12        (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap):
     13
    1142022-03-07  Antoine Quint  <graouts@webkit.org>
    215
  • trunk/Source/WebCore/animation/CSSPropertyAnimation.cpp

    r290895 r290897  
    26972697        new PropertyWrapper<TextDecorationThickness>(CSSPropertyTextDecorationThickness, &RenderStyle::textDecorationThickness, &RenderStyle::setTextDecorationThickness),
    26982698        new PropertyWrapper<TextUnderlineOffset>(CSSPropertyTextUnderlineOffset, &RenderStyle::textUnderlineOffset, &RenderStyle::setTextUnderlineOffset),
    2699         new PropertyWrapperVisitedAffectedColor(CSSPropertyTextDecorationColor, &RenderStyle::textDecorationColor, &RenderStyle::setTextDecorationColor, &RenderStyle::visitedLinkTextDecorationColor, &RenderStyle::setVisitedLinkTextDecorationColor),
     2699        new PropertyWrapperVisitedAffectedColor(CSSPropertyTextDecorationColor, MaybeInvalidColor, &RenderStyle::textDecorationColor, &RenderStyle::setTextDecorationColor, &RenderStyle::visitedLinkTextDecorationColor, &RenderStyle::setVisitedLinkTextDecorationColor),
    27002700
    27012701        new LengthPropertyWrapper(CSSPropertyFlexBasis, &RenderStyle::flexBasis, &RenderStyle::setFlexBasis, { LengthPropertyWrapper::Flags::IsLengthPercentage, LengthPropertyWrapper::Flags::NegativeLengthsAreInvalid }),
Note: See TracChangeset for help on using the changeset viewer.