Open
Description
Vue version
@d637bd6
Link to minimal reproduction
Steps to reproduce
In the minimal reproduction, open the Playground's compiled CSS tab.
What is expected?
body h1[data-v-7ba5bd90] {
background-color: purple;
}
What is actually happening?
body {
background-color: purple;
}
System Info
No response
Any additional comments?
You can just remove :global(
and )
to get the desired effect here, but this is just a minimal reproduction to demonstrate the issue. If this pattern shouldn't be allowed (e.g. because it's useless due to the way scoped CSS is implemented), then this should produce an error instead of this confusingly incorrect output. This wasted a lot of my time.
Note that module
doesn't seem to have this issue, only scoped
. :deep
also seems to work fine.