Closed Bug 1734805 Opened 4 years ago Closed 3 years ago

Issue when aplying mask and clip to a foreignObject

Categories

(Core :: SVG, defect)

defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: alonso.javier.torres, Unassigned)

Details

Attachments

(2 files)

Attached file bug.zip

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36

Steps to reproduce:

I've created a SVG file that contains a clip-path AND a mask over a group that contains a foreignObject.

I attach a working example of this problem. Also some screens of the actual results and the expected.

Actual results:

When both clip-path and mask are applied over other elements it works as expected. But when I add the foreignObject to the mix it stops working as intended.

If I disabled either mask or clip-path it works as well... seems an issue with the three elements put together.

Expected results:

I expect the clip-path and mask to be applied no matter which type of elements are inside.

The Bugbug bot thinks this bug should belong to the 'Core::SVG' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → SVG
Product: Firefox → Core

The severity field is not set for this bug.
:TYLin, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(aethanyc)
Attached image test.svg

This is the test.svg in bug.zip with xmlns="http://www.w3.org/2000/svg" added to <svg> tag so that it can be opened directly by browsers.

Flags: needinfo?(aethanyc)

It's interesting to see Firefox renders differently from Chrome if opening https://bug1734805.bmoattachments.org/attachment.cgi?id=9247376 directly. However, when clicking the 'test.svg' link in comment 3, bugzilla shows a preview popup embedding the svg in <img>, and it renders the same as Chrome.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
Version: Firefox 92 → Trunk

Displays the same as Chrome always now.

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

Attachment

General

Created:
Updated:
Size: