Re: [csswg-drafts] [css-shadow-parts] consider moving part-mapping to style rules

This seems like a pretty powerful alternative to the current spec. It seems like it could be the exclusive way to describe parts. Consider:

// Defining Parts
// in x-foo
<style> {

// Forwarding Parts
// in x-host that contains an x-foo
  x-foo::part(thumb-active) {

This would make it pretty easy to define parts that match complex selectors. For example, this would make it easier to expose parts for the "red" and "black" squares on a checkerboard.

If this is at all feasible to implement it seems worth exploring, at least briefly.

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

Received on Wednesday, 25 July 2018 00:21:42 UTC