Re: [Fwd: [Moderator Action] Patterns broken in Adobe SVG Viewer 3.0 Beta 4?]

The SVG specification changed with the Nov. 2, 2000 draft to make the 
default value for 'patternUnits' to be objectBoundingBox instead of 
userSpaceOnUse. The Adobe SVG Viewer 2.0 beta 4 matches this latest draft.

Because of this, defining the x/y/width/height to be 0/0/15/15 results in 
the pattern tile being 15 times as big as the referencing rectangle element.

To make it work, explicitly set patternUnits="userSpaceOnUse".

Jon Ferraiolo
SVG Editor
jferraio@adobe.com

At 05:13 PM 2/27/01 +0100, Chris Lilley wrote:
>  Return-Path: <www-svg-request@w3.org>
>Received: from www19.w3.org (www19.w3.org [18.29.0.19])
>         by tux.w3.org (8.9.3/8.9.3) with ESMTP id SAA11571
>         for <chris@w3.org>; Sat, 24 Feb 2001 18:17:12 -0500
>Received: by www19.w3.org (8.9.0/8.9.0) id SAA12430
>         for chris@w3.org; Sat, 24 Feb 2001 18:17:12 -0500 (EST)
>Date: Sat, 24 Feb 2001 18:17:12 -0500 (EST)
>X-Envelope-From: www-svg-request@tux.w3.org  Sat Feb 24 18:17:04 2001
>Received: from tux.w3.org (tux.w3.org [18.29.0.27])
>         by www19.w3.org (8.9.0/8.9.0) with ESMTP id SAA12410
>         for <www-svg@www19.w3.org>; Sat, 24 Feb 2001 18:17:04 -0500 (EST)
>Received: from web12102.mail.yahoo.com (web12102.mail.yahoo.com 
>[216.136.172.22])
>         by tux.w3.org (8.9.3/8.9.3) with SMTP id SAA11560
>         for <www-svg@w3.org>; Sat, 24 Feb 2001 18:17:04 -0500
>Message-ID: <20010224231700.49964.qmail@web12102.mail.yahoo.com>
>Received: from [65.0.163.81] by web12102.mail.yahoo.com; Sat, 24 Feb 2001 
>15:17:00 PST
>Old-Date: Sat, 24 Feb 2001 15:17:00 -0800 (PST)
>From: Petilon <petilon@yahoo.com>
>To: www-svg@w3.org
>MIME-Version: 1.0
>Content-Type: text/plain; charset=us-ascii
>X-Diagnostic: Not on the accept list
>Subject: [Moderator Action] Patterns broken in Adobe SVG Viewer 3.0 Beta 4?
>X-Diagnostic: Mail coming from a daemon, ignored
>X-Envelope-To: www-svg
>X-Mozilla-Status2: 00000000
>
>The following SVG file displays fine in IBM SVGView v0.4a.
>Adobe displays the rectangle but not the pattern.
>
>Is the SVG pattern below incorrect, or is Adobe's viewer broken?
>
><?xml version="1.0" standalone="no"?>
><svg width="150" height="100" viewBox="0 0 150 100">
><defs>
>   <pattern id="pat1" x="0" y="0" width="15" height="15">
>     <rect width="15" height="15" style="fill:white"/>
>     <path style="fill:none;stroke:black" d="M 0,7.5 L 15,7.5"/>
>   </pattern>
></defs>
><rect style="stroke:red;fill:url(#pat1)"
>    x="5" y="5" width="140" height="90"/>
></svg>
>
>
>__________________________________________________
>Do You Yahoo!?
>Get email at your own domain with Yahoo! Mail.
>http://personal.mail.yahoo.com/

Received on Tuesday, 27 February 2001 12:15:52 UTC