W3C home > Mailing lists > Public > www-style@w3.org > August 2010

Re: [css21][css3][svg] SVG and unit-less length values

From: Dirk Schulze <vbs85@gmx.de>
Date: Fri, 13 Aug 2010 07:31:39 +0200
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: "Dr. Olaf Hoffmann" <Dr.O.Hoffmann@gmx.de>, public-fx@w3.org, www-style@w3.org
Message-ID: <1281677499.1530.19.camel@dirk-laptop>
Am Donnerstag, den 12.08.2010, 13:58 -0700 schrieb Tab Atkins Jr.:
> This is not at all compatible with CSS.  'px' has a very specific
> meaning, and it is not dependent on the local coordinate system. 

It is. If you use CSS transform, a px is dependent to the local
coordinate system. And will get taller or smaller with scaling the
coordinate system of the objects.
Please look at the example of my last mail.
The same problem in SVG, you can define different units for length in
SVG, but they are dependent to the local coordinate system:

<svg xmlns="http://www.w3.org/2000/svg">
  <rect width="2cm" height="2cm" fill="red"/>
  <g transform="translate(100) scale(0.5)">
    <rect width="2cm" height="2cm" fill="green"/>
  </g>
</svg>

Dirk
Received on Friday, 13 August 2010 05:32:14 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:30 GMT