W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2015

Re: Base Template (Was Re: Minimum viable custom elements)

From: Hayato Ito <hayato@chromium.org>
Date: Mon, 16 Feb 2015 05:35:31 +0000
Message-ID: <CAFpjS_0TUfmwLQTucWxZD1U9z04DtU7uFg00tK+LhZp32rqfCQ@mail.gmail.com>
To: Jan Miksovsky <jan@component.kitchen>, public-webapps@w3.org, Dimitri Glazkov <dglazkov@google.com>
Cc: Steve Faulkner <faulkner.steve@gmail.com>, Anne van Kesteren <annevk@annevk.nl>, Ryosuke Niwa <rniwa@apple.com>
Jan,

As for the following, in https://github.com/JanMiksovsky/base-template),
> A web component spec bug
<https://www.w3.org/Bugs/Public/show_bug.cgi?id=22344> tried to resolve
this question by fixing the platform, but an initial Blink implementation
<https://code.google.com/p/chromium/issues/detail?id=263701> ran into
problems and had to be backed out. This problem is unlikely to be resolved
at the platform level anytime soon,

This is correct.  Although I've not given up speccing and implementing
"shadow as a constructor call for the super class" again,  but it won't
happen anytime soon.

On Sat Feb 14 2015 at 2:46:22 AM Jan Miksovsky <jan@component.kitchen>
wrote:

> Dimitri: Okay, I can follow up with Ryosuke. I’m happy to share our
> thoughts and needs for subclassing components.
>
> Anne/Steve: I’d originally indicated that this technique couldn't be
> applied to extending native HTML elements. Since the two of your seemed
> interested in that, I spent some time tinkering with the idea, and it turns
> out that this technique can be made to work for that situation. I’ve posted
> a quick demo (
> http://janmiksovsky.github.io/base-template/extendButton.html) showing
> subclassing of a standard HTML button element. This works best under native
> Shadow DOM. Under polyfilled Shadow DOM, base class styles can’t (yet?) be
> inherited.
>
> Anyway, I mention this in case it opens up some ideas. Thanks for the
> inspiration!
>
Received on Monday, 16 February 2015 05:35:59 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:27:25 UTC