W3C home > Mailing lists > Public > www-style@w3.org > May 2016

Re: computedStyle of cloneNode

From: L. David Baron <dbaron@dbaron.org>
Date: Tue, 3 May 2016 14:08:22 -0700
To: Rune Lillesveen <rune@opera.com>
Cc: Shane Stephens <shans@google.com>, www-style list <www-style@w3.org>
Message-ID: <20160503210822.GA17348@pescadero.dbaron.org>
On Tuesday 2016-05-03 11:22 +0200, Rune Lillesveen wrote:
> The Gecko behavior looks sane from what I've tested:
> https://jsfiddle.net/csujdtsn/

Gecko's behavior is weird in at least the case of calling
win1.getComputedStyle(element in win2):

 * if win2 is being presented, this will use the styles from win2's

 * if win2 is not being presented (e.g., it's for an iframe that is
   in a display:none subtree or in an iframe that is not in a
   document), this will use the styles from win1's document.


𝄞   L. David Baron                         http://dbaron.org/   𝄂
𝄢   Mozilla                          https://www.mozilla.org/   𝄂
             Before I built a wall I'd ask to know
             What I was walling in or walling out,
             And to whom I was like to give offense.
               - Robert Frost, Mending Wall (1914)

Received on Tuesday, 3 May 2016 21:08:54 UTC

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