Bug 234783

Summary: Add support for the "color-interpolation" attribute for SVG gradients
Product: WebKit Reporter: Sam Weinig <sam>
Component: SVGAssignee: Karl Dubost <karlcow>
Status: RESOLVED FIXED    
Severity: Normal CC: changseok, dino, esprehn+autocc, ews-watchlist, fmalita, fs, glenn, gyuyoung.kim, karlcow, kondapallykalyan, maggotfish, pdr, sabouhallawa, schenney, sergio, webkit-bug-importer, zimmermann
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=305066
Attachments:
Description Flags
WIP none

Sam Weinig
Reported 2022-01-01 09:56:59 PST
It looks like we currently don't respect SVG's color-interpolation attribute, https://svgwg.org/svg2-draft/painting.html#ColorInterpolation, for SVG gradients. Now that we can easily support linearSRGB interpolation, this should be easy to add.
Attachments
WIP (2.44 KB, patch)
2022-01-02 10:49 PST, Sam Weinig
no flags
Sam Weinig
Comment 1 2022-01-02 10:49:34 PST
Radar WebKit Bug Importer
Comment 2 2022-01-08 09:57:19 PST
Fredrik Söderquist
Comment 3 2024-04-03 06:53:25 PDT
Firefox shipped this in version 123 [1], and I'm looking at getting this out the door in Chromium/Blink, so consider this a nudge to get the above patch out the door ;-). [1] https://www.mozilla.org/en-US/firefox/123.0/releasenotes/
Karl Dubost
Comment 4 2026-01-18 17:57:04 PST
(Asking Sam about the status on webkit slack channel.)
Karl Dubost
Comment 5 2026-01-18 18:04:13 PST
SeeAlso Bug 305066 and the associated PR. // FIXME: When we support `color-interpolation` (webkit.org/b/234783) it would be OK to convert the colors to linearRGB when interpolation is linear. https://github.com/WebKit/WebKit/pull/56730/changes#diff-d84885f211289ef03c36e79f71f6030345bfeb98029768e656aa326dc4cc178dR53
Karl Dubost
Comment 6 2026-01-20 04:01:33 PST
EWS
Comment 7 2026-01-20 23:24:50 PST
Committed 305921@main (3bc2a037ac2b): <https://commits.webkit.org/305921@main> Reviewed commits have been landed. Closing PR #56891 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.