3 ms·
Can we not just have something like: a { &:hover {…} &:parent(.theme):hover {…} } No crazy selectors with an ampersand in the middle allowed, but
by coxmichael 4y ago
Can we not just have something like:
a {
&:hover {…}
&:parent(.theme):hover {…}
}
No crazy selectors with an ampersand in the middle allowed, but a way to apply a parent or ancestor selector, a bit like :where() or :is(). There could be :in() for ancestors.
No one needs this monstrosity:
dialog {
@nest html:has(&[open]) {…}
}
- toastal 4y agoI'd be happy if they just left it here. You can only nest pseudo-classes and pseudo-selectors, and everything else either use your own tool to generate the CSS or just not not nest.