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

Re: letter-spacing with text-anchor middle

From: Tavmjong Bah <tavmjong@free.fr>
Date: Fri, 09 Jul 2010 13:00:27 +0200
To: Erik Dahlstrom <ed@opera.com>
Cc: www-svg@w3.org
Message-ID: <1278673227.1665.587.camel@localhost>

> Opera supports letter-spacing, however the unit (px in this case) must be
> specified if it's in a stylesheet or style attribute. Chrome seems to not
> require the unit to be specified though, which is a bit odd.

I am having trouble seeing why Opera requires a unit in the case of a
style attribute. The spec explicitly discusses what to do if no unit is
given for letter-spacing. Also, 7.10 (Units) gives an example in the
case of font-size where a unit is not given.

Inkscape always puts a unit on 'font-size'. There is a comment in the
output code for 'font-size':

	// must specify px, see inkscape bug 1221626, mozilla bug 234789

I can't find Inkscape bug 1221626 (Inkscape's changed the bug keeping
system since that bug was submitted) and the Mozilla bug refers to a
2004 discussion where they grapple with how to resolve CSS and SVG spec
differences. It wouldn't be hard for Inkscape to add the unit to avoid
problems but that doesn't answer the question of why Opera requires it.


					Tav
Received on Friday, 9 July 2010 11:01:01 GMT

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