Closed Bug 856467 Opened 11 years ago Closed 11 years ago

use of SVG defs with negative coordinates results in truncated drawing

Categories

(Core :: SVG, defect)

22 Branch
x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: dhs, Unassigned)

Details

Attachments

(1 file)

Attached image 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
Closed: 11 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: