SVG clip group using clone does render correctly

RESOLVED INVALID

Status

()

Firefox
Untriaged
RESOLVED INVALID
3 years ago
3 years ago

People

(Reporter: Ben Scholzen, Unassigned)

Tracking

37 Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments)

(Reporter)

Description

3 years ago
Created attachment 8589062 [details]
drawing.svg

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:37.0) Gecko/20100101 Firefox/37.0
Build ID: 20150328224110

Steps to reproduce:

Open the attached SVG file in Firefox.


Actual results:

You'll see a pink rectangle.


Expected results:

You should see a green rectangle inside the pink rectangle with a black line in it (Compare with a local viewer like e.g. Inkscape). Chrome suffers the same problem.
(Reporter)

Comment 1

3 years ago
Created attachment 8589064 [details]
Inkscape rendering export

Attached is an export of the SVG from Inkscape.
(Reporter)

Updated

3 years ago
OS: Linux → All
Hardware: x86_64 → All
This file is invalid.

There is a <clipPath> with a <use> element in it. The <use> element points to a <g> element.

Per http://www.w3.org/TR/SVG/masking.html#EstablishingANewClippingPath

If a ‘use’ element is a child of a ‘clipPath’ element, it must directly reference ‘path’, ‘text’ or basic shape elements. Indirect references are an error (see Error processing).

Do raise this as an Inkscape bug if it's creating invalid SVG files.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → INVALID
(Reporter)

Comment 3

3 years ago
Thanks, gonna report it back to them.
(Reporter)

Comment 4

3 years ago
Just for reference: https://bugs.launchpad.net/inkscape/+bug/1441152
You need to log in before you can comment on or make changes to this bug.