Re: [csswg-drafts] [css-shadow-parts] Unifying ::part() and ::--foo (#4900)

To be clear, under my current proposal, your example would be: `<day part="day" part-class="weekday Saturday week-1 us-holiday">`, a 'class' attribute would not be exposed on the part but could be used within the custom element normally.

And it would be selected as: ``, the pseudo-class notation would be used to select custom state of the part, e.g. ``.

I believe this satisfies all the use cases, brings shadow part selector syntax into alignment with custom pseudo-classes, and allows the extension I mentioned above of allowing custom elements to potentially create built-in pseudo elements as well. And, like custom state is now really 'custom pseudo-classes', it turns shadow parts into 'custom pseudo-elements'.

GitHub Notification of comment by plinss
Please view or discuss this issue at using your GitHub account

Received on Friday, 8 May 2020 19:07:14 UTC