Skip to content

Why are component styles polluted? #14399

@zbs-ha

Description

@zbs-ha

Vue version

3.5.27

Link to minimal reproduction

https://play.vuejs.org/#eNqFUrFOwzAQ/RXLS5cqGWAKoRKgDjAAAoYOXiznUlwc27KdUlTl3zk7uI0EpZvv3rvzu3u3pzfWFtseaEVrL5y0gXgIvV0wLTtrXCB3prOkdaYjs6KMQaTPrpiuy7EAqRgE6KziATAipG7klgjFvb9mlCvuOkYTMEI/Twxiv0Wd2ma8zIT8qstJbzqnwQujW7kuNt5o1L2PZEYF9pAK3JMN0mjPaEUSEjGulPl8SLngepjnvHgH8fFHfuN3McfoswMPbguMHrDA3RrCCC9fH2GH7wPYmaZXyP4HfAFvVB81jrTbXjcoe8JLau/T9qVev/nlLoD2eagoNDKHxGcU3YjrOzX6Ue5FcZnqmB5wi9nJX8afs7XKvu6TsRVpufIwnDB4eghStwZpq9XqaPJZwzH04UsBQdctNJgp0r/jhEXsmYcVRhlXEQcNXuc4aLrSWB5PZ/gGFWD1pg==

Steps to reproduce

The styles of the Comp.vue component should be isolated, but they are being polluted by ancestor class.

What is expected?

The styles of the Comp.vue component should be isolated

What is actually happening?

It works properly in Vue version <= 3.5.3.

System Info

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions