Bug 185721 - CSS transition not applied if color and fill="currentColor" in same SVG element
Summary: CSS transition not applied if color and fill="currentColor" in same SVG element
Status: RESOLVED DUPLICATE of bug 250718
Alias: None
Product: WebKit
Classification: Unclassified
Component: Animations (show other bugs)
Version: Safari 11
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: BrowserCompat, InRadar
Depends on:
Blocks:
 
Reported: 2018-05-17 03:57 PDT by Jan Bösenberg
Modified: 2023-02-10 00:46 PST (History)
12 users (show)

See Also:


Attachments
Concise test case for reproducing the issue (826 bytes, text/html)
2018-05-17 03:57 PDT, Jan Bösenberg
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***