Re: Unitless lengths in SVG and CSS

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 UTC