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
Hi,

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">
<head>
<style>
* { font-size: 10px }
* { font-size: 50 }
</style>
</head>
<body>
<p>How big is this text?</p>
<svg xmlns="http://www.w3.org/2000/svg">
<text>How big is this text?</text>
</svg>
</body>
</html>

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,

Michael

-- 
Print XML with Prince!
http://www.princexml.com
Received on Wednesday, 26 May 2010 06:49:01 GMT

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