W3C home > Mailing lists > Public > public-css-archive@w3.org > January 2021

Re: [csswg-drafts] [css-cascade] [css-scoping] [cssom] What should getComputedStyle return for an element which isn't in the flat tree? (#1964)

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Wed, 13 Jan 2021 20:12:41 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-759712310-1610568760-sysbot+gh@w3.org>
Okay, we've added a paragraph to section 4 that should cover this, per the resolution in #1548:

> Elements that are not connected or are not part of the document’s flattened element tree do not participate in CSS value processing, and do not have declared, cascaded, specified, computed, used, or actual values, even if they potentially have style declarations assigned to them (for example, by a style attribute).

CSSOM still needs to define what should be output by gCS() when an element has no styles; it might already do so but I haven't checked.

@emilio Can you confirm that this looks correct?

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1964#issuecomment-759712310 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 13 January 2021 20:12:42 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:31:38 UTC