Not last

Syntax

Class
Properties
{...}not-last:{...}
{...}:not(:last-child){...}
<div class="t1 w-full px-8 py-2 bg-c-white not-last:bg-c-gray-800 not-last:color-white">first</div> <div class="t1 w-full px-8 py-2 bg-c-white not-last:bg-c-gray-800 not-last:color-white">second</div> <div class="t1 w-full px-8 py-2 bg-c-white not-last:bg-c-gray-800 not-last:color-white">third</div> <div class="t1 w-full px-8 py-2 bg-c-white not-last:bg-c-gray-800 not-last:color-white">last</div>

Specification test cases

The test cases below are imported from the Turbo CSS specification. They have been executed upon loading this page.
Non-last elements shall have a bottom border width of 1px.
t1 not-last:bb-1
.t1.not-last\:bb-1:not(:last-child) { border-bottom-width: 1px; }