Bug 36184 - a clipPath applied to multiple graphics objects is translated on all but first object
Summary: a clipPath applied to multiple graphics objects is translated on all but firs...
Status: REOPENED
Alias: None
Product: Batik - Now in Jira
Classification: Unclassified
Component: SVG Rasterizer (show other bugs)
Version: 1.8
Hardware: Macintosh other
: P3 normal
Target Milestone: ---
Assignee: Batik Developer's Mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-15 03:51 UTC by Joshua Randall
Modified: 2007-10-30 18:19 UTC (History)
1 user (show)



Attachments
Testcase to demonstrate bug (864 bytes, image/svg+xml)
2005-08-15 03:58 UTC, Joshua Randall
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joshua Randall 2005-08-15 03:51:06 UTC
When the same clipPath element is applied to multiple graphics objects, every object after the first one has 
the clip-path applied translated in the same amount in both the x and y axes.  Thus, trying to use a clip-
path to "cut-out" a region from a stack of graphics objects results in the bottommost object showing 
through on the bottom and right edges of the cut-out portion.

This occurs in Squiggle in both the release version 1.6 and the 1.6+ build made on 05-08-06.
Comment 1 Joshua Randall 2005-08-15 03:58:10 UTC
Created attachment 16046 [details]
Testcase to demonstrate bug

This SVG should appear as a green 32x24 rectangle centered inside a blue 128x96
rectangle.  

In Batik's squiggle browser, red appears (from an underlying rectangle) along
the left and top edges of the blue rectangle and along the right and bottom
edges of the green rectangle.  Also, the blue rectangle overflows over the
right and bottom edges and part of the green rectangle is covered by the blue
rectangle.
Comment 2 Thomas Deweese 2005-08-15 12:27:52 UTC
I've tried your example on windows and on Mac OS 10.3 (With JDK 1.4.2_05-141.4)
It displayed flawlessly on both.

If you want to provide additional information to assist me in reproducing it please
reopen the bug.
Comment 3 Joshua Randall 2005-08-15 19:51:35 UTC
This is actually on Mac OS X 10.4.2 (was not on the list of choices, and I forgot to add it in the comment).
I was using JDK build 1.4.2_07, but I have just tried with 1.3.1_15 and 1.5.0_02 and they all seem to 
exhibit the same problem.

I also tried it on a windows machine, and did _not_ have the problem, so it seems to be platform specific 
to OS X 10.4.

I will try to find another 10.4.2 machine to verify it on so that I can be sure it isn't something about my 
specific configuration.
Comment 4 Joshua Randall 2005-08-16 15:20:22 UTC
This bug has been verified on a colleague's machine also running 10.4.2.
Comment 5 jbw22285 2005-08-24 21:10:43 UTC
I have verified that this bug is also present on 10.4.1
Comment 6 Cameron McCormack 2007-10-30 18:19:39 UTC
The 1.5 JRE on OS X 10.5 now uses Sun's rendering pipeline instead of Quartz, 
so there's a good chance this bug does not occur on Leopard.  I don't have 10.5 
to test out with, though, but if you do it would be good to know if it resolves 
this issue.