Scoped styles name clash between Parent and Child Component
Vue version
3.3.4
Link to minimal reproduction
Steps to reproduce
A Parent and Child component having a css class with the same name within their own scoped styles
The class in the child is not placed on the root node Class is passed by the parent to the child
// Parent.vue
<Child class="classname" />
What is expected?
The CSS from the parent should affect the child root node.
What is actually happening?
The child root node is affected by both the parent declaration as well as its own declaration
System Info
No response
Any additional comments?
No response
We are aware that this can be an issue, but it also has its advantages (i.e. positioning children etc easily) - also it's documented behavior that we can't change outside of a major release.
https://vuejs.org/api/sfc-css-features.html#child-component-root-elements