Hacker News new | ask | show | jobs
by coxmichael 1429 days 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]) {…}
  }
1 comments

I'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.