Bug 236992 - Transition on text-decoration-color from currentColor jumps
Summary: Transition on text-decoration-color from currentColor jumps
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Animations (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Antoine Quint
URL:
Keywords: InRadar, WebExposed, WPTImpact
Depends on:
Blocks:
 
Reported: 2022-02-21 13:15 PST by Dennis Morhardt
Modified: 2022-03-07 10:19 PST (History)
6 users (show)

See Also:


Attachments
Patch (4.53 KB, patch)
2022-03-07 07:16 PST, Antoine Quint
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Morhardt 2022-02-21 13:15:21 PST
When transitioning text-decoration-color from currentColor to a color the animations starts from an transparent color instead of the current color of the element.

Testcase: https://jsfiddle.net/5o2q9yu6/15/
Comment 1 Radar WebKit Bug Importer 2022-02-23 15:43:00 PST
<rdar://problem/89382835>
Comment 2 Antoine Quint 2022-03-07 07:16:36 PST
Created attachment 453980 [details]
Patch
Comment 3 Antti Koivisto 2022-03-07 07:23:57 PST
Comment on attachment 453980 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=453980&action=review

> Source/WebCore/ChangeLog:9
> +        We need to use the MaybeInvalidColor tag to identify that this property can work with `currentColor`.

Maybe the tag should have different name?
Comment 4 EWS 2022-03-07 10:19:49 PST
Committed r290897 (248128@main): <https://commits.webkit.org/248128@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 453980 [details].