Scoped styles work not as expected
Vue version
3.3.4
Link to minimal reproduction
Steps to reproduce
- Create a child component with
<div class="wrapper">
as a root element. - Create a parent component and place the child component in
<div class="wrapper">
. - Create a scoped style in the parent component for the
.wrapper
.
What is expected?
The style isn't applied to the child component
What is actually happening?
The style is applied to the child's <div class="wrapper">
also.
System Info
No response
Any additional comments?
Maybe I don't understand and this is VERY design reasoned, but it actually makes working with components worse. Since I need to know which context a child component will be placed into. Seems a bad design for me