W3C home > Mailing lists > Public > www-style@w3.org > December 2014

Re: [cssom] How should inline style be handled when getComputedStyle is called cross-document

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 9 Dec 2014 14:19:42 -0800
Message-ID: <CAAWBYDA3OhFyQK-fJmUprtdmBcOrFi+D1ECjK=NsxMS9fgN1hA@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: www-style list <www-style@w3.org>
On Dec 9, 2014 9:32 AM, "Boris Zbarsky" <bzbarsky@mit.edu> wrote:
> When getComputedStyle is called on a node from a different document, the
style is determined based on the rules for the document of the window
getComputedStyle is called on.
> What should happen when the node has inline style?  Is that considered a
rule attached to the node (so taking effect in this case), or to the node's
document (in which case it should not take effect)?

With no regard to any possible compat issues, the right answer seems to be
"attached to the node", so it takes effect.

Received on Tuesday, 9 December 2014 22:20:09 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:46 UTC