Re: [cssom] Behaviour of DOM API when changing CSSRule

On 12/03/2015 07:09, Ian Kilpatrick wrote:
> 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.
> document.head.children[7].textContent;
>
> Should it remain the same or return the updated version of the stylesheet?

The former.

</Daniel>

Received on Thursday, 12 March 2015 11:22:27 UTC