oficina / docs Public

fonts: hold page keys during a wait; the status hangs under the bars

Review 8 (#83).

P1: with the editor inert, focus is on the page, and WebKit's Backspace
there went back in history and lost the waiting paste. During a wait,
Backspace, Space, the arrows, Page Up/Down, Home and End are held when
they would reach the page (the body or an inert element); the title,
dialogs and comments keep them, and Tab is untouched. Leaving the page
while an action waits asks first (beforeunload).

P2: the status strip no longer lies over the formatting bar, where it
covered the controls a person tabbed to. It hangs just under the bars,
over the tray and the page's top margin, under the bars' own menus. It
takes no space, so nothing moves; the tray keeps room for one line of it
at every width, and the gate makes more room for the substitutes note
before the page is shown.

P2: the strip wraps instead of clipping, and the copy is shorter, so the
substitutes note is whole and dismissible from 320 px up.

The engines capture starts below the strip. Tests, failing first on
c159e68: TestFontEnginesAWaitKeepsThePage (Chromium and WebKit: keys
during a wait, a real input's Backspace, beforeunload), and the status
test now checks controls, the focus (after Escape into the bar) and
clipping, at 320, 390 and 1280 px, for loading, refused, unavailable and
substitutes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by paul@keymail.dev 85431efe73ac174e4a018b065f9a78e625af7616 parent c159e68
11 files changed, +342 −88
  • AGENTS.md +16 −6
  • fixtures/editor-entry.js +20 −0
  • fixtures/engines/first-reveal.mjs +5 −2
  • fixtures/engines/wait-keys.mjs +124 −0
  • fixtures/fonts-gate.mjs +16 −2
  • internal/docs/fonts_browser_test.go +98 −44
  • internal/docs/fonts_engines_browser_test.go +22 −4
  • internal/docs/render.go +3 −3
  • internal/docs/static/{editor.46336512a20874d7.js => editor.c2c7dc07e5705e7c.js} +12 −12
  • internal/docs/static/{fontsgate.c5a7dd05de721ce2.js => fontsgate.3a8c20da76487d78.js} +1 −1
  • internal/docs/views/show.html +25 −14

CI passed — run details

AGENTS.md

Loading diff…

fixtures/editor-entry.js

Loading diff…

fixtures/engines/first-reveal.mjs

Loading diff…

fixtures/engines/wait-keys.mjs

Loading diff…

fixtures/fonts-gate.mjs

Loading diff…

internal/docs/fonts_browser_test.go

Loading diff…

internal/docs/fonts_engines_browser_test.go

Loading diff…

internal/docs/render.go

Loading diff…

internal/docs/static/{editor.46336512a20874d7.js => editor.c2c7dc07e5705e7c.js}

Loading diff…

internal/docs/static/{fontsgate.c5a7dd05de721ce2.js => fontsgate.3a8c20da76487d78.js}

Loading diff…

internal/docs/views/show.html

Loading diff…