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.
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.
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.
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.
This bug has been verified on a colleague's machine also running 10.4.2.
I have verified that this bug is also present on 10.4.1
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.