Heerich.js renders styleable voxel scenes as SVG

David Aerne built Heerich.js, a small engine for 3D voxel scenes inspired by the sculptures of Erwin Heerich. Output is rendered as SVG, and since SVG can consume CSS variables, the scenes can effectively be styled with CSS.

A clean, minimal isometric visualization of a large 3D grid with a small black cube, accompanied by explanatory text about alignment logic and visual styles.

Focus motion, and how to make it float

Chris Coyier demonstrated animating focus with view transitions and set "unnecessary motion" against WebAIM's conditional prefers-reduced-motion handling. In the article's comments, Polypane founder Kilian Valkhof contributed his CSS-only approach to floating focus — what Coyier calls "flying focus."

Polypane's snippet store

Polypane launched a snippet store. One entry, the 1-Click De-crapulator, clicks a component and copies its basic HTML without the surrounding bloat.

A card-based web interface for the Polypane Snippet Store featuring a sidebar with various filters and a collection of snippets for web development and accessibility.

Syntax notes: of <selector> and range queries

Paweł Grzybek pointed out that the of <selector> syntax is already Baseline, and that it can be combined with CSS nesting. The selector below picks the second .intro among its siblings, but only when that element is a <div>. It resembles div:nth-of-type(2), except the latter is limited to elements of the same type, while of <selector> accepts any selector.

div:nth-child(2 of .intro) {
  /* ... */
}

In nesting, & stands for the parent selector — here .intro — so the next example selects the second .intro within .intro. Since nothing precedes :nth-child(), .intro can be any element in this case.

.intro {
  :nth-child(2 of &) {
    /* ... */
  }
}

Preethi Sam had covered the same conditional validation angle of of <selector> just over a week earlier.

The range syntax brings comparison operators (>, <, >=, <=) to media and container queries. Ahmad Shadeed explains how it works, but browser support needs careful checking: browsers are still shipping container queries, and the range syntax for those queries ships separately. Container style queries, for instance, arrive in Firefox 151 next week, yet their range syntax will be behind a flag.

Scroll-driven animations explained

Josh Comeau's walkthrough of scroll-driven animations covers the tricky parts, view() timelines included. With scroll-triggered animations on the way, it's worth getting comfortable with scroll-driven animations first.

Platform releases: Chrome 148 and Safari 26.5