Skip to content
ClearedGet the next issue
Issue 10

Cleared 10 · October 2026 · Cleared to use. Cleared to delete. Five minutes.

Delete your scroll-animation script

Published November 9, 2026 · covers October 2026 · 2 Cleared·1 Hold

October was a thin month. Firefox 159 made three features newly available on the 27th, and a few more cleared earlier in the month. The headline is scroll-driven animations: its score in Firefox is low, but the CSS works there as well as it does in Chrome and Safari. The other deletion is align-content on an ordinary block, which retires the flex container you set up only to center something vertically.

01Cleared

Scroll-driven animations

New this month, October 27, 2026

A CSS animation normally runs on a clock. Scroll-driven animations tie it to a scroll position instead: animation-timeline: scroll() moves it along as a scroller scrolls, and view() moves it along as an element crosses the viewport. Reading-progress bars and fade-ins on scroll, which used to need a scroll listener or an IntersectionObserver, become a few declarations. Firefox was the last browser to ship it.

Delete: the script that moves an animation along with the scroll position.

CSS · before after
/* a script updates --progress on every scroll */
.bar { transform: scaleX(var(--progress)); }

/* no script. The timeline goes after the shorthand,
   which resets it to the default */
.bar {
  animation: grow linear both;
  animation-timeline: scroll(root);
}
@keyframes grow { from { transform: scaleX(0); } }

Firefox’s summary score is 0.63, against 0.89 for Chrome, which seems like a Hold at first glance, but most of the tests Firefox fails use a JavaScript API that Firefox doesn’t support. That’s why the tests fail. The animation itself holds up. On the tests of the CSS properties, Firefox 159 passes 89 of 111, Chrome 157 passes 90, and Safari 27.2 passes 86.

02Cleared

align-content in block layouts

Safe everywhere as of October 16, 2026

align-content has worked in flex and grid containers for years. It now works on an ordinary block: align-content: center on a box with a height centers its content vertically, with no change to display. Centering something no longer means turning its parent into a flex column.

Delete: the flex declarations that exist only to center a box’s content vertically.

CSS · before after
/* a flex column, only for the centering */
.panel {
  display: flex; flex-direction: column;
  justify-content: center;
}

.panel { align-content: center; }

The summary scores are low, 0.5 in Chrome and 0.45 in Safari, but Chrome’s failures are almost all one value, last baseline, and Safari’s are mostly floats: a float at the start of the centered content moves twice as far as the content around it. So before deleting, check the box for floats.

Removing flex also means collapsible margins are back in the layout.

03Hold

Scoped custom element registries

Not yet

A custom element’s name is registered once, with customElements.define('x-button', XButton), in a list the page keeps: the registry. One class per name, so two components that each ship their own button, say a design-system button and a third-party widget’s, can’t both call it <x-button>. The second one to load throws. A scoped registry gives a component its own list: create it with new CustomElementRegistry(), define names in it, and attach it to the component’s shadow root. Each component then registers its own <x-button>, and the two classes coexist.

When the shadow root is written in HTML, shadowrootcustomelementregistry on the <template> tells the browser not to apply the page’s registry to what is inside; a script hands the root its own with registry.initialize(shadowRoot).

Firefox 159 passes nearly all the tests. Safari 27.2 is the blocker. Writing the shadow root in HTML is where Safari fails: it has several bugs about which registry an element ends up with when components ship as declarative shadow roots, so keep whatever you do today until Safari fixes them.

HTML
<my-card>
  <template shadowrootmode="open" shadowrootcustomelementregistry>
    <x-button>Buy</x-button>
  </template>
</my-card>
<script>
  const registry = new CustomElementRegistry(); // this card's own list
  registry.define('x-button', CardButton);
  registry.initialize(document.querySelector('my-card').shadowRoot);
  // Move the button out of the card, and Safari 27.2 switches its registry
</script>

What didn’t make the cut

That was October: two deletions, one of them a script, and one feature Safari is not ready for yet.

Deleted something thanks to this? Got a correction? .

Subscribe