JSFiddle - React, Tailwind, and code Playground

by der_robert

HTML

<div class="test1">
  <p>
    test p
  </p>
</div>

<div class="test2">
  <div>
    test p
  </div>
</div>

<div class="test3">
<table>
<tbody><th><td>wsefwefew</td></th></tbody>
</table>
</div>

CSS

.test1{
  background-color: red;
}
.test2{
  background-color: red;
}

.test1:not(p){
  background-color: blue;
}

.test2:not(div){
  background-color: green;
}
.test3:not(table){
    background-color: yellow;
}