Empty

Syntax

Class
Properties
{...}empty:{...}
{...}:empty{...}
<div class="t1 w-full px-8 h-24 bg-c-white empty:bg-c-blue"></div> <div class="t1 w-full px-8 h-24 bg-c-white empty:bg-c-blue">not empty</div>

Specification test cases

The test cases below are imported from the Turbo CSS specification. They have been executed upon loading this page.
Hide element when empty.
t1 empty:hidden
.t1.empty\:hidden:empty { display: none; }