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: fergald via GitHub <sysbot+gh@w3.org>
Date: Wed, 11 Jul 2018 06:27:27 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-404059145-1531290446-sysbot+gh@w3.org>
@upsuper If you think of ::part(foo) { @outer-name() } as a style rule that sets a property on all matching elements as part of the cascade then yes. But there is no property being set. So you could just think of it as a way to specify the part mappings (that is clearer in some of the alternative versions where it's an `@` rule) and it would not be implemented as anything like a normal style rule.

I can imagine that this idea could be quite objectionable itself. So maybe an `@` rule that looks like

@partmap {
    /* this causes x-bar::part(outer) to match elements inside x-foo */
    x-foo::part(inner) => outer;
    /* expose buz-part without renaming */

GitHub Notification of comment by fergald
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2904#issuecomment-404059145 using your GitHub account
Received on Wednesday, 11 July 2018 06:27:32 UTC

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