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

[cssom] Behaviour of DOM API when changing CSSRule

From: Ian Kilpatrick <ikilpatrick@chromium.org>
Date: Thu, 12 Mar 2015 17:09:34 +1100
Message-ID: <CAJL3UpTumMpyuHWx3P4RapQ_uii7a6sYKs_=1tEHQoE0YDRxeA@mail.gmail.com>
To: www-style@w3.org
Hi all,

When you change a CSSRule via CSSOM api, e.g.
document.styleSheets[3].cssRules[0].color = 'red';

What should be the behavior of subsequently querying the textContent of the
same stylesheet element? E.g.

Should it remain the same or return the updated version of the stylesheet?


[1] From: http://crbug.com/147285
[2] Example: http://jsfiddle.net/T4aCC/29/
Received on Thursday, 12 March 2015 09:37:51 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:52 UTC