-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Open
Labels
π¨ p3-minor-bugPriority 3: this fixes a bug, but is an edge case that only affects very specific usage.Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.scope: compiler
Description
Vue version
3.5.17
Link to minimal reproduction
Steps to reproduce
the scoped style is not fully scoped.
it will affect outside components.
just like #6214
if outside components use class root and hovered, .a will be red.
<style scoped> .root:hover .a { color: red; } </style>What is expected?
.root[xxx]:hover .a[xxx2] {
color: red;
}
What is actually happening?
.root:hover .a[xxx2] {
color: red;
}
System Info
Any additional comments?
If this is unlikely to change as it would be a breaking change at this point, can a new method be added? like :scoped()?
Or is there any way to better handle this type of case at present?
Metadata
Metadata
Assignees
Labels
π¨ p3-minor-bugPriority 3: this fixes a bug, but is an edge case that only affects very specific usage.Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.scope: compiler