W3C home > Mailing lists > Public > www-style@w3.org > March 2009

Re: [CSSOM] GetComputedStyle : choose the unit

From: Innovimax SARL <innovimax@gmail.com>
Date: Tue, 24 Mar 2009 10:28:19 +0100
Message-ID: <546c6c1c0903240228s5fcfce21rae02efd325324a14@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: Ludger Buenger <ludger.buenger@realobjects.com>, www-style@w3.org
Thanks Boris for pointing this out

It doesn't surprise me since implementing it this way make a heavy burden on
the implementation

That's why I was asking for a way to tell the implementation which unit I
need so it can gracefully give an understandable error message if it cannot
handle it, instead of doing some strange gymnastic with a lot of casting

Mohamed

2009/3/23 Boris Zbarsky <bzbarsky@mit.edu>

> Ludger Buenger wrote:
>
>> CSSPrimitiveValue widthValue =
>> ((CSSPrimitiveValue)getComputedStyle(element).getPropertyCSSValue(“width”));
>>
>
> Though note https://bugzilla.mozilla.org/show_bug.cgi?id=474655#c0
>
> -Boris
>



-- 
Innovimax SARL
Consulting, Training & XML Development
9, impasse des Orteaux
75020 Paris
Tel : +33 9 52 475787
Fax : +33 1 4356 1746
http://www.innovimax.fr
RCS Paris 488.018.631
SARL au capital de 10.000 €
Received on Tuesday, 24 March 2009 09:29:00 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:17 GMT