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

@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

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



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