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

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