W3C home > Mailing lists > Public > www-svg@w3.org > May 2010

Unitless lengths in SVG and CSS

From: Michael Day <mikeday@yeslogic.com>
Date: Wed, 26 May 2010 16:48:14 +1000
Message-ID: <4BFCC42E.6030302@yeslogic.com>
To: www-svg@w3.org

In SVG 1.1, the font-size property can take unitless lengths, like "50". 
However, CSS has never supported a unitless number value for the 
font-size property, and such a declaration should be ignored.

How should implementations resolve this dilemma?

For example, consider this document:

<html xmlns="http://www.w3.org/1999/xhtml">
* { font-size: 10px }
* { font-size: 50 }
<p>How big is this text?</p>
<svg xmlns="http://www.w3.org/2000/svg">
<text>How big is this text?</text>

Does it matter where the style sheet comes from? Or does an SVG-capable 
user agent interpret CSS in a fundamentally different manner?

Best regards,


Print XML with Prince!
Received on Wednesday, 26 May 2010 06:49:01 UTC

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