W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2018

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

From: Steve Orvell via GitHub <sysbot+gh@w3.org>
Date: Wed, 25 Jul 2018 00:21:09 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-407593077-1532478064-sysbot+gh@w3.org>
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
  .thumb.active {

// 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 https://github.com/w3c/csswg-drafts/issues/2904#issuecomment-407593077 using your GitHub account
Received on Wednesday, 25 July 2018 00:21:42 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:33 UTC