Repository navigation
Description
Code that reads a box while something moves it keeps reading the wrong place: during Leaf's scroll glide, a scroll the browser or a script started, or box-motion's carry. Of the 56 geometry bug fixes on 18 geometry files from 22 July to 18 November 2026, 10 are this kind, and 6 of those landed between 14 and 18 November: #6429, #6010, #6055, #6009, #5989 and #5978, after #5384, #5306, #5225 and #5042. Six of the ten each added another answer to where the box will stand or when the page shows it there:
followsEnd,scrollStartsandlandGlidesinscrolling.jsscrollDrawninarrivals.jsCARRYinbox-motion.jsseenRect's rest flag ingeometry.js
The other kinds of geometry bug that recurred across modules stopped once one module answered their question, as drawn and skipper, the seen reader, box-motion and the margin's one observer did. This kind has no such owner.
A possible direction: one reader that says, for any box, where the motion now running will leave it and when the page shows it there, whatever the motion is; then the six helpers' callers move onto it and the helpers go. Start by listing what each helper's callers ask, to see whether one question covers them.
Unconfirmed: that one question covers those callers. Nobody has listed them.
Rejected on 18 November 2026: one owner for all measured geometry. A page-wide box cache would have prevented 7 of the 56 fixes, 4 of them only as well as the single fresh reader each fix built, and made 8 worse: fixes that narrowed what a change invalidates, and motion that places a box and then reads it. A read/write phase split would have prevented the 7 forced-layout bugs but delayed 5 place-then-read fixes by a frame. Neither would have prevented any of the six above, and neither would bring Firefox's inputs within budget (#6479), since layout is about 0.1 ms of a wheel step there.
The counts come from five model readers, each reading a share of the 256 commits' messages in full; a sixth re-judged the 86 they kept or flagged and spot-checked about 15 they left out. The table, one row per commit with its reasons, is ~/.tmp/leaf.measured-geometry-owner/geo/geo-bugs.tsv on Max's Mac. A bug fixed only outside the 18 files isn't counted.
Max paused this work on 18 November 2026; it waits on his go-ahead, and on his call whether an owner in the core runtime is worth what it adds.
This was written by Claude Code on behalf of max-sixty
Activity
Read where Leaf's glides leave a node from the browser, rather than a…
max-sixty commentedon Nov 23, 2026
Closing as not planned. I listed what each helper's callers ask, and they ask five different questions rather than one. The question several of them shared, where Leaf's own glides will leave a box, has had one owner since #6810 (
scrollGoalandwhereGlidesLandinscrolling.js). Codex made the same list separately and found no smaller merge worth making.followsEnd(scrolling.js): whether a box stands at its scroll end with no glide taking it away. It already reads Read where Leaf's glides leave a node from the browser, rather than a model of sticky layout #6810's owner, for its one caller.scrollStarts(scrolling.js): how many moves Leaf has started in a box, so the comment box can tell a new walk from its own.landGlides(scrolling.js): ends the running glides before code that can't ask where they land: the browser's own answer to Tab and PageDown, the comment box's placement and the Go-to map.scrollDrawn(arrivals.js): when the browser has drawn a scroll Leaf stopped. No script can read where a scroll the browser drives will end, so no owner could answer this one.CARRY(box-motion.js): one keyframe name in the scan of the page's running animations that says whether the focused box is being carried.seenRect's rest flag (geometry.js): the floating panel's own motion, read at its layout box. Fold the floating panel where keyboard focus lands under it #6815 reads the panel at rest the same way where it decides whether a key acts on the focused control.