W3C home > Mailing lists > Public > www-svg@w3.org > October 2011

Re: patternTransform

From: Dirk Schulze <vbs85@gmx.de>
Date: Mon, 3 Oct 2011 17:13:24 +0200
Cc: "Domenico Strazzullo" <nst@dotuscomus.com>, www-svg@w3.org
Message-Id: <D30EC837-AD8F-413D-A5C2-E9814A635C37@gmx.de>
To: Erik Dahlstrom <ed@opera.com>
Just in case someone is interested in, a simple reduction. Works in Batik and IE so far:

<svg xmlns="http://www.w3.org/2000/svg">
<pattern id="pattern" width="5" height="5" patternUnits="userSpaceOnUse" patternTransform="scale(40)">
	<circle cx="2.5" cy="2.5" r="2.5" fill="lime" />
<rect width="200" height="200" fill="url(#pattern)"/>

Looks like WebKit does indeed just take the viewBox into account for calculating the correct tile size. Shouldn't be hard to fix.

Am 03.10.2011 um 16:04 schrieb Erik Dahlstrom:

> On Mon, 03 Oct 2011 12:44:23 +0200, Dirk Schulze <vbs85@gmx.de> wrote:
>> Am 03.10.2011 um 12:14 schrieb Domenico Strazzullo:
> ...
>>> You can check some results here: http://dotuscomus.com/pergola/download/pergola_1.3.6/ExamplesHTML/Patterns/patterns.html
>>> Domenico
>> You should specify your question. I assume you mean the pixelation on the pattern tiles. IIRC all implementations try to avoid pixelated tiles. And normally it works quite well. I haven't checked why Opera, Firefox and WebKit fail on your example yet. But ideally patterns should never look pixelated, independent of the pattern transform, viewBox or other transformations.
> I agree that it would be better to render the pattern tile so that it doesn't look pixelated or blurred. Opera currently doesn't compensate for patternTransform scaling, but a patch for that is in the works.
> Cheers
> -- 
> Erik Dahlstrom, Core Technology Developer, Opera Software
> Co-Chair, W3C SVG Working Group
> Personal blog: http://my.opera.com/macdev_ed
Received on Monday, 3 October 2011 15:13:56 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:26 UTC