[fxtf-drafts] [filter-effects-1] Clarify radius with multiple values handling in feMorphology (#389)

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

== [filter-effects-1] Clarify radius with multiple values handling in feMorphology ==
https://www.w3.org/TR/filter-effects-1/#feMorphologyElement

The spec doesn't specify how to handle cases like `radius="10 0"` or `radius="0 10"`. It states that:

>A negative or zero value disables the effect of the given filter primitive

But the majority of implementations fallback to 1.

```xml
<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg">
    <radialGradient id="rg1">
        <stop offset="0" stop-color="green"/>
        <stop offset="1" stop-color="white" stop-opacity="1"/>
    </radialGradient>
    <filter id="filter1">
        <feMorphology radius="10 0"/>
    </filter>
    <rect id="rect1" x="20" y="20" width="160" height="160" fill="url(#rg1)" filter="url(#filter1)"/>
    <rect id="frame" x="1" y="1" width="198" height="198" fill="none" stroke="black"/>
</svg>
```

![e-feMorphology-011](https://user-images.githubusercontent.com/725494/71454801-08d7dc80-279b-11ea-948f-800e506f57f8.png)

And here is results with `radius="10 1"`

![e-feMorphology-002](https://user-images.githubusercontent.com/725494/71454805-0c6b6380-279b-11ea-98c4-081a04b0d017.png)


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

Received on Thursday, 26 December 2019 02:49:32 UTC