[fxtf-drafts] [filter-effects-1] Interaction of color-interpolation-filters and CSS url() filter function is ill defined

smfr has just created a new issue for https://github.com/w3c/fxtf-drafts:

== [filter-effects-1] Interaction of color-interpolation-filters and CSS url() filter function is ill defined ==
It's not really clear from the spec how `color-interpolation-filters` and `filter: url(#foo)` interact.

color-interpolation-filters has a note:
> Note: The color-interpolation-filters property has no affect on Filter Functions, which operate in the sRGB color space.

and color-interpolation-filters is denoted as:
> Applies to: All filter primitives

so what happens with:

```
<svg><defs>
  <filter id="foo"  color-interpolation-filters="sRGB">
    <feColorMatrix type="saturate" values="3"/>
  </filter>
</defs></svg>
<div style="filter: url(#foo)"></div>

```

What Gecko and Blink do is use the value of color-interpolation-filters on the filter primitives, defaulting to linearRGB, which is probably correct. Seems that WebKit always uses linearRGB, which is not.

Please view or discuss this issue at https://github.com/w3c/fxtf-drafts/issues/285 using your GitHub account

Received on Monday, 7 May 2018 20:35:22 UTC