Re: Converting CSSStyleDeclaration values to other units

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 UTC