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

Re: computedStyle of cloneNode

From: Rune Lillesveen <rune@opera.com>
Date: Wed, 4 May 2016 09:13:49 +0200
Message-ID: <CANz6XvQUFCzt9VgG9bDqgkNUp2hEn6KJCAiHUfGQfdR1LP9O=g@mail.gmail.com>
To: Shane Stephens <shans@google.com>
Cc: Garrett Smith <dhtmlkitchen@gmail.com>, www-style list <www-style@w3.org>, Anne van Kesteren <annevk@annevk.nl>
On Wed, May 4, 2016 at 2:46 AM, Shane Stephens <shans@google.com> wrote:
> Bringing this back on track...
> (1) several of us have now stated that computed style for detached nodes
> doesn't really make sense. Rune may disagree with this stance but I'm not
> sure?

I don't argue the usefulness of it, just that it can be spec'ed and
implemented in a way consistent with computed style in display:none
subtrees and resolved values.

> (2) if this were a general rule then we'd have an answer for the initial
> question (what to do with computed style of a cloned node) - as the clone
> would not be in-document, it wouldn't have a computed style.

Yes, a cloned node would be no different than a node created with say
document.createElement() not in-document in this sense.

Rune Lillesveen
Received on Wednesday, 4 May 2016 07:14:17 UTC

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