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

Re: [webcomponents] style hooks for custom elements

From: Eric Bidelman <ericbidelman@google.com>
Date: Wed, 27 Mar 2013 10:10:48 -0700
Message-ID: <CAGW2wGGU1bUxMmbrrjMghaAJ==nLWDWuGg5MzL5GLwksrZB8aA@mail.gmail.com>
To: Mike Kamermans <nihongo@gmail.com>
Cc: public-webapps@w3.org
If you're looking for specs, they're a bit scattered. If you look in the
top right corner
of some of the slides in that deck, you'll see a gears icon pointing to the
relevant spec. e.g.:
http://html5-demos.appspot.com/static/webcomponents/index.html#36

I used the term "styling hooks" to describe the various ways you can use
the different pieces:
custom pseudo elements, css variables, @host,...to style a component. I
ended up wrinting
an article about styling Shadow DOM over at html5rocks. Might be useful to
you:
http://www.html5rocks.com/en/tutorials/webcomponents/shadowdom-201/.

That stuff still applies here, as Shadow DOM is the basis for Custom
Elements.




On Wed, Mar 27, 2013 at 9:52 AM, Mike Kamermans <nihongo@gmail.com> wrote:

> Hey all,
>
> are style hooks still part of any spec relating to web components?
> Someone pointed out an older demo mentioning them
> (http://html5-demos.appspot.com/static/webcomponents/index.html) and I
> can't seem to find mention of them any more. (I like the idea,
> although the syntax from the demo is truly dire if you value
> not-designed-for-programmers-by-programmers syntax... =x)
>
> - Mike
>
>
Received on Wednesday, 27 March 2013 21:28:35 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 27 March 2013 21:28:36 UTC