Unitless lengths in SVG and CSS

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 UTC