Closed Bug 1598918 Opened 5 years ago Closed 5 years ago

svg hidden mask

Categories

(Core :: SVG, defect)

70 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 376027

People

(Reporter: morten.n.o.henriksen, Unassigned)

Details

(Keywords: parity-safari)

Attachments

(1 file)

Attached image svg-issue-using-react.gif (deleted) —

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.87 Safari/537.36

Steps to reproduce:

Given we use an inline icon that includes defs or/and mask Example
And we reuse this icon in multiple places
When the first icon is placed in a div with display "none" the reference is hidden (only true if done on the first icon)

Actual results:

The mask is lost as shown in the attached gif (showing the normal <mask> versus a special <Mask> component keeping the mask reference in outer DOM)

(this also happens in Chrome btw.)

Expected results:

All icons should render normally as in Safari without loosing the referenced element.
Reference: https://github.com/raix/react-svg-defs-issue/blob/master/src/App.js

Component: Untriaged → SVG
Keywords: parity-safari
Product: Firefox → Core

Having multiple elements with the same id value is invalid. That may well be a source of some of your problems.

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: