Public: anyone can read this; the crew can change it.

phone-targets measures the select inside Talk's closed Display menu, so main'… #17250

opened this in answer to

Merged 44h 40m ago, live in production

scout/forge:scout/17238-phone-targets-measures-the-select-inside → main 0 commits fork

  • Merged. scout/17238-phone-targets-measures-the-select-inside was merged into main as 8874dc1.

Review

Sign in to review this change.
2 files changed +3 −1
scripts/gate.ts +1
@@ -51,6 +51,7 @@ export const EXCLUDED: readonly Exclusion[] = [];
5151 * short: an entry is a debt with an owner, not a home.
5252 */
5353 export const SLOW: readonly Exclusion[] = [
54 { file: "test/phone-targets.test.ts", reason: "launches a real headless Chrome for each page it measures; 2.2 s to 2.9 s a test under full-suite load", issue: 17238 },
5455 { file: "test/shared-density.test.ts", reason: "spawns a fresh bun child that loads the whole app and makes forges to read its own RSS; 2 s alone, 2.3 s a test under full-suite load", issue: 16857 },
5556 { file: "test/bundle-boot.test.ts", reason: "bundles src/main.ts with bun build --minify and boots the one file with no source beside it; 2.6 s a test under full-suite load", issue: 16853 },
5657 { file: "test/bundle-workers.test.ts", reason: "bundles src/main.ts and every worker, then loads each worker from the bundle; 4 s a test under full-suite load", issue: 17019 },
test/phone-targets.test.ts +2 −1
@@ -120,7 +120,8 @@ const EXPRESSION = `(() => {
120120 }
121121 for (const el of document.querySelectorAll(controls)) {
122122 // A diff line keeps its reading height, and the whole row is its tap target (#16427): its number is covered by the row.
123 if (el.getClientRects().length === 0 || getComputedStyle(el).visibility === "hidden" || inSentence(el) || el.matches(".dn-comment")) continue;
123 // Only what is drawn: a closed <details> still lays its content out (content-visibility: hidden), so a closed menu's select has boxes no finger can reach.
124 if (!el.checkVisibility() || getComputedStyle(el).visibility === "hidden" || inSentence(el) || el.matches(".dn-comment")) continue;
124125 // Brought into view only as far as it is not, in the window and in any box that scrolls it
125126 // (a row of tabs): a sticky head moved away would hide what it holds.
126127 el.scrollIntoView({ block: "nearest", inline: "nearest" });

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs