Skip to content
SpiderTags

All articles

Web tech

New in browsers this season: CSS features you can use on your site today

Scroll-driven animations, forms that size themselves, tidier headings and smarter components now work in every major browser. What each one does, and a few lines of code to try.

SpiderTags4 min read

An open laptop on a wooden desk by a window, its screen showing soft green, sand and amber shapes, with plants and a warm lamp.

Every few weeks Chrome, Safari, Firefox and Edge ship new versions, and every now and then a feature arrives in the last of the four. From that day, the web community calls it Baseline: something you can use on a public website without worrying about who visits with which browser. This autumn several useful ones crossed that line. Here are the ones we find most useful for business websites, with a few lines of code for the people who build them.

Scroll-driven animations

An animation can now follow the scroll position instead of a clock: a section that fades in as it comes into view, or a reading-progress bar along the top. With Firefox 159 on 27 October 2026, this works in every major browser, so effects like these no longer need an animation library, which keeps pages lighter.

CSS
.reveal {
  animation: fade-in linear both;
  animation-timeline: view();
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

Form fields that fit what people type

With field-sizing: content, text boxes, inputs and select menus grow or shrink with what a visitor types. A message box in a contact form no longer needs a script to grow as someone writes. Baseline since June 2026.

forms.cssCSS
input,
textarea {
  field-sizing: content;
  min-width: 50px;
  max-width: 350px;
}

Headings and buttons that line up exactly

Every font adds a little space above its capital letters and below its baseline, which is why text in a button or next to an icon often looks a pixel or two off-centre. The text-box property trims that space, so text lines up with what is around it, exactly as designed. Baseline since August 2026.

CSS
.title {
  text-box: trim-both cap alphabetic;
}

Components that switch style cleanly

Container style queries let a component change its look based on a setting on a parent element, for example a light and a dark version of the same card, without duplicating styles. They became Baseline in May 2026, for custom properties: style(--theme: dark) works everywhere, while querying ordinary properties is not yet supported in any browser.

Two more small helpers arrived in August: sibling-index() and sibling-count() tell an element its position among its siblings and how many there are, which makes staggered effects possible without numbering every item by hand. And the :open selector, Baseline since May, styles details, dialogs and pickers while they are open, handy for FAQs and menus.

Safe to rely on: :has()

The "parent selector" :has(), which styles an element by what it contains, such as a card that holds a picture, has now been supported long enough to count as Baseline widely available. It can be used without fallbacks.

At a glance

Features in this article and their Baseline status, as MDN and web.dev state it
FeatureWhat it doesBaseline
Scroll-driven animationsAnimations that follow the scrollNewly available, October 2026
field-sizing: contentFields that grow with their textNewly available, June 2026
text-boxTrims the extra space around textNewly available, August 2026
sibling-index(), sibling-count()Position and number of siblings in CSSNewly available, August 2026
Container style queriesStyle by a parent's settingNewly available, May 2026
:openStyles open details, dialogs, pickersNewly available, May 2026
:has()Styles an element by what it containsWidely available

Not in every browser yet

The releases behind it

Browser versions from September to November 2026
Safari 27.0 (14 September), 27.1 and 27.2 (October). Chrome 153 and 154 (September), 155 and 156 (October). Firefox 155 to 157 (September), 158 (13 October) and 159 (27 October). Edge 153 to 158, from 10 September to 19 November.

For a business, none of this is a reason to rebuild a site. It is a reason to ask, the next time a page is updated, whether a script can make way for a few lines of CSS: fewer moving parts, faster pages.

Share

Enough reading

Now let's talk about your project.

If something here sounds like what you need, tell us where you are. We reply by email.

Discuss a project

Or write to us:hello@spidertags.com

SpiderTags
hello@spidertags.com
Language
Theme
Discuss a project