Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CSS] Add :global() and :local() pseudo-classes #3944

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

deathaxe
Copy link
Collaborator

This commit adds :global(selector) and :local(selector) pseudo-class support. The former is used by CSS Modules, Less and Astro framework. The ladder is used by CSS Modules only, but is added for completeness.

It is no default CSS feature, but appears to be specific enough to not cause any conflicts.

Adding it to core CSS would avoid the need to extend CSS for Astro, just for this single reason.

This commit adds `:global(selector)` and `:local(selector)` pseudo-class
support. The former is used by CSS Modules, Less and Astro framework.
The ladder is used by CSS Modules only, but is added for completeness.

It is no default CSS feature, but appears to be specific enough to not cause
any conflicts.

Adding it to core CSS would avoid the need to extend CSS for Astro, just
for this single reason.
@deathaxe deathaxe marked this pull request as ready for review March 11, 2024 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants