W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2001

Re: Converting CSSStyleDeclaration values to other units

From: Ian Hickson <ian@hixie.ch>
Date: Wed, 18 Apr 2001 19:51:11 -0700 (Pacific Daylight Time)
To: Jeff Yates <PBWiz@mail.pbwizard.com>
cc: <www-dom@w3.org>
Message-ID: <Pine.WNT.4.31.0104181945480.952-100000@HIXIE.netscape.com>
On Wed, 18 Apr 2001, Jeff Yates wrote:
>
> Has the W3C been looking into a way of requesting the style in
> specified units for those styles that take units.

You mean:

   var CSS_MM = 7;
   style.getPropertyCSSValue('property').getFloatValue(CSS_MM);

...? See:

   http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSPrimitiveValue

...for more details.

-- 
Ian Hickson                                            )\     _. - ._.)   fL
Invited Expert, CSS Working Group                     /. `- '  (  `--'
The views expressed in this message are strictly      `- , ) -  > ) \
personal and not those of Netscape or Mozilla. ________ (.' \) (.' -' ______
Received on Wednesday, 18 April 2001 22:48:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:48 GMT