Bug 185721

Summary: CSS transition not applied if color and fill="currentColor" in same SVG element
Product: WebKit Reporter: Jan Bösenberg <jan.boesenberg>
Component: AnimationsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: ahmad.saleem792, ap, dino, graouts, graouts, jan.boesenberg, rniwa, sabouhallawa, simon.fraser, webkit-bug-importer, webkit, zimmermann
Priority: P2 Keywords: BrowserCompat, InRadar
Version: Safari 11   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Concise test case for reproducing the issue none

Description Jan Bösenberg 2018-05-17 03:57:04 PDT
Created attachment 340569 [details]
Concise test case for reproducing the issue

Open the attached test case and move the mouse over the squares. In both cases the color should fade from red to blue.

In the left example, where color and fill="currentColor" are set on the same element, the transition is ignored and the color changes abruptly from red to blue.

In the right element the color is applied to the containing group element. The transition is applied correctly.
Comment 1 Reuben 2021-09-01 05:58:24 PDT
Still present in Safari Technology Preview Release 130 (Safari 15.0, WebKit 16612.1.26.1.5).

Bug is also present when `stroke: currentColor`
Comment 2 Antoine Quint 2021-09-07 06:47:57 PDT
Both Firefox and Chrome have the correct behavior here, Safari is the outlier.
Comment 3 Ahmad Saleem 2022-06-16 16:32:25 PDT
I am able to reproduce this bug in Safari 15.5 on macOS 12.4 and witnessing same result as mentioned in Comment 01 and left element change abruptly from red to blue rather than transition like right box. Thanks!
Comment 4 Radar WebKit Bug Importer 2022-06-16 16:59:26 PDT
<rdar://problem/95342299>
Comment 5 Ahmad Saleem 2023-02-09 12:25:34 PST
This seems to be fixed in Safari Technology Preview 163 and now transition properly. I think we can mark this as "RESOLVED CONFIGURATION CHANGED" now.

Appreciate if someone else can confirm as well. Thanks!
Comment 6 Antoine Quint 2023-02-10 00:46:23 PST
Thanks for testing Ahmad. This was fixed in 259082@main, so marking as a dupe of bug 250718.

*** This bug has been marked as a duplicate of bug 250718 ***