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 20:06:55 -0700 (Pacific Daylight Time)
To: Jeff Yates <PBWiz@mail.pbwizard.com>
cc: <www-dom@w3.org>
Message-ID: <Pine.WNT.4.31.0104182005460.952-100000@HIXIE.netscape.com>
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 GMT

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