Closed Bug 2007256 Opened 3 months ago Closed 3 months ago

SVG filter not applied when svg element hidden

Categories

(Core :: General, defect)

Firefox 146
defect

Tracking

()

RESOLVED DUPLICATE of bug 376027

People

(Reporter: gunnar, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:146.0) Gecko/20100101 Firefox/146.0

Steps to reproduce:

  • SVG element defining a filter, set to display: none
  • HTML styled using filter: url() referencing the above filter

see https://codepen.io/gunnarbittersmann/pen/vEYryKB

Actual results:

Filter is not applied. Works fine in Safari and Chromium browsers.

(The filter is applied when the defining SVG element is not hidden using display: none, but visually hidden using the styles from https://www.a11yproject.com/posts/how-to-hide-content/, cf. https://codepen.io/gunnarbittersmann/pen/EaxRjPe)

Expected results:

Filter should be applied also when the defining SVG element is hidden.

best not do that. Use visibility: hidden or height/width=0 instead.

Status: UNCONFIRMED → RESOLVED
Closed: 3 months ago
Duplicate of bug: 376027
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.