A provider's model chips held the wheel with overscroll-behavior:
contain on .mchips itself. Chromium holds the wheel in such a box even
when it doesn't overflow, so with the pointer over a short list (the
chips fit) the editor's body never scrolled on to the Advanced fields
under it. The chips now hold the wheel only while they overflow, through
the app's :where(.holds) (set by holds() on pointerover and wheel), like
every other scrolling list. A long list still scrolls on its own and
keeps the wheel at its ends.
Test: editor-chips-wheel.test.cjs, Chromium and WebKit at 900x700. Three
chips: the wheel over them scrolls the editor's body, the page never.
Two hundred: the chips scroll to their end, then three more wheels leave
the body where it was.
Broken by hand, each red, then put back:
- the old .mchips rule: Chromium red, the body stayed at 0 under the
short list.
- .holds not given to the chips (contain removed with nothing in its
place): red both engines, the body ran on 173 -> 353 past the long
list's end.
Run (mote, at this tree on e364d27fc):
- the 53 GUI files the editor's models reach, Chromium and WebKit: 885
pass, 111 red. All but two are red the same at b03a37476 without this
change and filed: model-chip-steady #4388, model-copy-id #4621,
zero-priced-free #5262, remote-magpie #4398, provider-fetch-again
#5057/#5232, models-works-only #4391, provider-models-rest #4396,
provider-picks-stay #4397, provider-typed #4673, the full-suite reds
#4600#5475#5559, plugin-move-unserved #4392#4410. The two: models-
fold's WebKit "let out and folded back" (red in another language at
the base; #4071, red on main) and model-api-preset's Chromium page
error, red 4 of 4 at b03a37476 and at origin/main 16a2dfac9 (#5838).
- at the rebased head: editor-chips-wheel green in both engines in each of 11
runs beside settings-groups, models-fold and provider-models-rest. settings-groups'
thumb check went red 3 of 13 under load and passes alone (#5839; the
thumb is placed by a ResizeObserver after the editor opens, fixed in
the test next).
- go test ./internal/gui -run 'TestCoreScriptBudget|TestI18n|TestCSS': ok.
Not tried: the real app window.