Skip to content

Scoped style and slotted elements #710

Open
@mysticatea

Description

@mysticatea

I have questions about <style scoped>, <slot> and ::slotted pseudo-element selectors.

  • Does not Vue.js support CSS scoping spec?
  • If so, does Vue.js have a plan to support CSS scoping spec?

For example to explain: gist@de98f89c48e16dea2230d13925d3b3e2.

I expected a blue box to exist inside of a red box because the CSS rule slot::slotted { } should apply to distributed elements.
But actually, a red box existed inside of another red box bacause CSS rule div { } applied to distributed elements wrongly and slot::slotted { } was merely ignored.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions