From e3b64f92551514f35ef3a2bc885e867ca6f55662 Mon Sep 17 00:00:00 2001 From: Logan Date: Fri, 21 Aug 2026 00:02:27 -0400 Subject: [PATCH] test(player): assert the desktop bar's size by mechanism, not by pixels WebKit draws the same button 36x24 where Chromium draws 33x21, so the literal this pinned failed in CI on a build where nothing was wrong. A button's box comes from the UA stylesheet when the author sets nothing, and what each UA sets is its own business. What must not happen is that *we* set something. So: `min-width` and `min-height` compute to 0px, the font-size still equals that of a bare button probed in the same page, and all five boxes are identical -- which is what says the desktop is neither sized context. Checked by re-introducing the `font-size: inherit` regression, which it catches in Chromium; the literal form could only be checked by hand. --- .planning/NOTES.md | 20 ++++++++-- e2e/specs/phone-transport.spec.ts | 61 +++++++++++++++++++++++++------ 2 files changed, 67 insertions(+), 14 deletions(-) diff --git a/.planning/NOTES.md b/.planning/NOTES.md index 6dd7de0..dd1a3b0 100644 --- a/.planning/NOTES.md +++ b/.planning/NOTES.md @@ -4510,9 +4510,23 @@ stylesheet gives it one, so `font-size: inherit` on a button is a *change*, not a no-op: it took every desktop control from 33x21 to 36x24 by moving them from 13.3px to the shell's 16px. Nothing failed. The only way it surfaced was measuring the baseline by stashing the file -and re-running — which is now what `phone-transport.spec.ts` pins, with -a literal `'33x21'` rather than a range, because a range swallows three -pixels. +and re-running. + +**And the pixel it was first pinned with was the wrong assertion.** The +spec asserted the literal `'33x21'`, measured in Chromium — and WebKit +draws the same button **36x24**, so it failed in CI on a build where +nothing was wrong. A button's box comes from the UA stylesheet when the +author sets nothing, and what each UA sets is its own business. What +must not happen is that *we* set something, so that is what it asserts +now: `min-width` and `min-height` compute to `0px`, and the font-size +still equals that of a bare `