Closed Bug 1151809 Opened 9 years ago Closed 9 years ago

SVG clip group using clone does render correctly

Categories

(Firefox :: Untriaged, defect)

37 Branch
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: mail, Unassigned)

Details

Attachments

(2 files)

Attached image 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.
Attached is an export of the SVG from Inkscape.
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
Closed: 9 years ago
Resolution: --- → INVALID
Thanks, gonna report it back to them.
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.

Attachment

General

Creator:
Created:
Updated:
Size: