W3C home > Mailing lists > Public > public-css-archive@w3.org > February 2018

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

From: Amelia Bellamy-Royds via GitHub <sysbot+gh@w3.org>
Date: Thu, 08 Feb 2018 02:55:01 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-363986481-1518058495-sysbot+gh@w3.org>
A comparison could be made to SVG `<symbol>` and `<defs>` children, which are never rendered directly. When the element is cloned into a use-element shadow tree, the clone inherits from that context. But the original DOM elements can still have matched & inherited styles (based on its DOM tree parents), even if they are never used because the element isn't rendered.  I *think* all browsers now calculate styles in that case -- although Firefox used to be (maybe still is) buggy, treating them as detached elements.

GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1964#issuecomment-363986481 using your GitHub account
Received on Thursday, 8 February 2018 02:55:06 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:24 UTC