Bug 236992

Summary: Transition on text-decoration-color from currentColor jumps
Product: WebKit Reporter: Dennis Morhardt <info>
Component: AnimationsAssignee: Antoine Quint <graouts>
Status: RESOLVED FIXED    
Severity: Normal CC: dino, graouts, graouts, koivisto, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar, WebExposed, WPTImpact
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

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].