Skip to content

CSS direct descendant wildcard rule no longer applied to child components #13387

Closed
@ajuvonen

Description

@ajuvonen

Vue version

3.5.15

Link to minimal reproduction

https://play.vuejs.org/#eNp9Um1LwzAQ/ishIIK4dnPuSx0DlYEKvqB+DEhtb122NglJunWM/XcvyTo7USEf7u65lyd3z5ZeKxWtaqAJHZtMc2WJAVurCRO8UlJb8ri5lWgJEJbMtKzIaRR3Yq74lIlxHKqxDh0LlSpTC+gRMq5SLryFdrdbHOB4j4/jThm6xm5KICaTCnKMuCyydRU5N5i2ScishObKRZzRy7mGzHIpEpLJsq6Ehz7TbFloWYs8IRsoS7kuNEDA1jy384QM+v0T70/IWZhASJU2vT180e+rMKbbrYczpG57enjHBD7chCOOjOk5tUhfzHgRLYwUuGPfndEMd8BL0M/K8TWMJu1cRlPX78HHrK7hvI1nc8iWv8QXpnExRl80GNArYPSA2VQXYAM8fXuCBu0DWMm8LjH7H/AVDG7ScQxpN/hxpN3J82zvvVK4KN7NtLEgTPspR9Rvxuczilpx5//r6990h9Flu1Hc4g+5Oa0eKyznq73A7tw59kcJ6grYkbiw5ccKtKOJvYbRKBqM6O4Lhn0ERA==

Steps to reproduce

The Vue issue helper doesn't seem to create issues, so I have to fill this form manually.

Steps to reproduce:

Create a component with a scoped style block having a CSS rule affecting its direct descendants with a wildcard rule, such as:

> * {
  max-width: 200px;
}

What is expected?

CSS rule is applied to children, as it does in 3.5.14.

What is actually happening?

CSS rule is not applied to children after 3.5.15. If I remove the direct descendant arrow, or replace the wildcard with div, the example works again.

System Info

Any additional comments?

If this is by design, then my own interpretation is flawed, apologies in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    🔨 p3-minor-bugPriority 3: this fixes a bug, but is an edge case that only affects very specific usage.has workaroundA workaround has been found to avoid the problemscope: compiler

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions