Re: [w3c/webcomponents] Custom pseudo-classes for host elements via shadow roots (:state) (#738)

The expectation — but not requirement — would be that elements exposing pseudo-classes would often have a shadow root. I tried to keep the example as short as possible to focus on the aspects related to custom parts and pseudo-classes, and tried to reflect that with the comment in `DotElement`:

```js
// Not shown: Creation and population of shadow root...
```

The example is a simplification of our [Carousel](https://component.kitchen/elix/Carousel) component, whose dots indeed have a shadow root. (As you guess, it has a div that renders as a circle through border-radius.)

When I have a moment, I'll try to revise the gist to show the use of a shadow root.

-- 
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/738#issuecomment-488018248

Received on Tuesday, 30 April 2019 16:20:39 UTC