Closed Bug 1752463 Opened 3 years ago Closed 3 years ago

svg - Invalid masks are not rendered and the element is ignored

Categories

(Core :: SVG, defect)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1483225
Webcompat Priority P3
Tracking Status
firefox98 --- affected

People

(Reporter: karlcow, Unassigned)

References

Details

Attachments

(2 files)

Attached file duplicate-id2.html

This was initially reported on https://webcompat.com/issues/98484
On the original issue an icon of facebook was not displayed correctly.

The 3 browsers have a different behavior.
I have added a test case.

On the 3 browsers WebKit has the less logical behavior but most usable.
Blink has possibly the better logic?
And Firefox is a bit failing too hard giving no chance of having something.

see the reasoning in https://webcompat.com/issues/98484#issuecomment-1023799175

Attached image blink, gecko, webkit

From top to bottom

  • Edge Canary 99.0.1148.0
  • Firefox Nightly 98.0a1 (2022-01-27) (64-bit)
  • Safari Release 139 (Safari 15.4, WebKit 17613.1.14.41.2)

This isn't really about duplicate ids at all but about how we handle invalid masks and clipPaths and filters. SVG 2 says ignore them, SVG 1.1 says stop rendering the element itself. We're still mostly SVG 1.1 and Chrome is mostly SVG 2.

Summary: svg - duplicate id and mask attributes → svg - Invalid masks are not rendered and the element is ignored
Status: NEW → RESOLVED
Closed: 3 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: