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

Re: question on spec

From: Wendell Piez <wapiez@mulberrytech.com>
Date: Wed, 27 Jun 2001 18:53:21 +0100
Message-Id: <5.0.2.1.0.20010627185204.021bf890@earthlink.net>
To: "Jon Ferraiolo" <jferraio@Adobe.COM>
Cc: www-svg@w3.org


Hi Jon,

A different question (on the same part of the spec):

Consider the example

<svg xmlns="http://www.w3.org/2000/svg" width="400" height="300">
   <g transform="scale(2)">
      <rect x="25%" y="25%" width="50%" height="50%" fill="green"/>
   </g>
</svg>

Should the green rectangle be a box in the center of the viewport, 
one-quarter its size, or should it be the same size as the viewport, with 
its upper-left corner in the center?

The spec indicates (if I understand it properly) it should be the former, 
since percentage measures are calculated relative to the dimensions of the 
nearest viewport (SVG 7.10), ignoring the transform on the <g> element. But 
both the Adobe and Batik viewers render it as the latter.

How are percentages to be calculated? If either viewer followed the spec, 
I'd say the other was wrong....

Cheers,
Wendell


======================================================================
Wendell Piez                            mailto:wapiez@mulberrytech.com
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
   Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================
Received on Wednesday, 27 June 2001 18:50:17 GMT

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