Re: [w3c/webcomponents] Discussion: child elements cannot determine whether they are "active" or not (#817)

I'd be concerned with exposing such callbacks because different engines have different kinds of behavior here. For example Gecko can end up rebuilding ancestor layout trees, if it turns out that dynamically inserting something is hard, like with some IB-split cases and table cases that WebKit and Blink get wrong. A naive way of defining this would result in a "detached" and "attached" callback for no reason.

A callback for getting into the flat tree and out, or such, seems more sensible to me, or alternatively, maybe, an explicit API that gives you whether you're rendered? There's other APIs that already expose that (`getClientRects()` returns an empty list if you don't have a layout box for example).

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/817#issuecomment-495937879

Received on Saturday, 25 May 2019 18:12:54 UTC