W3C home > Mailing lists > Public > public-css-archive@w3.org > August 2019

[csswg-drafts] [css-filters] What is the behavior of a <url> reference to a display:none SVG filter? (#4213)

From: Simon Fraser via GitHub <sysbot+gh@w3.org>
Date: Sat, 17 Aug 2019 17:33:20 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-481908792-1566063199-sysbot+gh@w3.org>
smfr has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-filters] What is the behavior of a <url> reference to a display:none SVG filter? ==
https://drafts.fxtf.org/filter-effects/#typedef-filter-url describes `<url>` as referencing a `<filter>` element, implying that the filter should work whether or not the `<filter>` is actually rendered.

In practice, user agents do seem to care whether the `<filter>` is rendered; Blink and Safari ignore the filter() if the `<svg>` is display:none, and in Gecko this causes the filtered element to be blank. What is the correct behavior?

Testcase:  https://codepen.io/smfr/pen/vYBKWOK

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4213 using your GitHub account
Received on Saturday, 17 August 2019 17:33:22 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:52 UTC