UI & interactionAccessible dialogs: modal, sheet, confirm
One small dialog core that does the whole job: a modal, side and bottom sheets you can drag away, and awaitable confirm() and prompt().
Eight patterns that run with no script, each one CSS file and the markup it reads.
Measured 11 November 2026 on 13th Gen Intel(R) Core(TM) i9-13900H, Chrome 157, 1920×1080 at 1×. 600 frames × 3 rounds, median kept. What ran: Measured while the demo walks itself through the patterns (a new one every 2.5 s, the camera flying to a new place in between): style, layout and paint of CSS-only interactions. No script runs in the patterns; the demo only checks radios. Phones: tiers are being measured next.
| Machine | GPU ms | CPU ms | CPU p95 |
|---|---|---|---|
| unknown GPU · 13th Gen Intel(R) Core(TM) i9-13900Hreference · measuring tool | not timed | <0.01 | <0.01 |
| apple · Apple A19 Proin a browser tab · 16 November 2026 | not timed | <0.01 | 0.02 |
| Intel Arc 140V (Xe2-LPG) · Intel Core Ultra 7 258Vin a browser tab · 15 November 2026 | not timed | <0.01 | 0.01 |
Bars against one 16.7 ms frame. A browser-tab run is timed in a visible tab without the tool’s scripted input, so read it as close, not exact.
name (each markup function takes one), or two lists on a page will share one sort.anchor-name and position-anchor both take var()).auto needs interpolate-size: allow-keywords on an ancestor (the accordion’s root sets it), and content-visibility … allow-discrete in the transition, or the content vanishes at once on close instead of folding.From HaTac. Fully custom code.
WAI-ARIA Authoring Practices Guide (W3C): The radio group pattern: every switch here is a native radio group (one Tab stop, arrows move and select), honestly announced as radios rather than ARIA tabs.
David Douglas & Thomas Peucker, Algorithms for the reduction of the number of points required to represent a digitized line (1973): The contour and line simplification in geometry.ts.
Marching squares, the 2D case of William Lorensen & Harvey Cline’s marching cubes (1987): The terrace contours in geometry.ts.
Mark Jarzynski & Marc Olano, Hash Functions for GPU Rendering (2020): Their PCG hash for the island’s value noise (terrain.ts).
WAI-ARIA Authoring Practices Guide (W3C): The accordion pattern, met by native <details> and <summary> (a button that says whether it is expanded) rather than ARIA.
Jane Ori, CSS type casting with tan(atan2()): The trick of dividing two lengths into a plain number, which scales the fixed-pixel planes to their boxes.