Last

Syntax

Class
Properties
{...}last:{...}
{...}:last-child{...}
<div class="t1 w-full px-8 py-2 bg-c-white last:bg-c-gray-800 last:color-white">first</div> <div class="t1 w-full px-8 py-2 bg-c-white last:bg-c-gray-800 last:color-white">second</div> <div class="t1 w-full px-8 py-2 bg-c-white last:bg-c-gray-800 last:color-white">third</div> <div class="t1 w-full px-8 py-2 bg-c-white last:bg-c-gray-800 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.
Last elements shall have a bottom border width of 2px.
t1 last:bb-2
.t1.last\:bb-2:last-child { border-bottom-width: 2px; }