From b445b62a69cdfeedc39b3066f02fbea469620d02 Mon Sep 17 00:00:00 2001 From: Samraaj Bath Date: Sat, 4 Jul 2026 00:59:48 -0700 Subject: [PATCH] Fix flex-basis 0% collapse, fluid max-width centering, letter-spacing snap, video frame normalization - Keep basis/h/min-h [0%] literal (0% content-sizes on an indefinite axis; 0px is definite zero) and fold grow + zero-basis into flex-1 - a flex:1 1 0% child no longer collapses to height 0 in auto-height columns - Width centering accepts per-viewport caps (max-width: min(Npx, fluid)) with symmetric gaps -> mx-auto + banded max-w instead of literal banded margins that drift off-centre between captured widths; non-painted viewports no longer poison the inference - letter-spacing keeps sub-0.1px precision (no zero snap); style gate normalizes Chromium's letter-spacing "normal" <-> 0px serialization - Videos pause + seek to frame 0 before every source AND clone screenshot, removing playback-time nondeterminism from perceptual evidence 278 tests pass (19 new), typecheck clean. Co-Authored-By: Claude Fable 5 --- compiler/src/capture/capture.ts | 42 +++++++++++++++++++- compiler/src/generate/css.ts | 35 +++++++++++++---- compiler/src/generate/tailwind.ts | 29 +++++++++++++- compiler/src/validate/gates.ts | 18 ++++++++- compiler/src/validate/render.ts | 7 +++- compiler/test/css.test.ts | 26 +++++++++++++ compiler/test/gates.test.ts | 38 ++++++++++++++++++ compiler/test/tailwind.test.ts | 64 ++++++++++++++++++++++++++++++- 8 files changed, 246 insertions(+), 13 deletions(-) create mode 100644 compiler/test/gates.test.ts diff --git a/compiler/src/capture/capture.ts b/compiler/src/capture/capture.ts index fc7eaa1..1f71d2f 100644 --- a/compiler/src/capture/capture.ts +++ b/compiler/src/capture/capture.ts @@ -646,6 +646,40 @@ async function captureScreenshot( } } +/** + * Pause every