JSFiddle - React, Tailwind, and code Playground

by nilloc

HTML

<div top>
  nope
</div>

<div top="2">
  yup
</div>

<div>ner</div>

CSS

div[top]:not( [top=""] ){
  background-color:red;
}