Function Extraction Done Well

Function Extraction Done Well

Extraction trades a block the reader must simulate for a name they can trust. Where to cut, why an un-nameable piece means the cut is wrong, and the honest case for inlining.

When to Refactor: A Working Decision Frame

When to Refactor: A Working Decision Frame

Smells are signals, not verdicts. Four dispositions for the smell in front of you, what actually multiplies the payoff, and the against-list worth saying out loud.

Deleting JS Dependencies: A CSS Migration Playbook

Deleting JS Dependencies: A CSS Migration Playbook

The process spine for retiring a UI library: what it actually does for you, the coverage verdicts that stop features vanishing, parity before deletion, and when it stays.

CSS Support Gates: @supports and Fallback-First Code

CSS Support Gates: @supports and Fallback-First Code

Unsupported browsers should land on a designed state, not an accident. Cascade-order fallbacks, feature-query craft, the gate inversion that drops the fallback in engines older than @supports, and gate removal.

CSS scroll-state() Queries: Stuck, Snapped, Scrollable

CSS scroll-state() Queries: Stuck, Snapped, Scrollable

The zero-height sentinel and its observer existed only to tell CSS what the engine already knew. Working stuck, snapped, and scrollable examples, plus the enhancement-only rule.

Native HTML Accordions: details, name, and CSS

Native HTML Accordions: details, name, and CSS

An accordion component is five jobs bundled together, and each one is now native. Exclusive groups without JavaScript, animated panels (height only in Chromium-based browsers, as of November 2026), and find-in-page that opens the right panel.

Animating to Auto: interpolate-size and calc-size()

Animating to Auto: interpolate-size and calc-size()

Transitions interpolate numbers, and auto is not one. How the new opt-in property and function retire the measure-then-animate pattern in Chromium, and the grid technique that works everywhere today.

CSS Entry and Exit Animations with @starting-style

CSS Entry and Exit Animations with @starting-style

Two structural gaps kept mount and unmount animations in JavaScript. For elements hidden rather than removed, @starting-style and allow-discrete close both, retiring transitionend listeners and timing constants.

CSS Form Primitives That Replace JavaScript Helpers

CSS Form Primitives That Replace JavaScript Helpers

Three small deletions: field-sizing for growing inputs, accent-color for control theming, and :user-invalid for polite validation styling — each with its own support gate.

CSS :has() Patterns That Replace JavaScript

CSS :has() Patterns That Replace JavaScript

The relational selector retires the observer-and-class-toggle layer. Three worked pattern families, the scoping rule that keeps them cheap, and where JavaScript state still belongs.

Project Inquiry