[css-cascade] [css-scoping] [cssom] What should getComputedStyle return for an element which isn't in the flat tree? · Issue #1964 · w3c/csswg-drafts (original) (raw)
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?