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

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