[Bug 2272] <number> should not require a digit

http://www.w3.org/Bugs/Public/show_bug.cgi?id=2272





------- Additional Comments From jesse@thefutureoftheweb.com  2006-02-11 00:32 -------
Created an attachment (id=406)
 --> (http://www.w3.org/Bugs/Public/attachment.cgi?id=406&action=view)
Patch to allow 'line-height: 1;' 

CssNumber.get() returns either a Float or an Integer. CssLineHeight* were
assuming it was always a Float. I changed it so that getValue() is called
instead for instances of CssValueFloat (ie. CssNumber). getValue() always
returns Float.

Note: this only fixes line-height. It's not clear if this bug (or a similar
bug) exists elsewhere, though I couldn't find another occurance.

Received on Saturday, 11 February 2006 00:32:44 UTC