Re: [csswg-drafts] [cssom] What should getComputedStyle return for an element which isn't in the flat tree?

I guess this affects a few more specs.

CSS Cascade says in https://drafts.csswg.org/css-cascade/#inheriting:

> Inheritance propagates property values from parent elements to their children. The inherited value of a property on an element is the computed value of the property on the element’s parent element. For the root element, which has no parent element, the inherited value is the initial value of the property.

But there's no mention to the flattened tree anywhere in that spec.

CSS Scoping says in https://drafts.csswg.org/css-scoping/#shadow-gloss:

> However, the shadow tree, when it exists, is used in the construction of the flattened element tree, which CSS uses for all purposes after Selectors (including inheritance and box construction).

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

Received on Thursday, 9 November 2017 17:55:18 UTC