W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2011

[whatwg] New method for obtaining a CSS property

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 26 Jan 2011 19:21:25 -0800
Message-ID: <AANLkTinWTpzxZONJP6a4F5-jr-Vw8W1+JCUZCEq9gvmv@mail.gmail.com>
On Wed, Jan 26, 2011 at 6:47 PM, Brett Zamir <brettz9 at yahoo.com> wrote:
> While it can already be done dynamically by iterating through
> document.stylesheets, in order to allow full separation of presentation from
> content in a convenient way and foster best practices, I think it would be
> helpful to have a built-in method to obtain a CSS property for a given
> selector.
> This is particularly needed by canvas which has no inherent way of obtaining
> styles set in a stylesheet, but would also be useful for HTML and SVG where
> setting a class dynamically may not always be sufficient, such as in a
> dynamically powered transition which wants to obtain starting and ending
> style properties.
> (This issue might also highlight some gaps in CSS, with, for example, there
> being no exact equivalent for say shadow color as used in canvas, but even
> without such changes to CSS, the proposed method would still be useful.)

What are you actually trying to accomplish?  I can't tell from this
email what data you're trying to get, precisely, and nowhere do you
state what problem you're trying to solve.

Received on Wednesday, 26 January 2011 19:21:25 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:30 UTC