vue 3.3.9 :is() style result is not as expected
Vue version
3.3.9
Link to minimal reproduction
Steps to reproduce
Open the link to access directly
What is expected?
Expect p tag background color to be red
What is actually happening?
Vue 3.3.9
Vue 3.3.8
System Info
No response
Any additional comments?
No response
I think it meets expectations, like this playground. After enabling scoped, it should not affect the style of subcomponents.
I also think this is in line with expectations. In #8929, we have enhanced the :is
and :where
selectors. Currently, they are only valid within the current component scope, which is more in line with the document's definition of component scope style.
https://vuejs.org/api/sfc-css-features.html#child-component-root-elements