WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 227219
95083
Setting 'color' CSS property by script doesn't update values using 'currentColor'
https://bugs.webkit.org/show_bug.cgi?id=95083
Summary
Setting 'color' CSS property by script doesn't update values using 'currentCo...
Antoine Quint
Reported
2012-08-27 06:58:25 PDT
Created
attachment 160711
[details]
test case In the attached testcase, I have a <linearGradient> element and I set its "color" CSS property dynamically in a script ran after the DOMContentLoaded fires. The <stop> elements of the <linearGradient> all have their "stop-color" value set to "currentColor" via a CSS rule, and yet that color doesn't change when the parent element's "color" CSS property is updated via script. The testcase works if either of those is true: 1. "color" on <linearGradient> is set statically 2. the <stop> elements have their "stop-color" property set to "currentColor" via the inline "style" attribute instead of a CSS rule.
Attachments
test case
(664 bytes, image/svg+xml)
2012-08-27 06:58 PDT
,
Antoine Quint
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Antoine Quint
Comment 1
2012-08-27 07:00:50 PDT
rdar://problem/12179192
Dirk Schulze
Comment 2
2014-05-12 07:27:12 PDT
There was a fix for this issue in Blink lately. pdr, do you know the CL for it still?
Philip Rogers
Comment 3
2014-05-12 23:30:06 PDT
This may have been fixed with
https://src.chromium.org/viewvc/blink?view=rev&revision=164726
? In general, "git log -S currentColor" is your friend :)
Matthieu Dubet
Comment 4
2023-05-30 10:00:12 PDT
The attached test case renders correctly (gradient to green) on main.
Tim Nguyen (:ntim)
Comment 5
2023-05-30 13:04:48 PDT
*** This bug has been marked as a duplicate of
bug 227219
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug