The fit for #1599 ran on a resize of the head and on a change in its
nodes. Under load the sum's box (#usageCost) sometimes shrank after the
head had been fitted, with the head's width unchanged and no node
changed, so nothing fitted it again and the sum stayed cut:
usage-sum-whole failed in 3 of 5 runs at load ~45 (Chromium en at 780px:
the sum 719.7–782.2, its box 719.7–764, the head not tight). The
ResizeObserver now watches #usageCost too.
What grows beside it after the fit isn't pinned down; the failing runs
show the box narrower than at the fit, which this catches whatever the
cause.
Verified:
- usage-sum-whole.test.cjs (Chromium and WebKit, en/zh/ja/de): 6 of 6
green at load ~43 with the change, where 3 of 5 failed just before
without it at load ~45.