Closed
Description
Vue version
3.4.21
Link to minimal reproduction
Steps to reproduce
Have a scoped style block with native css nesting
<style scoped>
.v-card {
background-color: antiquewhite;
& .v-card-item {
background-color: blueviolet;
& .v-card-title {
background-color: brown;
}
}
}
</style>
What is expected?
.v-card {
&[data-v-7ba5bd90] {
background-color: antiquewhite;
}
& .v-card-item {
&[data-v-7ba5bd90] {
background-color: blueviolet;
}
& .v-card-title[data-v-7ba5bd90] {
background-color: brown;
}
}
}
What is actually happening?
.v-card[data-v-7ba5bd90] {
background-color: antiquewhite;
& .v-card-item[data-v-7ba5bd90] {
background-color: blueviolet;
& .v-card-title[data-v-7ba5bd90] {
background-color: brown;
}
}
}
System Info
No response
Any additional comments?
:deep needs to omit the selector for anything nested under it, so :deep(.v-card)
should just be
[data-v-7ba5bd90] .v-card {
background-color: antiquewhite;
& .v-card-item {
background-color: blueviolet;
& .v-card-title {
background-color: brown;
}
}
}