W3C home > Mailing lists > Public > www-svg@w3.org > November 2001

Re: Patterns and Clipping (Adobe SVG Plug-In)

From: Vincent Hardy <vincent.hardy@sun.com>
Date: Mon, 05 Nov 2001 09:53:57 +0100
Message-ID: <3BE653A5.A2992E64@sun.com>
To: Jeff Tupper / Pedagoguery Software Inc <tupper@peda.com>
CC: www-svg@w3.org
Jeff,

Jeff Tupper / Pedagoguery Software Inc wrote:
> 
> Vincent,
> 
> Thanks for the information.
> 
> When I try the samples/tests/patternRegions.svg example with the
> Adobe SVG plug-in (version 3 beta), the output doesn't match the
> output from Batik.

I am not sure and I think it would be better for someone at Adobe
to give an answer. We have done fairly extensive tests in Batik and
I do not know whether or not Adobe implemented that area of the 
spec. Also, I think Adobe does not support external <use> (i.e.,
<use> elements with an xlink:href to an external document and 
all the Batik examples have an external <use>).

> 
> Is the Adobe SVG plug-in incorrectly handling patterns with visible
> overflow? I didn't see a mention of this in the CurrentSupport.pdf
> document.
> 
> I am trying to add SVG export to Tess (http://www.peda.com/tess) but
> not having much luck with patterned fills in SVG.

Does your export work with Batik as you expected? You tool seem really
great and it would be nice to have the SVG export you want: looking
at your product description, I understand why patterns with overflow
are important to you.

Vincent.

> 
> Thanks,
> Jeff
> 
> >Jeff,
> >
> >The Batik SVG viewer does what you are asking for:
> >
> >http://xml.apache.org/batik.
> >
> >In the distribution, you can look at the
> >samples/tests/patternRegions.svg
> >example.
> >
> >I hope this helps.
> >Regards.
> >Vincent.
> >
> >Jeff Tupper / Pedagoguery Software Inc wrote:
> >>
> >>  Could someone please provide me with an example of an SVG graphic
> >>  that contains an element filled with a pattern whose elements are not
> >>  clipped to the bounds of the pattern tile (by appropriately setting
> >>  the "overflow" property)?
> >>
> >>  I tried with the Adobe SVG browser plug-in (v2 beta) and didn't
> >>have much luck.
> >>
> >>  It seems that this should be possible. Here is a quote from the SVG
> >>  specification:
> >>
> >>  --------------
> >>  SVG's user agent style sheet sets the 'overflow' property for
> >>  'pattern' elements to hidden, which causes a rectangular clipping
> >>  path to be created at the bounds of the pattern tile. Unless the
> >>  'overflow' property is overridden, any graphics within the pattern
> >>  which goes outside of the pattern rectangle will be clipped.
> >>  --------------
> 
> --
Received on Monday, 5 November 2001 03:57:01 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:21 GMT