W3C home > Mailing lists > Public > public-script-coord@w3.org > January to March 2013

Re: [cssom] Proposal for obtaining robust style information via Javascript - getStyle()

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Thu, 07 Feb 2013 00:16:27 +0100
To: public-script-coord@w3.org
Message-ID: <8mo5h8poprh75klg822qhn1pbhrmqt7i32@hive.bjoern.hoehrmann.de>
* L. David Baron wrote:
>I'd actually rather have separate methods or (probably preferably)
>getters for each sort of value we'd want to return (the set is
>pretty small) than have string arguments for "specified",
>"computed", etc.
>
>For example, maybe something like:
>  element.specifiedStyle.color
>  element.computedStyle.color
>  element.usedStyle.color
>  element.pseudoStyle("::before").specifiedStyle.color

I am wondering how people would react if one was to suggest to allow

  element.computedStyle.color

and also

  element.computedStyle("::before").color
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Wednesday, 6 February 2013 23:16:54 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:09 UTC