W3C home > Mailing lists > Public > public-css-archive@w3.org > November 2017

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

From: Emilio Cobos Álvarez via GitHub <sysbot+gh@w3.org>
Date: Thu, 09 Nov 2017 17:55:17 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-343237226-1510250117-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.3.1 : Thursday, 9 November 2017 17:55:19 UTC