Web-Facing Change PSA: Support "color-interpolation: linearrgb" on SVG gradients

374 views
Skip to first unread message

Fredrik Söderquist

unread,
Apr 3, 2024, 10:15:43 AMApr 3
to blink-dev

Contact emails

f...@opera.com

Specification

https://svgwg.org/svg2-draft/painting.html#ColorInterpolation

Summary

Allows SVG gradients to interpolate in a linear-light sRGB color space. Currently all SVG gradients interpolate in a gamma-encoded sRGB color space.



Blink component

Blink>SVG

TAG review

None. This feature (property-value pair) has been specified for ~20 years by now.

TAG review status

Not applicable

Risks



Interoperability and Compatibility

The risk along both axes is fairly low since the difference is in rendering only (even if the rendering can differ quite significantly).



Gecko: Shipped/Shipping (https://www.mozilla.org/en-US/firefox/123.0/releasenotes)

WebKit: No signal (Implementation bug, https://bugs.webkit.org/show_bug.cgi?id=234783, was pinged)

Web developers: No signals

Other signals:

WebView application risks

None



Debuggability

Nothing specific need, this feature just changes how colors are interpolated



Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, ChromeOS, Android, and Android WebView)?

Yes

Is this feature fully tested by web-platform-tests?

Yes

https://wpt.fyi/results/svg/pservers/reftests/gradient-color-interpolation.svg



Flag name on chrome://flags

None

Finch feature name

SvgGradientColorInterpolationLinearRgbSupport

Requires code in //chrome?

No

Estimated milestones

Shipping on desktop125
Shipping on Android125
Shipping on WebView125
Shipping on WebView125


Anticipated spec changes

None


Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/5120997943672832?gate=5096917471330304

This intent message was generated by Chrome Platform Status.

Mike Taylor

unread,
Apr 3, 2024, 7:22:43 PMApr 3
to Fredrik Söderquist, blink-dev

Hi Fredrik,

Just to confim - this is adding support for a new `color-interpolation` property value, yes (vs a bugfix or behavior change to an existing feature)? If so, can you send an Intent to Ship rather than a PSA?

thanks,
Mike

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAHediLSKwbQdU%2B%3DWa7_qRyK1bVF1-v0WFwfJgtf9xcYv5w86_g%40mail.gmail.com.

Fredrik Söderquist

unread,
Apr 4, 2024, 4:30:03 AMApr 4
to Mike Taylor, blink-dev
On Thu, Apr 4, 2024 at 1:22 AM Mike Taylor <mike...@chromium.org> wrote:

Hi Fredrik,

Just to confim - this is adding support for a new `color-interpolation` property value, yes (vs a bugfix or behavior change to an existing feature)? If so, can you send an Intent to Ship rather than a PSA?

No, it's applying an existing property value ('linearRGB') in yet another context (SVG gradients). Previously it was applied within SVG <mask> elements.


/fs

Mike Taylor

unread,
Apr 6, 2024, 7:12:19 PMApr 6
to Fredrik Söderquist, blink-dev


On 4/4/24 4:29 AM, Fredrik Söderquist wrote:
On Thu, Apr 4, 2024 at 1:22 AM Mike Taylor <mike...@chromium.org> wrote:

Hi Fredrik,

Just to confim - this is adding support for a new `color-interpolation` property value, yes (vs a bugfix or behavior change to an existing feature)? If so, can you send an Intent to Ship rather than a PSA?

No, it's applying an existing property value ('linearRGB') in yet another context (SVG gradients). Previously it was applied within SVG <mask> elements.

Thanks - I did misunderstand then. That said, this will still need an Intent to Ship, as we're exposing new functionality that did not previously exist in Chromium.

thanks,
Mike

Yoav Weiss (@Shopify)

unread,
Apr 8, 2024, 1:07:30 AMApr 8
to Mike Taylor, Fredrik Söderquist, blink-dev
+1 to sending an intent here. Thanks!! :)

Reply all
Reply to author
Forward
0 new messages