Re: [webcomponents] Define the behavior of '::slotted' (the former name is '::content'). (#331)

Thanks, it is clearer now.

Another question: Do we allow `::slotted` without function-style parameter?
In that case, any element slotted under <slot> would match the rule?
In the default slot case, text node could match the rule, then?

E.g. ``::slotted` would be almost equivalent to `::slotted(*)`, but if a text node is slotted under a
`<slot>`, it might be different.

In shadow's style:
```css
::slotted { color: green; }
::slotted(*) { color: blue; }
```

where in this HTML:
```html
<div>
   :shadow-root
       <slot name="blue"></slot>
       <slot></slot>
   <div slot="blue">This text should be in blue.</div>
   <div>(1)Is this color blue?</div>
   (2)Is this color green?
</div>
```



---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/331#issuecomment-165679112

Received on Friday, 18 December 2015 05:44:52 UTC