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

What is @nest? #323

Open
SaintPepsi opened this issue Oct 12, 2024 · 7 comments
Open

What is @nest? #323

SaintPepsi opened this issue Oct 12, 2024 · 7 comments

Comments

@SaintPepsi
Copy link

@nest :has(> &) {

@argyleink
Copy link
Owner

the first spec for CSS nesting had us use that whenever the nesting wasn't "to the right". in almost all cases though, you can just delete @nest and the nesting will match the updated spec.

@SaintPepsi
Copy link
Author

Thanks for the explanation, I cannot find any documentation on it though. did it never make it out of spec?

@argyleink
Copy link
Owner

I can't find any documentation on it either, which kind of makes sense, as it's not a supported syntax anymore. Old versions of CSS Nesting supported it, but have since removed it. Might be able to find it in archives?

@SaintPepsi
Copy link
Author

@argyleink I'm confused, are you not the person who created the tool-tip.css file?
Your commit 6973c9f with @nest has your name on it?

@argyleink
Copy link
Owner

I am. What are you looking for?

@SaintPepsi
Copy link
Author

I think i'm just lost, I was trying to understand where @nest came from in your code, was it deprecated recently?

@ViewableGravy
Copy link

For reference, I found this in the original spec as @argyleink Mentioned. I guess it was since removed in the newer versions of the spec. Love your work!

https://www.w3.org/TR/2021/WD-css-nesting-1-20210831/#:~:text=2.2.-,The%20Nesting%20At%2DRule%3A%20%40nest,-While%20direct%20nesting

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

No branches or pull requests

3 participants