Issue 647 in svgweb: Nested patterns don't appear to work.

2 views
Skip to first unread message

svg...@googlecode.com

unread,
Aug 16, 2012, 11:46:05 AM8/16/12
to svg-w...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Low

New issue 647 by richbarb...@gmail.com: Nested patterns don't appear to
work.
http://code.google.com/p/svgweb/issues/detail?id=647

What steps will reproduce the problem?
1. Create a SVG file with a <pattern> tag which refers to another <pattern>
(See attached SVG files, produced using Inkscape)
2. Compare results in another SVG viewer and svgweb.

What is the expected output? What do you see instead?
When the 'indirected' <pattern> is included, the shape which uses the
pattern is shown unfilled.

When removing the 'indirected' <pattern> tag, so that the <rect> directly
references the pattern definition, the pattern is shown correctly.

SUGGESTED PATCH:
Making 'SVGPatternNode.beginPatternFill' reference targetPattern rather
than 'this' would seem to fix the issue (see attached .patch file), but
this may have some unknown unintended side-effects.


Attachments:
stripes-nested.svg 646 bytes
stripes-notNested.svg 552 bytes
SVGPatternNode.patch 1.6 KB
patterns.png 4.5 KB

Reply all
Reply to author
Forward
0 new messages