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

@JanMiksovsky is the idea in that example that the dot elements are so simple that they don't need Shadow DOM to implement their rendering, but do need states? And therefore we need a way to define states independent of Shadow DOM? 

The example as written will result in the dots not rendering at all (since they default to display:inline and have no content or other styling that would force them to render anything) so it's hard to evaluate the example. I'd expect a dot to do something like contain a bullet character, or be a block (or inline block?) that renders as a circle through use of border radius. And presumably you'd want dots to know how to space themselves properly, and perhaps to have a configurable size. With more of that filled in, I'm not sure it would still seem like a good idea for them to have no Shadow DOM.

-- 
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-487851241

Received on Tuesday, 30 April 2019 07:50:35 UTC