gui-challenges icon indicating copy to clipboard operation
gui-challenges copied to clipboard

What is `@nest`?

Open SaintPepsi opened this issue 1 year ago • 7 comments

https://github.com/argyleink/gui-challenges/blob/dbd3f9997ae80a78e876871826bf61009cd51f2e/tooltips/tool-tip.css#L51

SaintPepsi avatar Oct 12 '24 21:10 SaintPepsi

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.

argyleink avatar Oct 16 '24 01:10 argyleink

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

SaintPepsi avatar Oct 16 '24 07:10 SaintPepsi

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?

argyleink avatar Oct 16 '24 08:10 argyleink

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

SaintPepsi avatar Oct 17 '24 07:10 SaintPepsi

I am. What are you looking for?

argyleink avatar Oct 17 '24 08:10 argyleink

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

SaintPepsi avatar Oct 17 '24 08:10 SaintPepsi

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

ViewableGravy avatar Oct 17 '24 08:10 ViewableGravy