use of SVG defs with negative coordinates results in truncated drawing

RESOLVED INVALID

Status

()

Core
SVG
RESOLVED INVALID
5 years ago
5 years ago

People

(Reporter: David H. Silber, Unassigned)

Tracking

22 Branch
x86
Mac OS X
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

5 years ago
Created attachment 731701 [details]
demo2.svg

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:19.0) Gecko/20100101 Firefox/19.0
Build ID: 20130307023931

Steps to reproduce:

Viewed SVG file (attached to this bug report)



Actual results:

File was displayed, but with errors.
symbol used was only partially displayed.

Note that symbol is defined with its center at coordinate (0,0). This means that only 1/4 of the symbol has no negative coordinates. This 1/4 is the only part that is drawn.

Tried this with Firefox 19.0.2 on Mac OS and with Nightly 22.0a1 (2013-03-31) on Windows


Expected results:

Symbol should have been displayed in full.

(Note that Opera properly displays this file.)
So your <use> points to a <symbol> and per the spec...

http://www.w3.org/TR/SVG/struct.html#SymbolElement

the <symbol> becomes a <svg>. Now the default value of overflow for an inner svg element is hidden per http://www.w3.org/TR/SVG/masking.html#OverflowProperty and the default values for x and y for <svg> is zero so it's clipped there.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.