Re: [components] Isolated Imports and Foreign Custom Elements

2015-05-04 Thread Anne van Kesteren
On Sat, May 2, 2015 at 12:07 AM, Maciej Stachowiak m...@apple.com wrote: It’s already possible to run a constructor from another global object in the non-cross-origin case. Okay, that makes more sense. I first read it as a suggestion we'd construct a node using a same-global constructor and

Re: :host pseudo-class

2015-05-04 Thread Anne van Kesteren
On Tue, May 5, 2015 at 2:08 AM, Tab Atkins Jr. jackalm...@gmail.com wrote: On Thu, Apr 30, 2015 at 10:51 PM, Anne van Kesteren ann...@annevk.nl wrote: But maybe you're right and the whole pseudo-class/pseudo-element distinction is rather meaningless. But at least pseudo-class til date made

Re: :host pseudo-class

2015-05-04 Thread Jonas Sicking
On Sun, Apr 26, 2015 at 8:37 PM, L. David Baron dba...@dbaron.org wrote: On Saturday 2015-04-25 09:32 -0700, Anne van Kesteren wrote: I don't understand why :host is a pseudo-class rather than a pseudo-element. My mental model of a pseudo-class is that it allows you to match an element based

Re: :host pseudo-class

2015-05-04 Thread Anne van Kesteren
On Tue, May 5, 2015 at 6:52 AM, Jonas Sicking jo...@sicking.cc wrote: My understanding is that the question here isn't what is being matched, but rather what syntax to use for the selector. I.e. in both cases the thing that the selector is matching is the DocumentFragment which is the root of

Re: Imperative API for Node Distribution in Shadow DOM (Revisited)

2015-05-04 Thread Elliott Sprehn
On Thu, Apr 30, 2015 at 6:22 AM, Anne van Kesteren ann...@annevk.nl wrote: On Thu, Apr 30, 2015 at 3:05 PM, Hayato Ito hay...@chromium.org wrote: That's the exactly intended behavior in the current spec. The timing of distribution is not observable. Right, but you can synchronously observe

Re: Imperative API for Node Distribution in Shadow DOM (Revisited)

2015-05-04 Thread Anne van Kesteren
On Tue, May 5, 2015 at 6:58 AM, Elliott Sprehn espr...@chromium.org wrote: We can solve this problem by running the distribution code in a separate scripting context with a restricted (distribution specific) API as is being discussed for other extension points in the platform. That seems like

RE: [components] Isolated Imports and Foreign Custom Elements

2015-05-04 Thread Travis Leithead
(1) All of the parameters to registerElement() should really be provided by the cross-origin element itself. It makes no sense for prototype and extends to come from the hosting environment. It does makes sense for the cross-origin component to own the element name and extends that it

Re: :host pseudo-class

2015-05-04 Thread Tab Atkins Jr.
On Thu, Apr 30, 2015 at 10:51 PM, Anne van Kesteren ann...@annevk.nl wrote: On Fri, May 1, 2015 at 7:39 AM, Elliott Sprehn espr...@chromium.org wrote: That's still true if you use ::host, what is the thing on the left hand side the ::host lives on? I'm not aware of any pseudo element that's not