News for hackers. Stuff that matters.
Re:CSS is hard no matter how good you are at it by gabereiser on Thursday March 30, 2023 @09:47AM (#35372635)
I know what the C stands for, while it does cascade, it’s not inheritance and it always lends itself to “why does this have this style? I didn’t want that!”.
Re:CSS is hard no matter how good you are at it by windows2020 on Thursday March 30, 2023 @12:14PM (#35375060)
It's absolutely inheritance.

  .animal {
    font-weight: bold;
  }
    .animal.bear {
      color: brown;
    }

  <div class="animal bear">...</div>