Re: [Shadow] Q: Removable shadows (and an idea for lightweight shadows)?

2015-03-26 Thread Dominic Cooney
On Fri, Mar 27, 2015 at 2:53 AM, Travis Leithead < travis.leith...@microsoft.com> wrote: > Hi folks, > > > > Today’s ShadowDOM model is designed around only adding shadow roots to > element in the ‘light side’. I assume this is intentional, but was hoping > someone could describe why this design

Re: [Shadow] Q: Removable shadows (and an idea for lightweight shadows)?

2015-03-26 Thread Hayato Ito
getElement* functions have been removed, [1], [2], from the ShadowRoot. [1]: https://github.com/w3c/webcomponents/commit/3d5f147812edaf74cc4f07d294836cafdf48534f [2]: https://github.com/w3c/webcomponents/commit/6416fdfe7fc87e47aa89aac8ce5430389b9ad653 See also the relevant discussions: - https://

Re: [Shadow] Q: Removable shadows (and an idea for lightweight shadows)?

2015-03-26 Thread Elliott Sprehn
On Thu, Mar 26, 2015 at 1:38 PM, Ryosuke Niwa wrote: > > On Mar 26, 2015, at 1:23 PM, Travis Leithead < > travis.leith...@microsoft.com> wrote: > > You make a series of excellent points. > > > > In the sense that you have a new set of nodes to manage holistically, then > having some sort of “doc

Re: [Shadow] Q: Removable shadows (and an idea for lightweight shadows)?

2015-03-26 Thread Ryosuke Niwa
> On Mar 26, 2015, at 1:23 PM, Travis Leithead > wrote: > > You make a series of excellent points. > > In the sense that you have a new set of nodes to manage holistically, then > having some sort of “document” container does makes sense for that (a > ShadowRoot) in order to place all your

Re: [Shadow] Q: Removable shadows (and an idea for lightweight shadows)?

2015-03-26 Thread Justin Fagnani
On Thu, Mar 26, 2015 at 11:36 AM, Travis Leithead < travis.leith...@microsoft.com> wrote: > > From: Justin Fagnani [mailto:justinfagn...@google.com] > >> Elements expose this “shadow node list” via APIs that are very similar > to > >> existing node list management, e.g., appendShadowChild(), > ins

RE: [Shadow] Q: Removable shadows (and an idea for lightweight shadows)?

2015-03-26 Thread Travis Leithead
: Removable shadows (and an idea for lightweight shadows)? On Thu, Mar 26, 2015 at 11:36 AM, Travis Leithead mailto:travis.leith...@microsoft.com>> wrote: > From: Justin Fagnani > [mailto:justinfagn...@google.com<mailto:justinfagn...@google.com>] >> Elements expose this “sh

Re: [Shadow] Q: Removable shadows (and an idea for lightweight shadows)?

2015-03-26 Thread Elliott Sprehn
On Thu, Mar 26, 2015 at 11:36 AM, Travis Leithead < travis.leith...@microsoft.com> wrote: > > From: Justin Fagnani [mailto:justinfagn...@google.com] > >> Elements expose this “shadow node list” via APIs that are very similar > to > >> existing node list management, e.g., appendShadowChild(), > ins

Re: [Shadow] Q: Removable shadows (and an idea for lightweight shadows)?

2015-03-26 Thread Ryosuke Niwa
> On Mar 26, 2015, at 10:53 AM, Travis Leithead > wrote: > Today’s ShadowDOM model is designed around only adding shadow roots to > element in the ‘light side’. I assume this is intentional, but was hoping > someone could describe why this design was chosen? Or said another way, if > there wa

RE: [Shadow] Q: Removable shadows (and an idea for lightweight shadows)?

2015-03-26 Thread Travis Leithead
>From: Daniel Freedman [mailto:dfre...@google.com] >How would you style these "shadow" children? Would the main document CSS >styles affect these children? I don’t know :-) Let's assume that main document CSS styles wouldn't affect them, as that seems to be a fundamental requirement for shadow

Re: [Shadow] Q: Removable shadows (and an idea for lightweight shadows)?

2015-03-26 Thread Daniel Freedman
How would you style these "shadow" children? Would the main document CSS styles affect these children? On Thu, Mar 26, 2015 at 11:36 AM, Travis Leithead < travis.leith...@microsoft.com> wrote: > > From: Justin Fagnani [mailto:justinfagn...@google.com] > >> Elements expose this “shadow node list”

RE: [Shadow] Q: Removable shadows (and an idea for lightweight shadows)?

2015-03-26 Thread Travis Leithead
> From: Justin Fagnani [mailto:justinfagn...@google.com] >> Elements expose this “shadow node list” via APIs that are very similar to >> existing node list management, e.g., appendShadowChild(), >> insertShadowBefore(), >> removeShadowChild(), replaceShadowChild(), shadowChildren[], >> shadowC

Re: [Shadow] Q: Removable shadows (and an idea for lightweight shadows)?

2015-03-26 Thread Justin Fagnani
On Thu, Mar 26, 2015 at 10:53 AM, Travis Leithead < travis.leith...@microsoft.com> wrote: > Hi folks, > > > > Today’s ShadowDOM model is designed around only adding shadow roots to > element in the ‘light side’. I assume this is intentional, but was hoping > someone could describe why this design

[Shadow] Q: Removable shadows (and an idea for lightweight shadows)?

2015-03-26 Thread Travis Leithead
Hi folks, Today's ShadowDOM model is designed around only adding shadow roots to element in the 'light side'. I assume this is intentional, but was hoping someone could describe why this design was chosen? Or said another way, if there was an imperative API to _remove_ a shadow DOM, would that