Review by Claude Fable 5.1, session 21a32889, of chore/picker-no-compat-label at 91bf850 as one diff against origin/main (merge base 29b6dea). Scratch worktree under /tmp, removed.
Verdict: ready to merge. No P0 or P1. Three P2 notes, none blocking.
What I checked
- Correctness. The web row is now exactly the family name:
fontOptions has no Desc, the template emits only data-rst-class, and the catalog key is gone with no reader left (grep for font.compatible across Go, templates, JS, Swift and all strings finds only the test's negative assertion). Native: Entry.detail is gone; the pop-up (attributedTitle), Format > Font (label) and the iOS popover all draw the name alone; all 12 Localizable.strings drop the key cleanly. - DOCX export and paste mappings untouched. Both map through
docx.name and fallback, not twin: ByDocxName and byDocx in internal/fonts/fonts.go, FAMILIES.find(f => f.docx…) in fixtures/fonts.mjs, docxName/fallback in DocsFonts.swift. None of that is in the diff; fonts.json is unchanged. - CSS widening, measured in Chrome for Testing 1234 at 320, 390 and 1280, branch and main, with a scratch test. Boxes (style/font/size) are byte-identical on both: 155/136/155 at 1280 and 120/120/72 at phone widths, so nothing misaligns. At 1280 the font list is 143.3 px (main 136) and every one of the 16 rows is 31.5 px (main: 31.5 to 87.8); the style and size lists stay 155 px. With classic, space-taking scrollbars (
harness.WithScrollbars(), 15 px) the font list grows to 158.3 and no row wraps, so inline-size: max-content survives a non-overlay scrollbar. The page's scrollWidth never exceeds the viewport at any width. The toolbar's own scroll width is unchanged (722 at phone widths on both). - No-flash. All 33
-run Font browser tests pass, including TestFontEachPickerEntryRendersInItsOwnFace with the new no-description and equal-height checks; the preview-face rules in the generated stylesheet are unchanged apart from the now-dead [rst-combo-desc] line. The test would fail on main (main's rows reach 87.8 px), so it exercises the change. - Native menus.
DocsFontPickerTests and DocsFontsTests all pass; the pop-up's titles are name-only in each family's face, Format > Font and the iOS popover go through the same entries.
Runs (GOTOOLCHAIN=go1.26.5, TMPDIR=/tmp): .amadan/ci.d/10-gate ends gate: ok. go test -tags browser -run Font -timeout 40m with Playwright's chromium-1234: ok in 1645 s, 0 failures (a first attempt in parallel with the gate and native runs was killed by load; the rerun on its own was clean). check-native.sh (rustup cargo): sync-fonts, both cargo suites and the wire checks pass; swift test 99 tests, 4 skipped, 2 failures, both the known OfflineDurabilityTests.
The clipped font list at 390 px. Not this branch: the list is 10 px tall on main and on the branch alike, and the cause is in select.js, not the stylesheet. place() clamps the list to every ancestor whose computed overflow-y is auto/scroll/hidden/clip, and the phone rule's overflow-x: auto on [docs-toolbar] makes its overflow-y compute to auto, so the toolbar (bottom 122) becomes a "scroller": below = 122 − 120 − 4 px gap < 0 → maxBlockSize: 0px, leaving padding and border. The list is position: fixed and anchored, so the toolbar does not actually clip it; select.js just cannot tell. A fix is data-rst-select-viewport/rst:select-viewport (select.js's told) or a rastrillo change that skips scrollers when the list is fixed. Worth its own discussion; it makes the font, style and size pickers unusable on a phone in any browser with anchor positioning.
P2 findings
- P2, internal/docs/export.go:163-167 and exporttest.go:806-816, DocsFontPicker.swift:11-12. The comments and the new test guard say Twin "stays in the manifest for DOCX export and paste", but nothing reads
Twin any more: DOCX and paste map by docx.name and fallback on all three platforms, and the Go Twin field and Swift twin are now written and never read (only exporttest.go:810 looks at it). The guard protects a dead field for a reason that is not true. Either drop the field from Go and Swift (keeping "twin" in fonts.json as documentation is fine) or reword the comments and the test to say what is really being kept. - P2, show.html phone rule (pre-existing, improved here). At 320 px the font list is 156.8 px from the box's left at 169, so its right edge is 325.8: 6 px past the viewport. On main it was 325 px wide and ended at 494.
position-try-fallbacks: flip-inline or a max-inline-size: calc(100vw - anchor(left)) on the fixed list would close it. Not this branch's rule, so not blocking. - P2, show.html:1046-1056 (unverified, Firefox only). Where anchor positioning is missing the phone block is skipped and this desktop rule applies, so the absolute list is now up to 157 px wide where it was the box's width; with the box at the right of a wrapped bar at 320 px the open list could add transient horizontal overflow. I could not measure Firefox with the chromedp rig. If Firefox is still without anchor positioning, a
max-inline-size: calc(100vw - 2rem) would cap it.
Not merged, not deployed; I edited nothing.