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

Re: [CSSOM] GetComputedStyle : choose the unit

From: Garrett Smith <dhtmlkitchen@gmail.com>
Date: Mon, 23 Mar 2009 09:54:44 -0800
Message-ID: <c9e12660903231054p1978eb3cpcdbf94cbdf1b780f@mail.gmail.com>
To: Innovimax SARL <innovimax@gmail.com>
Cc: www-style@w3.org
On Mon, Mar 23, 2009 at 9:07 AM, Innovimax SARL <innovimax@gmail.com> wrote:
> Dear,

[...]

> I propose to add a new parameter to getPropertyValue so that you can choose
> the unit
>
> something like
>
> getComputedStyle(el, "").getPropertyValue("width", "px");
>
> And even to get information with respect to relative value
>
> getComputedStyle(el, "").getPropertyValue("width", "em");
>
>
Why do you need this?

Garrett
Received on Monday, 23 March 2009 17:55:25 GMT

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