Skip to content
ClearedGet the next issue
Issue 04

Cleared 04 · April 2026 · Cleared to use. Cleared to delete. Five minutes.

Delete your role="search" wrapper

Published May 4, 2026 · covers April 2026 · 1 Cleared·1 Hold

A thin month, and a backwards one. Baseline’s rhythm is usually set by Safari, the browser that ships least often. April’s two arrivals were both waiting on the Chromium side: Firefox and Safari had shipped contrast-color() and Math.sumPrecise() months earlier, and Chrome 147 landed on April 7 with Edge two days behind. Four more features finished their 30 months of support. One of them is a deletion.

02Hold

contrast-color()

Not yet

Hand it a background color and it returns white or black, whichever contrasts more. New this month, April 10, 2026. The deletion it promises is every hand-maintained pair of background and text custom properties.

CSS
.badge {
  background: var(--accent);
  color: contrast-color(var(--accent));
}

/* Which of white or black wins on a mid-tone
   background is the browser's call, not yours. */

The label is running ahead of the paperwork. The function’s spec is an editor’s draft that still carries the banner “This spec is not yet ready for implementation”, and in the only form browsers ship, with no target contrast stated, the spec leaves the choice of contrast algorithm to the browser. Two engines can legitimately disagree about which of white or black a mid-tone background gets. The tests show real disagreements: Firefox’s current stable run fails both cases where contrast-color() takes container units inside calc(), and Safari’s fails to repaint a gradient whose color stop uses contrast-color(currentColor). One more thing the name does not say: it maximizes contrast, it guarantees none. Against a mid-gray background the winner clears no bar, it just loses less. For now, picking the text color yourself is the only way to know what it will be.

That was April: one attribute to delete, and one new function whose own spec asks you to wait. The other four transitions gave you nothing to do, which is the honest truth about most features in most months.

Deleted something thanks to this? Got a correction? .

Subscribe