[go: nahoru, domu]

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-nesting] nesting selector : basic test #38373

Conversation

romainmenke
Copy link
Contributor

The css nesting specification was updated recently and & is not meaningful outside of nested contexts.

When used in the selector of a nested style rule, the nesting selector represents the elements matched by the parent rule. When used in any other context, it represents the same elements as :scope in that context (unless otherwise defined).

specification : https://drafts.csswg.org/css-nesting-1/#selectordef-

example :

<style>
& {}
</style>

This change adds a minimal test for & at the root.

@wpt-pr-bot
Copy link
Collaborator

There are no reviewers for this pull request. Please reach out on the chat room to get help with this. Thank you!

@romainmenke romainmenke force-pushed the basic-test-for-nesting-selector--witty-greenland-dog-a1416a4d5e branch from 716a578 to 9096421 Compare February 6, 2023 21:55
@nt1m nt1m requested review from sesse and emilio February 7, 2023 04:40
@sesse
Copy link
sesse commented Feb 7, 2023

There's already a test for this behavior: c82c735

@romainmenke
Copy link
Contributor Author

Thank you @sesse,
I overlooked that one.

@romainmenke romainmenke closed this Feb 7, 2023
@romainmenke romainmenke deleted the basic-test-for-nesting-selector--witty-greenland-dog-a1416a4d5e branch February 7, 2023 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants