79673160

Date: 2025-06-20 09:43:40
Score: 0.5
Natty:
Report link

This is now possible with native CSS nesting.

https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_nesting

Just be sure to have semicolon ; before the nested selector, or else the whole block is invalid

.foo {
  color: red;

  > .bar {
    color: blue;
  }

  &:before {
    color: green;
  }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Datsos