Re: Converting CSSStyleDeclaration values to other units

On Wed, 18 Apr 2001, Jeff Yates wrote:
>
> Yes, but the problem with this is that you cannot get the relative
> value (say "em") to another relative unit (say "px").  Most scripts
> deal with pixels.
>
> It all boils down to though that the need to be able to convert to
> pixels is great, no matter what unit is was declared with.  Of course
> I am talking about ONLY computed styles, not style declarations.

Shouldn't computed values on pixel devices always be in pixels anyway?

-- 
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 23:04:32 UTC