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

Possible tangent: The `:heading(n)` pseudo-class is not a state in this sense (unlike `:hover`, `:active`, `:checked` and things like that.) While some CSS pseudo-classes represent internal states, others, such as `:nth-child`, `:matches` and `:empty` don't represent internal states, but rather express conditions about the structure of the DOM. `:heading(n)` seems like it belongs more in the latter category.

Similarly, not all pseudo-elements are parts, so for example `::part` should not be extended to cover cover `::selection` even if it addressed other kinds of built-in parts in a future extension.

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

Received on Wednesday, 1 May 2019 07:01:17 UTC