- From: Lubomír Blažek via GitHub <sysbot+gh@w3.org>
- Date: Sun, 23 Jan 2022 10:03:21 +0000
- To: public-css-archive@w3.org
I just found out that following syntax is also possible to select grandparent in `postcss-nesting`, but it is still something that should be added to the spec to clear things up, if it's the correct way to do this. ```css grandparent { & .parent { /* "&" references ".grandparent" */ @nest :hover > & .child { /* "&" references ".grandparent .parent" */ color: red; } } } ``` equivalent to `:hover > :is(.grandparent .parent) .child` And to be honest, according to spec I would expect the result be `:hover > .grandparent .parent .child`, which would not be good for this case obviouslly. It might be possible to select grandparent, but it might not.. it's not very clear in spec right now. -- GitHub Notification of comment by lubomirblazekcz Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6977#issuecomment-1019451185 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Sunday, 23 January 2022 10:03:22 UTC