[csswg-drafts] [filter-effects-1] Clarify equivalent markup for filter functions (#5704)

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

== [filter-effects-1] Clarify equivalent markup for filter functions ==
Hello,

From the definition of [`saturate()`](https://drafts.fxtf.org/filter-effects/#funcdef-filter-saturate):

> The markup equivalent of this function is given below.

The [related markup](https://drafts.fxtf.org/filter-effects/#saturateEquivalent):

```html
<filter id="saturate">
  <feColorMatrix type="saturate" values="[amount]"/>
</filter>
```

But the result of this markup, will be different than `saturate(amount)` if the root `<svg>` doesn't set `color-interpolation-filters` to `sRGB` (default to `linearRGB`).

I suggest the following change (as well as for some/all of the other filter functions):

```diff
- The markup equivalent of this function is given below.
+ The markup equivalent of this function is given below, considering that `color-interpolation-filters` is set to `sRGB` on the SVG element.
```

Side note: for the reasons why they are not equivalent by default (which can be questionable), see #3131.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Saturday, 7 November 2020 08:28:27 UTC