Gone Fishing LabsGet a Free Quote

Web Design · Aug 24, 2026

Every Major Browser Now Supports text-box and sibling-index. Here's Why Your Website Gets Cleaner.

Firefox 154 completes cross-browser support for text-box and sibling-index(), retiring old spacing hacks and list-counting JavaScript. Here is what that means for your business site.

Detailed view of HTML code on a computer screen, ideal for tech and software development themes.

On August 18, Mozilla shipped Firefox 154, and tucked into its developer release notes were two changes that quietly finish years of cross-browser work: support for the CSS text-box properties and support for the sibling-index() and sibling-count() functions. With that release, both features now work across Chrome, Edge, Safari, and Firefox, and MDN already lists text-box-trim as Baseline as of August 2026.

No headline will announce this, and no customer will ever ask for it by name. It still matters to anyone who owns or maintains a business website, because each of these features removes code you previously had to buy, maintain, and debug. Less custom code means fewer places for your site to break.

The mystery gap above your headings

Every font carries invisible padding inside its own metrics: extra room above capital letters and below the baseline that no designer asked for. It is why your hero headline never quite sits flush against the image next to it, why a button label looks slightly off-center next to its icon, and why card titles land at subtly different heights depending on the typeface. Designers have fought this gap for two decades with negative margins, line-height tricks, and hand-tuned offsets that quietly break whenever the font or font size changes.

The text-box shorthand replaces all of that with one honest line of CSS. A rule like text-box: trim-both cap alphabetic; tells the browser to remove the empty space above the capital letters and below the baseline, so the visible glyphs define the edge of the box instead of invisible metric padding. Chrome shipped it back in version 133 in early 2025, Safari has had it since 18.2, and Firefox 154 completes the set. The practical wins show up in the details customers notice without knowing why: buttons whose labels and icons finally share a centerline, hero sections that feel deliberately composed, and grids of cards whose titles align across the row regardless of typeface quirks.

Styling lists by position, without JavaScript

The second addition sounds abstract until you see what it replaces. sibling-index() returns an element's position among its siblings, starting at 1, and sibling-count() returns how many siblings there are in total. Combined with calc(), they let a stylesheet reason about position and quantity directly, which used to require either brittle chains of :nth-child rules or JavaScript that counted elements after the page loaded.

Real examples are easy to picture. Pricing tiers that grow slightly larger and darker from left to right. A row of process steps whose entrance animations stagger naturally with calc((sibling-index() - 1) * 60ms). Service cards that shift hue smoothly across the row using a calculated color value. When you add or remove a card in the CMS tomorrow, everything rebalances itself with zero edits.

Chrome and Edge gained these functions in June 2025, Safari followed in December, and Firefox 154 closes the gap. The JavaScript counters this retires were rarely huge, but they ran on every page load, delayed styling until execution finished, and added one more script to audit during every security review.

A quieter bonus: caching that survives marketing links

Firefox 154 also added support for the No-Vary-Search HTTP header in its disk cache. A server can use it to declare that certain URL query parameters do not change the response, which lets the browser reuse a cached copy even when the URL differs by something like utm_source or another campaign tag. Businesses attach tracking parameters to links constantly, which historically meant visitors re-downloading identical files. Once servers opt in, that duplication shrinks. It is a small change with a compounding benefit for repeat visitors.

What this means for a small business site

None of this requires a redesign, and nothing breaks if you do nothing. The value shows up gradually, in three specific ways.

First, less JavaScript doing layout work. Position counters, spacing shims, and alignment scripts exist on thousands of business sites purely because CSS could not express these ideas yet. Retiring them makes pages lighter and lets the browser respond faster to taps and clicks, which is exactly what Core Web Vitals measures.

Second, cheaper maintenance. Negative-margin hacks and nth-child chains fail silently when someone swaps a font, adds a pricing tier, or renames a class. Native CSS primitives fail loudly in one obvious place instead, which shortens every future debugging session.

Third, better defaults going forward. This is the real lesson of Baseline as a signal: features that work across every major browser are reasonable to adopt, while experimental ones should wait. You do not need to chase every announcement. You need a site built on foundations that all major browsers now agree on.

A short checklist for this week

If a developer maintains your site, three questions cover most of the opportunity. Do buttons and headings rely on negative-margin hacks to look aligned? Does any JavaScript exist purely to number or size list items? Are large assets served with distinct URLs for every campaign link? Each answer points at something that just became simpler to build cleanly, on your schedule rather than anyone else's.

The web platform improves like this constantly: not with dramatic rewrites, but with quiet deletions of work nobody enjoyed. Sites that keep pace end up faster, sturdier, and cheaper to maintain than the ones that accumulate hacks. If you would rather have someone audit which old workarounds your site still carries, that review is exactly the kind of cleanup Gone Fishing Labs does routinely, and it usually pays for itself in the first round of fixes.

Need help with a website or automation project? Talk with Gone Fishing Labs.