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

Re: Unitless lengths in SVG and CSS

From: Erik Dahlstrom <ed@opera.com>
Date: Mon, 07 Jun 2010 11:02:32 +0200
To: www-svg@w3.org
Message-ID: <op.vdw92fd0geuyw5@localhost>
On Thu, 27 May 2010 04:57:12 +0200, Boris Zbarsky <bzbarsky@mit.edu> wrote:

> On 5/26/10 9:31 PM, Michael Day wrote:
>>> [1]
>>> http://dev.w3.org/SVG/profiles/1.1F2/publish/types.html#DataTypeLength
>>
>> In this spec length is defined like this in style sheets:
>>
>> length ::= number (~"em" | ~"ex" | ~"px" | ~"in" | ~"cm" | ~"mm" | ~"pt"
>> | ~"pc")?
>>
>> What are the ~ characters for, and why is the unit still optional?

The tilde means case-insensitive matching of the string that follows.

Cheers
/Erik

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed
Received on Monday, 7 June 2010 09:03:39 GMT

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