I may have found a problem with pattern filling in Batik. I was working on an example from the O'Reilly "SVG Essentials" book and Batik does not match the description in the book. ASV does match the book.
I don't fully understand what the spec says about the patternUnits and patternContentUnits attributes, but the behavior of this pattern doesn't match anything I can come up with. My understanding is that the example below should tile with the blocks side by side all over the area of the rect. In reality, each tile is offset by the x,y coordinates of the rectangle. Otherwise, can somebody tell me what I'm doing wrong? Thanks, G. Wade <?xml version="1.0"?> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="300" height="300"> <defs> <pattern id="tile" x="0" y="0" width="0.2" height="0.2" patternUnits="objectBoundingBox" patternContentUnits="objectBoundingBox"> <!-- Doesn't display together in Batik --> <path d="M0,0 Q.05 .20 .10 .10 T .20 .20" style="stroke: black; fill:none; stroke-width:0.01;"/> <path d="M0,0h0.2v0.2h-0.2z" style="stroke: black; fill:none; stroke-width:0.005;"/> </pattern> </defs> <rect id="bkg" x="10" y="10" height="280" width="280" fill="url(#tile)" stroke="#888" stroke-width="0.5"/> </svg> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
