Repository navigation
Give back a widget's readable fallback when the runtime cannot start, reserve a label's room once its control is drawn, and settle main's nightly - #1497
Conversation
… reserve a label's room once its control is drawn, and settle main's nightly Four nightly failures on main, each fixed at its cause. **A diagram whose renderer never arrives took the room (#1485).** A live page gives an unrendered `lf-diagram` the drawing's `available` width from first paint, and only `html:not([data-lf-interactive])` gave the source the column back. When the renderer failed to load, the page did not start, but the mark stayed, so the source sat at the room's left edge, 1552px wide against a 720px column. The tab and gloss rules each restated the fault as `:not([data-lf-startup-error])`; the diagram's rule, the `x-height` clip and the chart's hidden source did not. Now `prepaint.js` takes `data-lf-interactive` off when a fault is `incomplete` (something the page needs did not arrive), so every rule keyed on the mark gives back its fallback at once, and the tab and gloss rules drop their copy of the fault. An uncaught error in code that did load keeps the mark, since the page may still present. `data-lf-startup-error` still names the reason. Behavior moved: `test_a_drawing_that_has_not_drawn_claims_no_room` held that the source reads in the column through every page's loading interval; since #1485 a live page reserves the room then. It is now `test_a_drawing_that_will_never_draw_claims_no_room`, with the same assertions, about the page whose renderer cannot arrive. **The interaction gallery's Play press moved Loop and Viewport (#1484).** #1484 shows only a tab set's first panel before it upgrades, so the gallery, in the Interactions panel, reserved its toggle's words while undrawn: a 0px floor, which a face-change re-measure never replaced. `reserve` now takes its floor inside `measure`, now where the control has a box and otherwise the first time it has one, so no caller can reserve from an undrawn place. The playground's own `measure` wrapper goes. **The passage sweep counted chart sources a drawing then replaced.** The feature-gallery sweep unhid every panel and collected its blocks in the same script; a chart in a shut panel draws once it has a box, and on a slow machine its drawing replaced the source mid-sweep, leaving a detached range (reproduced on main at 6x CPU throttling, about one run in three). Whether the charts have drawn before the sweep depends on timing, so no single commit flips it. The test now waits for the page to finish what the reveal started before it sweeps. **The diff test asserted the native disclosure marker (#1472).** #1472 made a file's row a flex row that draws its own triangle. The test now holds that each row shows ▶ when shut and ▼ when open. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
left a comment
There was a problem hiding this comment.
The changed passage sweep now leaves browser errors on the feature gallery. The CI test job fails at teardown with four ResizeObserver loop completed with undelivered notifications errors in test_real_page_passages_can_be_quoted[feature-gallery]. I reproduced that failure locally at this head; the same test passed at the PR's base commit. Its passage assertions pass, so the reveal and wait need to finish without the observer loop for this fix to be validated.
CI's test job fails on the PR's changed feature-gallery passage sweep with ResizeObserver loop errors.
…ivery reports nothing `reserve` now takes its floor inside `measure`, which is often a ResizeObserver delivery, and each floor observed the root again. A fresh root observation inside a delivery asks for a shallower one than the delivery in progress, which Chrome reports as "ResizeObserver loop completed with undelivered notifications": four of them when the passage sweep revealed every panel of the feature gallery. The root is now observed once, when the module loads. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
The first |
Four nightly failures on main, each fixed at its cause.
A diagram whose renderer never arrives took the room (#1485). A live
page gives an unrendered
lf-diagramthe drawing'savailablewidth fromfirst paint, and only
html:not([data-lf-interactive])gave the source thecolumn back. When the renderer failed to load, the page did not start, but
the mark stayed, so the source sat at the room's left edge, 1552px wide
against a 720px column. The tab and gloss rules each restated the fault as
:not([data-lf-startup-error]); the diagram's rule, thex-heightclip andthe chart's hidden source did not. Now
prepaint.jstakesdata-lf-interactiveoff when a fault isincomplete(something the pageneeds did not arrive), so every rule keyed on the mark gives back its
fallback at once, and the tab and gloss rules drop their copy of the fault.
An uncaught error in code that did load keeps the mark, since the page may
still present.
data-lf-startup-errorstill names the reason.Behavior moved:
test_a_drawing_that_has_not_drawn_claims_no_roomheldthat the source reads in the column through every page's loading interval;
since #1485 a live page reserves the room then. It is now
test_a_drawing_that_will_never_draw_claims_no_room, with the sameassertions, about the page whose renderer cannot arrive.
The interaction gallery's Play press moved Loop and Viewport (#1484).
#1484 shows only a tab set's first panel before it upgrades, so the
gallery, in the Interactions panel, reserved its toggle's words while
undrawn: a 0px floor, which a face-change re-measure never replaced.
reservenow takes its floor insidemeasure, now where the control has abox and otherwise the first time it has one, so no caller can reserve from
an undrawn place. The playground's own
measurewrapper goes. Since a flooris now often taken inside a resize delivery, the root that face changes are
watched on is observed once at module load rather than by each floor, which
inside a delivery Chrome reports as "ResizeObserver loop completed with
undelivered notifications".
The passage sweep counted chart sources a drawing then replaced. The
feature-gallery sweep unhid every panel and collected its blocks in the same
script; a chart in a shut panel draws once it has a box, and on a slow
machine its drawing replaced the source mid-sweep, leaving a detached range
(reproduced on main at 6x CPU throttling, about one run in three). Whether
the charts have drawn before the sweep depends on timing, so no single
commit flips it. The test now waits for the page to finish what the reveal
started before it sweeps.
The diff test asserted the native disclosure marker (#1472). #1472 made
a file's row a flex row that draws its own triangle. The test now holds that
each row shows ▶ when shut and ▼ when open.
🤖 Generated with Claude Code