
CSS text-box: text finally centered in its box
text-box trims the invisible space above and below text, so equal padding finally looks equal, and since Firefox 154 it works in every major engine.
Tag archive

text-box trims the invisible space above and below text, so equal padding finally looks equal, and since Firefox 154 it works in every major engine.

Scoped custom element registries are now Baseline, so two web component libraries can both define <ui-button> on the same page, each inside its own shadow root.

@starting-style lets a popover, dialog or new element transition in from display: none in every engine, but animating the exit is still Chromium-only.

With Safari 27, every major browser now keeps your place when content loads above it, and overflow-anchor is how you control it.

Container style queries let a component restyle itself from the value of a custom property, and since May 2026 they work in every major browser.

One CSS declaration, field-sizing: content, lets inputs, textareas and selects size themselves to their content, and it now works in every major browser.

light-dark() now takes two images as well as two colors, so logos, gradients and backgrounds can follow the element's color scheme without a media query.

Two CSS functions that tell an element its position and how many siblings it has, so you can build staggered animations, rings and fans without JavaScript.
Why this lesson exists When you hand off a golden JSON to a teammate, you assume the...
Rachel Andrew's September roundup on web.dev lists a large batch of features reaching Baseline Newly available, among them the progress() function, the alpha() relative color function, the revert-rule keyword, <image> values in light-dark() and scroll anchoring with overflow-anchor.

With Firefox 159, animation-timeline, scroll() and view() work in every major engine, so CSS can tie an animation to scroll without a single listener.

The new alpha() function changes only the opacity of any color, keeps its color space, and has been Baseline since September 2026.