From 7426af446e2d26871b56f367d24f93dcbc19d0f1 Mon Sep 17 00:00:00 2001 From: Abdul Wahab Date: Sat, 22 Aug 2026 06:54:26 +0500 Subject: [PATCH] Fix: give the color-mix hex fixture explicit pixel size jsdom does no layout; Greptile asked for width/height on .mix-hex-brand so the static fixture stays deterministic. Prepared with AI assistance. Co-authored-by: Cursor --- tests/fixtures/antipatterns/color.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/fixtures/antipatterns/color.html b/tests/fixtures/antipatterns/color.html index 1f77a7edb..b3bc33fca 100644 --- a/tests/fixtures/antipatterns/color.html +++ b/tests/fixtures/antipatterns/color.html @@ -47,7 +47,7 @@ .mix-glow p { color: #ded9cf; font-size: 16px; } /* issue #578 — #000 inside color-mix is an ingredient; white-ish text on the mixed dark green must not be scored against phantom black. */ - .mix-hex-brand { background: linear-gradient(135deg, color-mix(in srgb, var(--mix-hex-brand) 92%, #000), color-mix(in srgb, var(--mix-hex-brand-deep) 90%, #000)); padding: 20px; } + .mix-hex-brand { background: linear-gradient(135deg, color-mix(in srgb, var(--mix-hex-brand) 92%, #000), color-mix(in srgb, var(--mix-hex-brand-deep) 90%, #000)); width: 400px; height: 120px; padding: 20px; } /* currentcolor surface: background-color paints with the element's own text color, which is itself a var() token here. jsdom hands both through verbatim, so the walk must resolve the token via the