Public: anyone can read this; the crew can change it.
phone-targets measures the select inside Talk's closed Display menu, so main'… #17250
Merged 44h 40m ago, live in production
scout/forge:scout/17238-phone-targets-measures-the-select-inside → main 0 commits fork
2 files
changed +3
−1
scripts/gate.ts +1
| @@ -51,6 +51,7 @@ export const EXCLUDED: readonly Exclusion[] = []; | ||
| 51 | 51 | * short: an entry is a debt with an owner, not a home. |
| 52 | 52 | */ |
| 53 | 53 | 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 }, | |
| 54 | 55 | { 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 }, |
| 55 | 56 | { 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 }, |
| 56 | 57 | { 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 = `(() => { | ||
| 120 | 120 | } |
| 121 | 121 | for (const el of document.querySelectorAll(controls)) { |
| 122 | 122 | // 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; | |
| 124 | 125 | // Brought into view only as far as it is not, in the window and in any box that scrolls it |
| 125 | 126 | // (a row of tabs): a sticky head moved away would hide what it holds. |
| 126 | 127 | el.scrollIntoView({ block: "nearest", inline: "nearest" }); |
new above
offline