The design language that makes your AI harness better at design.
JavaScript
{"args":["<!doctype html>\n<html><head>\n<!-- impeccable-disable low-contrast -- exported brand doc -->\n<style>\n .faint { color: #ff00aa; }\n .brand { font-family: Verdana } /* impeccable-disable-line design-system-font */\n .also { font-family: Verdana }\n</style></head>\n<body><p class=\"faint\">faint text</p><p class=\"brand\">x</p><p class=\"also\">y</p></body></html>\n"],"result":{"file":{"$set":["low-contrast"]},"line":{"$map":[[6,{"$set":["design-system-font"]}]]},"nextLine":{"$map":[]}}}
{"args":["<!doctype html>\n<html><head><style>\n .card { font-family: Verdana, sans-serif; }\n .brand { font-family: Inter, sans-serif; }\n .dot { width: 8px; height: 8px; border-radius: 50%; animation: blink 1s infinite; }\n .off { color: #ff00aa; }\n</style></head>\n<body>\n <div class=\"card\">Hi</div>\n <p class=\"brand\">Brand</p>\n <span class=\"dot\"></span>\n <p class=\"off\">Off palette</p>\n</body></html>\n"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}
{"args":[".hero { transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); }\n.glow { box-shadow: 0 0 40px rgba(99, 102, 241, 0.6); }\n/* impeccable-disable-next-line bounce-easing: intentional bounce */\n.bounce { animation-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55); }\n"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[[4,{"$set":["bounce-easing"]}]]}}}
{"args":["---\nconst title = 'Astro inset shadow stripe regression';\n---\n\n<main>\n <h1>{title}</h1>\n <section aria-labelledby=\"should-flag\">\n <h2 id=\"should-flag\">Should flag</h2>\n <article data-case=\"Kinpaku Edge\"><h3>Kinpaku Edge</h3></article>\n <article data-case=\"Patina Edge\"><h3>Patina Edge</h3></article>\n <article data-case=\"Accent Edge\"><h3>Accent Edge</h3></article>\n <article data-case=\"Signal Blue Edge\"><h3>Signal Blue Edge</h3></article>\n <article data-case=\"Chromatic Hex Edge\"><h3>Chromatic Hex Edge</h3></article>\n <article data-case=\"Named Red Edge\"><h3>Named Red Edge</h3></article>\n <article data-case=\"Chromatic Rgb Edge\"><h3>Chromatic Rgb Edge</h3></article>\n <article data-case=\"Chromatic Oklch Edge\"><h3>Chromatic Oklch Edge</h3></article>\n <article data-case=\"Trailing Inset Edge\"><h3>Trailing Inset Edge</h3></article>\n <article data-case=\"Trailing Inset Token Edge\"><h3>Trailing Inset Token Edge</h3></article>\n <article data-case=\"Inset Named Token Edge\"><h3>Inset Named Token Edge</h3></article>\n <article data-case=\"Two Length Edge\"><h3>Two Length Edge</h3></article>\n <article data-case=\"Two Length Trailing Inset Edge\"><h3>Two Length Trailing Inset Edge</h3></article>\n </section>\n <section aria-labelledby=\"should-pass\">\n <h2 id=\"should-pass\">Should pass</h2>\n <article data-case=\"Neutral Shadow Token\"><h3>Neutral Shadow Token</h3></article>\n <article data-case=\"Current Color Edge\"><h3>Current Color Edge</h3></article>\n <article data-case=\"Selected State Edge\" aria-current=\"page\"><h3>Selected State Edge</h3></article>\n <article data-case=\"Hairline Edge\"><h3>Hairline Edge</h3></article>\n <article data-case=\"Thick Fill Edge\"><h3>Thick Fill Edge</h3></article>\n <article data-case=\"Blurred Edge\"><h3>Blurred Edge</h3></article>\n <article data-case=\"Narrow Artwork\"><h3>Narrow Artwork</h3></article>\n <article data-case=\"Black Hex Edge\"><h3>Black Hex Edge</h3></article>\n <article data-case=\"Black Named Edge\"><h3>Black Named Edge</h3></article>\n <article data-case=\"Gray Hex Edge\"><h3>Gray Hex Edge</h3></article>\n <article data-case=\"Dimgray Named Edge\"><h3>Dimgray Named Edge</h3></article>\n <article data-case=\"Black Rgb Edge\"><h3>Black Rgb Edge</h3></article>\n <article data-case=\"Shorthand Neutral Hex Edge\"><h3>Shorthand Neutral Hex Edge</h3></article>\n <article data-case=\"Commented Out Edge\"><h3>Commented Out Edge</h3></article>\n <article data-case=\"Trailing Inset Neutral Edge\"><h3>Trailing Inset Neutral Edge</h3></article>\n <article data-case=\"Important Edge\"><h3>Important Edge</h3></article>\n <article data-case=\"Cascade Override Edge\"><h3>Cascade Override Edge</h3></article>\n <article data-case=\"Cascade Cancelled Edge\"><h3>Cascade Cancelled Edge</h3></article>\n <article data-case=\"Color First Edge\"><h3>Color First Edge</h3></article>\n <article data-case=\"Color First Var Edge\"><h3>Color First Var Edge</h3></article>\n <article data-case=\"Two Length Neutral Edge\"><h3>Two Length Neutral Edge</h3></article>\n <article data-case=\"Space Rgb Neutral Edge\"><h3>Space Rgb Neutral Edge</h3></article>\n <article data-case=\"Two Length Blurred Edge\"><h3>Two Length Blurred Edge</h3></article>\n </section>\n</main>\n\n<style is:inline>\n [data-case=\"Kinpaku Edge\"] { box-shadow: inset 3px 0 0 var(--ks-kinpaku-deep); }\n [data-case=\"Patina Edge\"] { box-shadow: inset 3px 0 0 var(--ks-patina-deep); }\n [data-case=\"Accent Edge\"] { box-shadow: inset -4px 0 0 var(--brand-accent); }\n [data-case=\"Signal Blue Edge\"] { box-shadow: inset 0 5px 0 var(--signal-blue); }\n [data-case=\"Neutral Shadow Token\"] { box-shadow: inset 3px 0 0 var(--shadow-color); }\n [data-case=\"Current Color Edge\"] { box-shadow: inset 3px 0 0 currentColor; }\n [data-case=\"Selected State Edge\"][aria-current=\"page\"] { box-shadow: inset 3px 0 0 var(--brand-accent); }\n [data-case=\"Hairline Edge\"] { box-shadow: inset 2px 0 0 var(--brand-accent); }\n [data-case=\"Thick Fill Edge\"] { box-shadow: inset 14px 0 0 var(--brand-accent); }\n [data-case=\"Blurred Edge\"] { box-shadow: inset 3px 0 5px var(--brand-accent); }\n [data-case=\"Narrow Artwork\"] { width: 24px; box-shadow: inset 3px 0 0 var(--brand-accent); }\n\n /* Literal colors: authored CSS spells neutrals as hex and keywords, not as\n the computed rgb()/oklch() forms a browser emits. */\n [data-case=\"Chromatic Hex Edge\"] { box-shadow: inset 4px 0 0 #6366f1; }\n [data-case=\"Named Red Edge\"] { box-shadow: inset 4px 0 0 red; }\n [data-case=\"Chromatic Rgb Edge\"] { box-shadow: inset 4px 0 0 rgb(99, 102, 241); }\n [data-case=\"Chromatic Oklch Edge\"] { box-shadow: inset 4px 0 0 oklch(65% 0.18 250); }\n [data-case=\"Black Hex Edge\"] { box-shadow: inset 4px 0 0 #000; }\n [data-case=\"Black Named Edge\"] { box-shadow: inset 4px 0 0 black; }\n [data-case=\"Gray Hex Edge\"] { box-shadow: inset 4px 0 0 #e5e7eb; }\n [data-case=\"Dimgray Named Edge\"] { box-shadow: inset 4px 0 0 dimgray; }\n [data-case=\"Black Rgb Edge\"] { box-shadow: inset 4px 0 0 rgb(0, 0, 0); }\n [data-case=\"Shorthand Neutral Hex Edge\"] { box-shadow: inset 4px 0 0 #1118; }\n\n /* `inset` is order-independent per spec; these paint the same stripe as above. */\n [data-case=\"Trailing Inset Edge\"] { box-shadow: 4px 0 0 #6366f1 inset; }\n [data-case=\"Trailing Inset Token Edge\"] { box-shadow: 4px 0 0 var(--brand-accent) inset; }\n /* The keyword must only be stripped standalone: this token merely contains it. */\n [data-case=\"Inset Named Token Edge\"] { box-shadow: inset 4px 0 0 var(--inset-accent); }\n [data-case=\"Trailing Inset Neutral Edge\"] { box-shadow: 4px 0 0 #000 inset; }\n\n /* box-shadow takes <length>{2,4}: blur and spread are optional and default to\n 0, so these paint the same stripe as the four-length forms above. */\n [data-case=\"Two Length Edge\"] { box-shadow: inset 4px 0 var(--brand-accent); }\n [data-case=\"Two Length Trailing Inset Edge\"] { box-shadow: 0 5px #6366f1 inset; }\n [data-case=\"Important Edge\"] { box-shadow: inset 4px 0 var(--brand-accent) !important; }\n [data-case=\"Cascade Override Edge\"] { box-shadow: none; box-shadow: inset 4px 0 red; }\n [data-case=\"Cascade Cancelled Edge\"] { box-shadow: inset 4px 0 red; box-shadow: none; }\n [data-case=\"Color First Edge\"] { box-shadow: red 4px 0 inset; }\n [data-case=\"Color First Var Edge\"] { box-shadow: var(--brand-accent) 4px 0 0 inset; }\n [data-case=\"Two Length Neutral Edge\"] { box-shadow: inset 4px 0 #000; }\n [data-case=\"Space Rgb Neutral Edge\"] { box-shadow: inset 4px 0 rgb(0 0 0); }\n [data-case=\"Two Length Blurred Edge\"] { box-shadow: inset 4px 0 5px var(--brand-accent); }\n\n /* Commented-out rules are not live CSS.\n [data-case=\"Commented Out Edge\"] { box-shadow: inset 4px 0 0 var(--brand-accent); }\n */\n</style>\n"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}
{"args":["/*\n * Pseudo-element stripe fixture for the regex engine (issue #394).\n *\n * The side-tab silhouette built as an absolutely-positioned ::before/::after\n * bar instead of a border. scanCssTextForPseudoStripe already caught these on\n * full HTML pages; this fixture pins the standalone-stylesheet path. The\n * data-case attribute in each selector lands in the finding snippet, so the\n * test can attribute every flag/pass case individually.\n */\n\n:root {\n --stripe-fixture-neutral: #e5e7eb;\n}\n\n/* ── FLAG: the issue reproducer — inset shorthand pin + 4px chromatic bar ── */\n.card[data-case=\"Inset Shorthand Left Edge\"]::before {\n content: \"\";\n position: absolute;\n inset: 0 auto 0 0;\n width: 4px;\n background: #7c3aed;\n}\n\n/* ── FLAG: longhand edge pins; unresolvable var() errs toward detection ── */\n.card[data-case=\"Longhand Left Edge\"]::before {\n content: \"\";\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n width: 4px;\n background: var(--accent);\n}\n\n/* ── FLAG: horizontal variant riding the bottom edge ── */\n.card[data-case=\"Bottom Edge\"]::after {\n content: \"\";\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n height: 4px;\n background: #f43f5e;\n}\n\n/* ── FLAG: height:100% full-height stripe on the right edge ── */\n.card[data-case=\"Full Height Right Edge\"]::before {\n content: \"\";\n position: absolute;\n top: 0;\n right: 0;\n height: 100%;\n width: 3px;\n background: oklch(60% 0.2 300);\n}\n\n/* ── PASS: neutral gray divider is not an accent stripe ── */\n.card[data-case=\"Neutral Divider\"]::before {\n content: \"\";\n position: absolute;\n inset: 0 auto 0 0;\n width: 4px;\n background: var(--stripe-fixture-neutral);\n}\n\n/* ── PASS: 24px is a panel, not a stripe ── */\n.card[data-case=\"Wide Panel\"]::before {\n content: \"\";\n position: absolute;\n inset: 0 auto 0 0;\n width: 24px;\n background: #7c3aed;\n}\n\n/* ── PASS: no position: absolute — not an overlay stripe ── */\n.card[data-case=\"Static Underline\"]::before {\n content: \"\";\n width: 4px;\n background: #7c3aed;\n}\n\n/* ── PASS: 1px hairline is a divider ── */\n.card[data-case=\"Hairline Divider\"]::before {\n content: \"\";\n position: absolute;\n inset: 0 auto 0 0;\n width: 1px;\n background: #7c3aed;\n}\n\n/* ── PASS: hover-conditional underline is an affordance, not decoration ── */\n.link-row[data-case=\"Hover Underline\"]:hover::after {\n content: \"\";\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n height: 4px;\n background: #7c3aed;\n}\n\n/* ── PASS: pinned to one edge but not full-height — a badge, not a stripe ── */\n.card[data-case=\"Floating Badge\"]::before {\n content: \"\";\n position: absolute;\n left: 0;\n width: 4px;\n height: 12px;\n background: #7c3aed;\n}\n\n/* ── PASS: commented-out CSS is not a live rule ──\n.card[data-case=\"Commented Out Stripe\"]::before {\n content: \"\";\n position: absolute;\n inset: 0 auto 0 0;\n width: 4px;\n background: #7c3aed;\n}\n*/\n"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}
{"args":["<template>\n <div class=\"card\">\n <div class=\"body\">Component with a pseudo-element stripe in its style block</div>\n </div>\n</template>\n\n<script setup>\nconst label = 'pseudo-stripe fixture';\n</script>\n\n<style scoped>\n/* FLAG: same silhouette as a border side-tab, drawn as a ::before bar */\n.card[data-case=\"Component Left Edge\"]::before {\n content: \"\";\n position: absolute;\n inset: 0 auto 0 0;\n width: 4px;\n background: #7c3aed;\n}\n\n/* PASS: neutral hairline divider */\n.card[data-case=\"Component Neutral Divider\"]::before {\n content: \"\";\n position: absolute;\n inset: 0 auto 0 0;\n width: 1px;\n background: #e5e7eb;\n}\n</style>\n"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}
{"args":["<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>Anti-Patterns That Should Be Flagged</title>\n <script src=\"https://cdn.tailwindcss.com\"></script>\n <style>\n body { font-family: system-ui, sans-serif; background: #f9fafb; padding: 2rem; }\n h1 { font-size: 2rem; margin-bottom: 0.5rem; }\n h2 { font-size: 0.875rem; margin: 2.5rem 0 0.75rem; color: #4b5563; border-bottom: 1px solid #e5e7eb; padding-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.08em; }\n p.intro { color: #6b7280; margin-bottom: 2rem; max-width: 36rem; }\n .cards { display: grid; gap: 1rem; max-width: 28rem; }\n .card { background: white; padding: 1rem; border-radius: 0.375rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }\n .card h3 { font-weight: 600; color: #111827; font-size: 0.875rem; }\n .card p { font-size: 0.8125rem; color: #6b7280; margin-top: 0.25rem; }\n\n /* CSS side-tab variants */\n .card-shorthand-left { border-left: 4px solid #3b82f6; }\n .card-shorthand-right { border-right: 5px solid #8b5cf6; }\n .card-longhand-left { border-left-width: 3px; border-left-style: solid; border-left-color: #10b981; }\n .card-longhand-right { border-right-width: 6px; border-right-style: solid; border-right-color: #ef4444; }\n\n /* CSS top/bottom + border-radius */\n .card-css-top { border-radius: 12px; border-top: 4px solid #3b82f6; }\n .card-css-bottom { border-radius: 12px; border-bottom: 3px solid #8b5cf6; }\n </style>\n</head>\n<body>\n <h1>Anti-Patterns: Should Flag</h1>\n <p class=\"intro\">Every example on this page should be detected by the anti-pattern scanner.</p>\n\n <!-- TAILWIND SIDE-TAB -->\n <h2>Tailwind Side-Tab</h2>\n <div class=\"cards\">\n <div class=\"border-l-4 border-blue-500 bg-white p-4 rounded-r shadow-sm\">\n <h3>border-l-4 + rounded-r</h3>\n <p>The classic AI tell.</p>\n </div>\n <div class=\"border-r-4 border-purple-500 bg-white p-4 rounded-l shadow-sm\">\n <h3>border-r-4 + rounded-l</h3>\n <p>Right side variant.</p>\n </div>\n <div class=\"border-e-8 border-red-500 bg-white p-4 rounded-l shadow-sm\">\n <h3>border-e-8 + rounded-l</h3>\n <p>Logical inline-end, extra thick.</p>\n </div>\n </div>\n\n <!-- CSS SIDE-TAB -->\n <h2>CSS Side-Tab</h2>\n <div class=\"cards\">\n <div class=\"card card-shorthand-left\">\n <h3>border-left: 4px solid</h3>\n <p>CSS shorthand.</p>\n </div>\n <div class=\"card card-shorthand-right\">\n <h3>border-right: 5px solid</h3>\n <p>CSS shorthand right.</p>\n </div>\n <div class=\"card card-longhand-left\">\n <h3>border-left-width: 3px</h3>\n <p>CSS longhand.</p>\n </div>\n <div class=\"card card-longhand-right\">\n <h3>border-right-width: 6px</h3>\n <p>CSS longhand right.</p>\n </div>\n </div>\n\n <!-- TOP/BOTTOM + ROUNDED -->\n <h2>Top/Bottom + Rounded</h2>\n <div class=\"cards\">\n <div class=\"border-t-4 border-blue-500 rounded-lg bg-white p-4 shadow-sm\">\n <h3 class=\"font-semibold text-sm\">border-t-4 + rounded-lg</h3>\n <p class=\"text-sm text-gray-600\">Top accent on rounded card.</p>\n </div>\n <div class=\"border-b-4 border-purple-500 rounded-xl bg-white p-4 shadow-sm\">\n <h3 class=\"font-semibold text-sm\">border-b-4 + rounded-xl</h3>\n <p class=\"text-sm text-gray-600\">Bottom accent on rounded card.</p>\n </div>\n <div class=\"border-t-2 border-emerald-500 rounded-md bg-white p-4 shadow-sm\">\n <h3 class=\"font-semibold text-sm\">border-t-2 + rounded-md</h3>\n <p class=\"text-sm text-gray-600\">Even thin top border on rounded.</p>\n </div>\n <div class=\"card card-css-top\">\n <h3>CSS border-top + border-radius</h3>\n <p>Top border from style block.</p>\n </div>\n <div class=\"card card-css-bottom\">\n <h3>CSS border-bottom + border-radius</h3>\n <p>Bottom border from style block.</p>\n </div>\n </div>\n <!-- DARK MODE VARIANTS -->\n <h2>Dark Mode</h2>\n <div class=\"cards\">\n <div class=\"border-l-4 border-cyan-400 rounded-lg bg-gray-800 p-4 shadow-sm\">\n <h3 class=\"font-semibold text-sm text-white\">Dark card + border-l-4 + rounded</h3>\n <p class=\"text-sm text-gray-400\">Dark background doesn't make the side-tab OK.</p>\n </div>\n <div class=\"border-t-2 border-violet-500 rounded-xl bg-slate-900 p-4 shadow-sm\">\n <h3 class=\"font-semibold text-sm text-white\">Dark card + border-t-2 + rounded</h3>\n <p class=\"text-sm text-gray-400\">Top accent on dark rounded card.</p>\n </div>\n <div style=\"background: #1f2937; padding: 1rem; border-radius: 12px; border-left: 4px solid #f472b6; max-width: 28rem;\">\n <h3 style=\"font-weight: 600; font-size: 0.875rem; color: white;\">Dark CSS card + side border + radius</h3>\n <p style=\"font-size: 0.8125rem; color: #9ca3af;\">Inline dark card with side-tab.</p>\n </div>\n </div>\n<script src=\"/js/detect-antipatterns-browser.js\"></script>\n</body>\n</html>\n"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}
{"args":["<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>Border Anti-Patterns — Should Flag vs Should Pass</title>\n <style>\n body {\n margin: 0;\n padding: 24px;\n background: #f8fafc;\n color: #111827;\n font: 14px/1.5 system-ui, sans-serif;\n }\n\n h1 {\n max-width: 1180px;\n margin: 0 auto 8px;\n font-size: 34px;\n line-height: 1.05;\n font-weight: 720;\n }\n\n .intro {\n max-width: 1180px;\n margin: 0 auto 24px;\n color: #4b5563;\n }\n\n .grid {\n display: grid;\n grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);\n gap: 32px;\n max-width: 1180px;\n margin: 0 auto;\n }\n\n .col h2 {\n margin: 0 0 14px;\n color: #475569;\n font-size: 13px;\n font-weight: 760;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n }\n\n .case {\n margin: 0 0 14px;\n padding: 16px;\n background: #fdfdfd;\n box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);\n }\n\n .case h3 {\n margin: 0 0 4px;\n font-size: 15px;\n line-height: 1.25;\n }\n\n .case p {\n margin: 0;\n color: #475569;\n }\n\n .flag-left {\n border-left: 4px solid #2563eb;\n border-radius: 10px;\n }\n\n .flag-right {\n border-right: 5px solid #dc2626;\n border-radius: 10px;\n }\n\n .flag-left-plain {\n border-left: 4px solid #0f766e;\n }\n\n .flag-top {\n border-top: 4px solid #7c3aed;\n border-radius: 10px;\n }\n\n .flag-bottom {\n border-bottom: 3px solid #ea580c;\n border-radius: 10px;\n }\n\n .flag-dark {\n background: #141820;\n color: #f4f7fb;\n border-left: 4px solid #38bdf8;\n border-radius: 10px;\n }\n\n .flag-dark p {\n color: #cbd5e1;\n }\n\n .pass-full-border {\n border: 1px solid #cbd5e1;\n border-radius: 10px;\n }\n\n .pass-neutral-side {\n border-left: 4px solid #d1d5db;\n border-radius: 10px;\n }\n\n .pass-thin-side {\n border-left: 1px solid #2563eb;\n border-radius: 10px;\n }\n\n .pass-status-alert {\n border-left: 4px solid #2563eb;\n }\n\n .flag-square-top {\n border-top: 4px solid #7c3aed;\n border-radius: 0;\n }\n\n .flag-square-bottom {\n border-bottom: 3px solid #ea580c;\n border-radius: 0;\n }\n\n .pass-tab-underline {\n border-bottom: 3px solid #2563eb;\n border-radius: 0;\n }\n\n .pass-thick-band {\n border-top: 16px solid #7c3aed;\n border-radius: 0;\n }\n\n .pass-dark-uniform {\n background: #161a22;\n color: #f4f7fb;\n border: 1px solid #334155;\n border-radius: 10px;\n }\n\n .pass-dark-uniform p {\n color: #cbd5e1;\n }\n </style>\n</head>\n<body>\n <h1>Border side-tab detector cases</h1>\n <p class=\"intro\">A paired fixture for colored side borders and rounded accent borders. The left column should produce border findings; the right column should stay clean.</p>\n\n <div class=\"grid\">\n <section class=\"col\" data-col=\"flag\">\n <h2>Should flag</h2>\n\n <div class=\"case flag-left\">\n <h3>Rounded card with colored left border</h3>\n <p>Classic side tab: border-left is thick, colored, and paired with rounded corners.</p>\n </div>\n\n <div class=\"case flag-right\">\n <h3>Rounded card with colored right border</h3>\n <p>The right-side version is the same visual trope mirrored.</p>\n </div>\n\n <div class=\"case flag-left-plain\">\n <h3>Thick colored side border without radius</h3>\n <p>A thick chromatic side stripe still reads as a tab even without rounded corners.</p>\n </div>\n\n <div class=\"case flag-top\">\n <h3>Rounded card with top accent border</h3>\n <p>A heavy top accent on a rounded card is the horizontal variant of the same pattern.</p>\n </div>\n\n <div class=\"case flag-bottom\">\n <h3>Rounded card with bottom accent border</h3>\n <p>The bottom accent is also a decorative stripe on a card surface.</p>\n </div>\n\n <div class=\"case flag-dark\">\n <h3>Dark card with bright side stripe</h3>\n <p>Dark surfaces can hide the cliche, but the thick colored side stripe remains.</p>\n </div>\n </section>\n\n <section class=\"col\" data-col=\"pass\">\n <h2>Should pass</h2>\n\n <div class=\"case pass-full-border\">\n <h3>Uniform full border</h3>\n <p>A quiet all-around border frames the card instead of creating a side tab.</p>\n </div>\n\n <div class=\"case pass-neutral-side\">\n <h3>Neutral structural side rule</h3>\n <p>A gray structural rule can be a legitimate divider when it is not chromatic emphasis.</p>\n </div>\n\n <div class=\"case pass-thin-side\">\n <h3>Thin colored side rule</h3>\n <p>A 1px colored rule is below the decorative side-tab threshold.</p>\n </div>\n\n <div class=\"case pass-status-alert\" role=\"status\">\n <h3>Status toast with severity accent</h3>\n <p>A live status region carries a colored side bar as a severity accent, not a decorative side tab.</p>\n </div>\n\n <div class=\"case flag-square-top\">\n <h3>Square top border</h3>\n <p>A chromatic top stripe on a card is the horizontal variant of the side tab.</p>\n </div>\n\n <div class=\"case flag-square-bottom\">\n <h3>Square bottom border</h3>\n <p>A chromatic bottom stripe on a badge or card is the same decorative tell.</p>\n </div>\n\n <div class=\"case\" role=\"tablist\">\n <div class=\"case pass-tab-underline\" role=\"tab\" aria-selected=\"true\">\n <h3>Selected tab underline</h3>\n <p>An active-state underline inside a tablist is an affordance, not a stripe.</p>\n </div>\n </div>\n\n <div class=\"case pass-thick-band\">\n <h3>Thick color band</h3>\n <p>A band well past stripe thickness is a compositional block, not an accent stripe.</p>\n </div>\n\n <div class=\"case pass-dark-uniform\">\n <h3>Dark card with uniform border</h3>\n <p>The dark surface has a full neutral outline, not a chromatic side stripe.</p>\n </div>\n </section>\n </div>\n\n <script src=\"/js/detect-antipatterns-browser.js\"></script>\n</body>\n</html>\n"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}
{"args":["<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>Anti-Patterns From Linked Stylesheet</title>\n <link rel=\"stylesheet\" href=\"external-styles.css\">\n <style>\n body {\n margin: 0;\n padding: 24px;\n background: #f9fafb;\n color: #111827;\n font: 14px/1.5 system-ui, sans-serif;\n }\n\n h1 {\n max-width: 1080px;\n margin: 0 auto 8px;\n font-size: 34px;\n line-height: 1.05;\n }\n\n p.intro {\n max-width: 1080px;\n margin: 0 auto 24px;\n color: #4b5563;\n }\n\n .grid {\n display: grid;\n grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);\n gap: 32px;\n max-width: 1080px;\n margin: 0 auto;\n }\n\n .col h2 {\n margin: 0 0 14px;\n color: #475569;\n font-size: 13px;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n }\n\n .cards {\n display: grid;\n gap: 14px;\n }\n\n h3 {\n margin: 0 0 4px;\n font-size: 15px;\n line-height: 1.25;\n }\n\n .cards p {\n margin: 0;\n color: #4b5563;\n }\n </style>\n</head>\n<body>\n <h1>Linked Stylesheet Anti-Patterns</h1>\n <p class=\"intro\">\n These elements get their anti-pattern styles from an external CSS file.\n Regex-only scanning misses these — only computed style analysis catches them.\n </p>\n\n <div class=\"grid\">\n <section class=\"col\" data-col=\"flag\">\n <h2>Should flag</h2>\n <div class=\"cards\">\n <div class=\"external-side-tab\">\n <h3>External side-tab class</h3>\n <p>border-left plus border-radius from a linked stylesheet.</p>\n </div>\n\n <div class=\"external-top-accent\">\n <h3>External top accent class</h3>\n <p>border-top plus border-radius from a linked stylesheet.</p>\n </div>\n </div>\n </section>\n\n <section class=\"col\" data-col=\"pass\">\n <h2>Should pass</h2>\n <div class=\"cards\">\n <div class=\"external-clean\">\n <h3>External clean card</h3>\n <p>Uniform 1px border from the linked stylesheet.</p>\n </div>\n\n <div class=\"external-neutral-side\">\n <h3>External neutral side rule</h3>\n <p>Thick side border, but the color is structural gray.</p>\n </div>\n\n <div class=\"external-square-top\">\n <h3>External square top rule</h3>\n <p>Heavy top border with no rounded card corners.</p>\n </div>\n </div>\n </section>\n </div>\n<script src=\"/js/detect-antipatterns-browser.js\"></script>\n</body>\n</html>\n"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}
{"args":["<!-- This is a partial/component — no DOCTYPE, no <html>, no <head> -->\n<!-- Page-level checks (flat hierarchy, single font) should NOT run -->\n<!-- But element-level border checks SHOULD still run -->\n\n<div class=\"card\" style=\"font-family: 'Inter', sans-serif;\">\n <div style=\"font-size: 14px; border-left: 4px solid #3b82f6; border-radius: 8px; padding: 1rem; background: white;\">\n <h3 style=\"font-size: 16px; font-weight: 600;\">Card Title</h3>\n <p style=\"font-size: 15px; color: #6b7280;\">Card description with close font sizes.</p>\n </div>\n</div>\n<script src=\"/js/detect-antipatterns-browser.js\"></script>\n"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}
{"args":["<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>Color Anti-Patterns — Should Flag vs Should Pass</title>\n <style>\n body { font-family: system-ui, sans-serif; background: #fafafa; padding: 24px; margin: 0; color: #1a1a1a; }\n .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 1200px; margin: 0 auto; }\n .col h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 16px; color: #475569; }\n .col h3 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; margin: 24px 0 8px; color: #64748b; }\n .card { padding: 14px 16px; border-radius: 10px; margin-bottom: 10px; }\n /* Styled button color cases (declared via stylesheet so jsdom resolves them\n reliably — inline color doesn't always win over user-agent rules in jsdom\n for <a> and <button>). */\n .styled-pill-low { background-color: rgb(31, 26, 21); color: rgb(91, 79, 68); display: inline-block; padding: 9px 18px; border-radius: 999px; font-weight: 500; font-size: 14px; text-decoration: none; }\n .low-contrast-button { background-color: rgb(55, 65, 81); color: rgb(108, 114, 128); display: inline-block; padding: 10px 20px; border-radius: 8px; border: 0; font-size: 14px; }\n .good-pill-high { background-color: rgb(20, 20, 25); color: rgb(245, 240, 232); display: inline-block; padding: 9px 18px; border-radius: 999px; font-weight: 500; font-size: 14px; text-decoration: none; }\n .inline-link-low { color: rgb(170, 170, 170); }\n /* Chip / badge cases: text-bearing spans painting their own background. */\n .chip-sev-low { display: inline-block; background-color: rgb(182, 50, 45); color: rgb(92, 84, 73); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 2px; }\n .chip-ok-high { display: inline-block; background-color: rgb(20, 20, 25); color: rgb(245, 240, 232); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 2px; }\n .chip-sub9-low { display: inline-block; background-color: rgb(182, 50, 45); color: rgb(150, 60, 55); font-size: 8px; padding: 1px 4px; }\n .panel-reset { background: rgb(28, 30, 38); color: rgb(230, 232, 237); padding: 12px; }\n .panel-reset code { background: rgb(246, 242, 244); border-radius: 3px; padding: 1px 4px; }\n .panel-reset pre code { background: none; }\n /* issue #409 Case A: gradient-clipped text. The gradient IS the glyph fill\n (text-fill-color: transparent), not a backdrop. The inherited `color`\n (#e8e6e3) is never painted, so measuring it against the element's own\n gradient stops (#6d8cff / #a78bfa) is a false positive. */\n .ox-grad-text { background: linear-gradient(135deg, #6d8cff 0%, #a78bfa 50%, #6d8cff 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #e8e6e3; font-size: 40px; font-weight: 800; }\n /* issue #409 Case B: a 9%-alpha accent glow stop over a dark surface. The\n stop composites to ~#121f1f, not the full-opacity #34c0a8, so text stays\n high-contrast. The dark wrapper supplies the surface beneath the glow. */\n .ox-dark-wrap { background: #0f0f11; padding: 16px; }\n .ox-glow { background: linear-gradient(160deg, rgba(52,192,168,0.09) 0%, #141419 65%); padding: 20px; }\n .ox-glow p { color: #e8e6e3; font-size: 18px; }\n .ox-glow .muted { color: #8e8c89; font-size: 16px; }\n /* Gradient stop written as color-mix with a bright nested ingredient.\n The stop paints as a 16% wash of the light oklch color (composited\n over the dark wrap it is near-black); the nested oklch(90% ...) is an\n INGREDIENT, never painted. A parser that re-extracts nested tokens\n appends it as a phantom opaque light stop and the worst-case ratio\n then flags the light text at ~1:1 against a color nobody sees. */\n .mix-dark-wrap { background: #0f0f11; padding: 16px; }\n .mix-glow { background: linear-gradient(160deg, color-mix(in oklab, oklch(90% 0.02 95) 16%, transparent) 0%, #141419 65%); padding: 20px; }\n .mix-glow p { color: #ded9cf; font-size: 16px; }\n /* currentcolor surface: background-color paints with the element's own\n text color, which is itself a var() token here. jsdom hands both\n through verbatim, so the walk must resolve the token via the\n custom-prop map instead of abstaining on a knowable surface. */\n :root { --fixture-bone: #e8e2d6; }\n .currentcolor-surface { background-color: currentcolor; color: var(--fixture-bone); padding: 14px 16px; border-radius: 10px; margin-bottom: 10px; }\n .currentcolor-low-text { color: #cfc9bd; font-size: 14px; }\n .currentcolor-good-text { color: #3a352c; font-size: 14px; }\n /* Same shape but the token does not exist: the surface truly cannot be\n read, so the walk must abstain rather than guess. */\n .currentcolor-unknown { background-color: currentcolor; color: var(--fixture-undefined-token); padding: 14px 16px; border-radius: 10px; }\n .currentcolor-unknown p { color: #efe9dd; font-size: 14px; }\n </style>\n</head>\n<body>\n <div class=\"grid\">\n\n <!-- ════════════════════════════════════════════════════════════\n LEFT COLUMN: should flag\n ═══════════════════════════════════════════════════════════ -->\n <div class=\"col\" data-col=\"flag\">\n <h2>Should flag</h2>\n\n <h3>Pure black surfaces</h3>\n <div class=\"card\" style=\"background: #000000; color: white;\">\n <p>Pure #000 background</p>\n </div>\n\n <h3>Gray on color</h3>\n <div class=\"card\" style=\"background: rgb(59, 130, 246);\">\n <p style=\"color: rgb(150, 150, 150);\">Gray text on blue background</p>\n </div>\n <div class=\"card\" style=\"background: rgb(16, 185, 129);\">\n <p style=\"color: rgb(180, 180, 180);\">Gray text on green background</p>\n </div>\n\n <h3>Low contrast</h3>\n <div class=\"card\" style=\"background: white;\">\n <p style=\"color: rgb(200, 200, 200);\">Light gray text on white — very low contrast</p>\n </div>\n <div class=\"card\" style=\"background: rgb(30, 30, 30);\">\n <p style=\"color: rgb(80, 80, 80);\">Dark gray text on near-black — low contrast</p>\n </div>\n <!-- Gradient background — gray heading is unreadable across every stop -->\n <div class=\"card\" style=\"background: linear-gradient(180deg, #3b82f6 0%, #8b5cf6 100%); padding: 16px;\">\n <h1 style=\"color: #808080; font-size: 32px; font-weight: 800; margin: 0;\">Welcome to Our Platform</h1>\n <p style=\"color: #666666; font-size: 14px;\">The best solution for modern teams and businesses</p>\n </div>\n\n <h3>Gradient text</h3>\n <h3 style=\"background: linear-gradient(135deg, #667eea, #764ba2); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-size: 1.5rem;\">\n Gradient Heading\n </h3>\n\n <h3>AI color palette</h3>\n <h1 style=\"color: rgb(139, 92, 246); font-size: 1.5rem; margin: 0;\">Purple heading text</h1>\n\n <h3>Styled <a> and <button> with low contrast</h3>\n <!-- A pill-style <a> with its own opaque background and low-contrast text.\n Currently SAFE_TAGS skips <a> entirely; this case asserts the contrast\n check still runs when the element is styled as a button. Mirrors a real\n bug from the landing-demo: warm-charcoal text on near-black bg. -->\n <a href=\"#\" class=\"styled-pill-low\" data-test=\"styled-pill\">Get started</a>\n <!-- A <button> element with its own opaque background and low-contrast text.\n Same SAFE_TAGS exception — buttons styled with their own background should\n still pass through the contrast check. -->\n <button class=\"low-contrast-button\" data-test=\"low-contrast-button\">Submit</button>\n\n <h3>Text-bearing chip with low contrast</h3>\n <!-- A <span> chip painting its own opaque background under direct text.\n SAFE_TAGS used to skip spans categorically; the styled-control\n exception must cover any text-bearing chip or badge. Mirrors a real\n bug: a SEV-2 chip whose white text lost a specificity fight and\n rendered muted brown on red at 1.2:1. -->\n <span class=\"chip-sev-low\" data-test=\"chip-sev\">SEV-2</span>\n\n <h3>Tailwind color anti-patterns</h3>\n <div class=\"bg-black text-white p-4 rounded card\" style=\"background: black; color: white;\">\n <p>bg-black — pure black bg</p>\n </div>\n <div class=\"bg-blue-500 text-gray-400 p-4 rounded card\" style=\"background: rgb(59, 130, 246);\">\n <p style=\"color: rgb(156, 163, 175);\">text-gray-400 on bg-blue-500 — gray on color</p>\n </div>\n <h3 class=\"text-purple-500 text-2xl font-bold\" style=\"color: rgb(168, 85, 247); font-size: 1.5rem; font-weight: 700;\">text-purple-500 heading</h3>\n <div class=\"bg-gradient-to-r from-purple-500 to-indigo-500 text-white p-4 rounded card\" style=\"background: linear-gradient(to right, rgb(168, 85, 247), rgb(99, 102, 241)); color: white;\">\n <p>Purple-to-indigo gradient</p>\n </div>\n\n <h3>currentcolor surface via var() token</h3>\n <!-- background-color: currentcolor with color: var(--fixture-bone).\n The surface is knowable (bone #e8e2d6), so the faint text on it is\n a real low-contrast finding, not an abstention. -->\n <div class=\"currentcolor-surface\" data-test=\"currentcolor-low\">\n <p class=\"currentcolor-low-text\">Faint warm gray on a bone currentcolor surface</p>\n </div>\n </div>\n\n <!-- ════════════════════════════════════════════════════════════\n RIGHT COLUMN: should pass\n ═══════════════════════════════════════════════════════════ -->\n <div class=\"col\" data-col=\"pass\">\n <h2>Should pass</h2>\n\n <h3>Tinted neutrals</h3>\n <div class=\"card\" style=\"background: rgb(26, 26, 30);\">\n <p style=\"color: rgb(240, 240, 245);\">Near-black bg, near-white text — tinted, not pure</p>\n </div>\n <div class=\"card\" style=\"background: rgb(250, 250, 252);\">\n <p style=\"color: rgb(20, 20, 25);\">Near-white bg, near-black text — good contrast, tinted</p>\n </div>\n\n <h3>Pure white surface is acceptable</h3>\n <div class=\"card\" style=\"background: #ffffff;\">\n <p style=\"color: #111827;\">Pure #fff background with dark text — acceptable contrast</p>\n </div>\n\n <h3>Good contrast</h3>\n <div class=\"card\" style=\"background: rgb(30, 64, 175);\">\n <p style=\"color: rgb(240, 240, 245);\">Near-white text on dark blue — high contrast, not pure white</p>\n </div>\n <div class=\"card\" style=\"background: rgb(16, 185, 129);\">\n <p style=\"color: rgb(5, 46, 32);\">Dark green text on green bg — same hue family</p>\n </div>\n\n <h3>Distinctive accents (not AI purple)</h3>\n <h3 style=\"color: rgb(220, 38, 38); font-size: 1.25rem; margin: 0;\">Red heading — not AI purple</h3>\n <h3 style=\"color: rgb(180, 83, 9); font-size: 1.25rem; margin: 8px 0 0;\">Amber heading — distinctive</h3>\n\n <h3>Background-image url() ancestor (not low contrast)</h3>\n <!-- White text on transparent bg where ancestor has a background-image.\n The detector cannot determine the image color, so it must NOT assume\n white and report a false low-contrast finding. -->\n <div data-test=\"bg-image-ancestor\" style=\"background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPj/HwADBwIAMCbHYQAAAABJRU5ErkJggg=='); background-size: cover; padding: 20px;\">\n <p style=\"color: rgb(255, 255, 255); font-size: 16px;\">White text on image background — should not flag low-contrast</p>\n </div>\n\n <h3>Tailwind opacity-modified bg-black (not pure black)</h3>\n <!-- bg-black/N classes are NOT pure black — they apply an alpha modifier.\n The detector must not match these as pure-black-white. -->\n <div class=\"bg-black/3 p-4 rounded card\" data-test=\"bg-black-opacity\" style=\"background: rgba(0,0,0,0.03);\">\n <p>bg-black/3 — 3% opacity, not pure black</p>\n </div>\n <div class=\"hover:bg-black/5 p-4 rounded card\" data-test=\"bg-black-hover-opacity\" style=\"background: rgba(0,0,0,0);\">\n <p>hover:bg-black/5 — hover state, not pure black</p>\n </div>\n <div class=\"bg-black/50 p-4 rounded card\" data-test=\"bg-black-half-opacity\" style=\"background: rgba(0,0,0,0.5);\">\n <p style=\"color: white;\">bg-black/50 — 50% opacity, not pure black</p>\n </div>\n\n <h3>Inline <a> without own background (must remain skipped)</h3>\n <!-- A regular text link inside a paragraph. No own background. SAFE_TAGS\n must continue to skip these — flagging them would create noise on\n every text link on the web. The detector exception for styled\n buttons must not regress to flagging plain inline links. -->\n <p>Read more about this <a href=\"#\" class=\"inline-link-low\" data-test=\"inline-link\">here</a> if you want to learn more about the topic.</p>\n\n <h3>Styled <a> with good contrast (must not flag)</h3>\n <!-- A pill-style <a> styled correctly: cream text on near-black bg,\n high contrast. The detector exception for styled buttons must\n let the contrast check run, but this case must clearly pass. -->\n <a href=\"#\" class=\"good-pill-high\" data-test=\"good-pill\">High contrast pill</a>\n\n <h3>Chip with good contrast (must not flag)</h3>\n <span class=\"chip-ok-high\" data-test=\"chip-ok\">HEALTHY</span>\n\n <h3>Sub-9px decorative chip (below the font floor, must not flag)</h3>\n <span class=\"chip-sub9-low\" data-test=\"chip-sub9\">tick</span>\n\n <h3>background: none resets an earlier background-color</h3>\n <!-- The `background` shorthand resets background-color. `pre code\n { background: none }` after `code { background: <light> }` leaves\n the code text transparent over the dark panel; the cascade must not\n keep measuring it against the light surface it never paints. -->\n <div class=\"panel-reset\" data-test=\"panel-reset\">\n <pre><code data-test=\"code-reset\">light text over the dark panel, not the light code surface</code></pre>\n </div>\n\n <h3>Gradient-clipped text (issue #409 Case A — must not flag contrast)</h3>\n <!-- background-clip: text with a transparent fill: the gradient paints the\n glyphs, not a surface behind them. The inherited light `color` is\n never painted. The gradient-text pattern still flags; the backdrop\n contrast rules (low-contrast / gray-on-color) must not. -->\n <h1 class=\"ox-grad-text\" data-test=\"ox-grad-text\">Gradient Clipped Heading Text</h1>\n\n <h3>Faint accent-glow gradient (issue #409 Case B — must not flag contrast)</h3>\n <!-- A 9%-alpha teal glow over a dark section. Composited against the dark\n surface the stop is near-black, so the light and gray text on it are\n high-contrast. Treating the stop as opaque #34c0a8 was the false\n positive that flagged every text child. -->\n <div class=\"ox-dark-wrap\">\n <div class=\"ox-glow\" data-test=\"ox-glow\">\n <p>Light body copy on a faint accent glow that composites to near-black</p>\n <p class=\"muted\">Muted secondary line on the same faint glow area here</p>\n </div>\n </div>\n\n <h3>color-mix gradient stop: nested ingredient is not a surface</h3>\n <div class=\"mix-dark-wrap\">\n <div class=\"mix-glow\" data-test=\"mix-glow\">\n <p>Light copy on a faint mixed wash over a dark ground stays readable</p>\n </div>\n </div>\n\n <h3>currentcolor surface with good contrast</h3>\n <div class=\"currentcolor-surface\" data-test=\"currentcolor-good\">\n <p class=\"currentcolor-good-text\">Dark ink text on a bone currentcolor surface</p>\n </div>\n\n <h3>currentcolor surface with unresolvable token (must abstain)</h3>\n <!-- The var() token is undefined, so the surface genuinely cannot be\n read. The walk must abstain instead of guessing a background for\n the light text inside. -->\n <div class=\"currentcolor-unknown\" data-test=\"currentcolor-unknown\">\n <p>Light text on an unknowable currentcolor surface</p>\n </div>\n\n <h3>Emoji on light backgrounds</h3>\n <!-- Emojis render as multicolor glyphs regardless of CSS color, so the\n CSS color is irrelevant for contrast. These should NOT be flagged. -->\n <div class=\"card emoji-test\" data-test=\"emoji-light\" style=\"background: #ffe4e6;\">\n <p style=\"color: #ffe4e6; font-size: 24px;\">⚠️ 🚨 ✨ 🎨</p>\n </div>\n <div class=\"card emoji-test\" data-test=\"emoji-dark\" style=\"background: #1a1a1a;\">\n <p style=\"color: #1a1a1a; font-size: 24px;\">⚠️ 🚨 ✨ 🎨</p>\n </div>\n </div>\n </div>\n <script src=\"/js/detect-antipatterns-browser.js\"></script>\n</body>\n</html>\n"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}
{"args":["<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<title>Fixture: data-impeccable-ignore scoped waivers</title>\n<style>\n body { margin: 0; padding: 40px; background: #faf8f4; font-family: Arial, sans-serif; color: #262421; }\n /* Every case carries a UNIQUE border-left width so each finding's snippet\n (`border-left: Npx`) attributes to exactly one case. Flag widths: 5, 6,\n 8, 12. Pass widths: 4, 7, 9, 10, 11. */\n .tabbed {\n width: 420px;\n padding: 16px 20px;\n margin: 0 0 24px;\n background: #ffffff;\n border: 1px solid #ddd8d0;\n border-left: 6px solid #b8422e;\n }\n .w4 { border-left-width: 4px; }\n .w5 { border-left-width: 5px; }\n .w7 { border-left-width: 7px; }\n .w8 { border-left-width: 8px; }\n .w9 { border-left-width: 9px; }\n .w10 { border-left-width: 10px; }\n .w11 { border-left-width: 11px; }\n .w12 { border-left-width: 12px; }\n /* Marquee specimen: keyframes + an infinite loop track. The section that\n hosts it carries a marquee waiver; the CSS-scan finding must resolve the\n selector to the live element and honor the ancestor attribute. */\n @keyframes ticker-loop { from { transform: translateX(0); } to { transform: translateX(-50%); } }\n .quote-track { display: flex; width: max-content; animation: ticker-loop 80s linear infinite; }\n .quote-track span { padding: 8px 16px; }\n /* Dead grid CSS: this two-axis hairline grid selector matches nothing on\n this page, so the browser pass must drop the codex-grid finding — the\n pattern never renders here. */\n .never-rendered-grid {\n background:\n linear-gradient(90deg, rgba(200,180,120,0.08) 1px, transparent 1px),\n linear-gradient(180deg, rgba(200,180,120,0.08) 1px, transparent 1px);\n background-size: 24px 24px;\n }\n /* Overshoot bezier inside a keyframe STEP: enclosingCssSelector must refuse\n `to` as a selector (it would match nothing and wrongly drop the finding),\n so this bounce-easing finding stays page-level and is retained. */\n @keyframes springy {\n from { transform: none; }\n to { transform: translateY(-4px); animation-timing-function: cubic-bezier(0.3, 1.8, 0.6, 1); }\n }\n</style>\n</head>\n<body>\n <!-- FLAG 6px — control: no waiver anywhere above. -->\n <article class=\"tabbed control-flags\">The control case has a 6px side-tab accent border and no waiver, so the side-tab rule must flag it.</article>\n\n <!-- FLAG 8px — waiver names a different rule, so side-tab still applies. -->\n <section data-impeccable-ignore=\"pulsing-dot\">\n <article class=\"tabbed w8 flags-other-rule-waived\">The waiver names pulsing-dot, not side-tab, so this 8px case must still flag.</article>\n </section>\n\n <!-- FLAG 12px — waiver sits on a SIBLING, not an ancestor: no effect. -->\n <div data-impeccable-ignore=\"side-tab\"></div>\n <article class=\"tabbed w12 flags-sibling-waiver\">A waiver on a preceding sibling is not an ancestor; this 12px case must still flag.</article>\n\n <!-- FLAG 5px — waiver value misspells the rule id: exact matching only. -->\n <section data-impeccable-ignore=\"side-tabs\">\n <article class=\"tabbed w5 flags-misspelled-rule\">\"side-tabs\" is not a rule id; the 5px case must still flag.</article>\n </section>\n\n <!-- PASS 7px — exact-rule waiver on the container: the subtree is exempt. -->\n <section data-impeccable-ignore=\"side-tab\">\n <article class=\"tabbed w7 pass-exact-rule\">Inside a container waived for exactly side-tab; must not flag.</article>\n </section>\n\n <!-- PASS 9px — two levels below the waiving container. -->\n <section data-impeccable-ignore=\"side-tab\">\n <div>\n <article class=\"tabbed w9 pass-nested-depth\">Two levels below the waiving container; the ancestor walk must still find it.</article>\n </div>\n </section>\n\n <!-- PASS 10px — star waiver: every rule is exempt in the subtree. -->\n <section data-impeccable-ignore=\"*\">\n <article class=\"tabbed w10 pass-star\">Inside a star-waived container; must not flag.</article>\n </section>\n\n <!-- PASS 11px — comma list including side-tab. -->\n <section data-impeccable-ignore=\"pulsing-dot, side-tab\">\n <article class=\"tabbed w11 pass-rule-list\">side-tab appears in the comma list; must not flag.</article>\n </section>\n\n <!-- PASS 4px — waiver on the flagged element itself (self counts). -->\n <article class=\"tabbed w4 pass-self-waiver\" data-impeccable-ignore=\"side-tab\">The waiver sits on the element itself; must not flag.</article>\n\n <!-- Live marquee inside a rule-scoped waiver: the CSS-scan marquee finding\n resolves .quote-track to this element and is waived by the ancestor. -->\n <section data-impeccable-ignore=\"marquee\">\n <div class=\"quote-track\"><span>One voice.</span><span>Another voice.</span><span>One voice.</span><span>Another voice.</span></div>\n </section>\n</body>\n</html>\n"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}
{"args":["<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<title>Fixture: gradient body ground, oklch stops (low-contrast)</title>\n<style>\n /* The impeccable.style false-positive class: the page ground is a gradient\n set via `background:` shorthand, so the body's computed backgroundColor\n is transparent and the ground exists only as a backgroundImage whose\n stops serialize in oklch. The detector must measure text against those\n stops (composited under any translucent layers), never against an\n assumed white body. */\n body {\n margin: 0;\n padding: 48px;\n background: linear-gradient(180deg, oklch(7% 0.006 95), oklch(4% 0.004 95));\n font-family: Arial, sans-serif;\n }\n body > * { margin: 0 0 32px; }\n\n /* ── Should flag ─────────────────────────────────────────────────── */\n .flag-muted-direct {\n width: 560px;\n color: oklch(30% 0 0);\n font-size: 16px;\n line-height: 1.7;\n }\n .flag-muted-nested-wrapper { width: 560px; }\n .flag-muted-nested {\n color: oklch(32% 0 0);\n font-size: 16px;\n line-height: 1.7;\n margin: 0;\n }\n .frosted-light {\n width: 480px;\n padding: 24px;\n background: rgba(250, 249, 246, 0.88);\n border-radius: 4px;\n }\n .flag-light-on-frosted {\n color: oklch(88% 0 0);\n font-size: 15px;\n line-height: 1.6;\n margin: 0;\n }\n\n /* ── Should pass ─────────────────────────────────────────────────── */\n .pass-hero-title {\n width: 640px;\n color: oklch(91% 0 0);\n font-size: 48px;\n }\n .pass-hero-body {\n width: 560px;\n color: oklch(88% 0 0);\n font-size: 16px;\n line-height: 1.7;\n }\n .pass-on-raised {\n width: 420px;\n padding: 24px;\n background: oklch(11% 0.006 95);\n color: oklch(88% 0 0);\n font-size: 15px;\n }\n .pass-dark-on-frosted {\n color: oklch(15% 0.01 95);\n font-size: 15px;\n line-height: 1.6;\n margin: 0 0 12px;\n }\n .pass-hex-gradient {\n width: 520px;\n padding: 24px;\n background-image: linear-gradient(180deg, #14120f, #0a0908);\n color: oklch(90% 0 0);\n font-size: 15px;\n line-height: 1.6;\n }\n .pass-image-backed {\n width: 460px;\n padding: 18px 22px;\n background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2)), url(\"/fixtures/antipatterns/no-such-texture.png\") center / cover;\n color: oklch(15% 0.01 95);\n font-size: 15px;\n line-height: 1.6;\n }\n .pass-photo-panel {\n width: 460px;\n padding: 18px 22px;\n background-image: url(\"/fixtures/antipatterns/no-such-photo.jpg\");\n color: oklch(20% 0 0);\n font-size: 15px;\n line-height: 1.6;\n }\n .pass-hidden-scene {\n opacity: 0;\n width: 560px;\n }\n .pass-hidden-scene p {\n color: oklch(30% 0 0);\n font-size: 16px;\n line-height: 1.7;\n margin: 0;\n }\n</style>\n</head>\n<body>\n <h1 class=\"pass-hero-title\">Light display text on the lacquer gradient</h1>\n <p class=\"pass-hero-body\">This paragraph sits directly on the body's dark gradient ground. Its near-white ink clears WCAG AA against both gradient stops by a wide margin, so a detector that measures the real ground must not flag it. A detector that assumes a white body flags it at about 1.3:1.</p>\n <div class=\"pass-on-raised\">Light text on a raised solid oklch surface between the text and the body gradient still resolves through the normal opaque-ancestor walk.</div>\n <div class=\"frosted-light\">\n <p class=\"pass-dark-on-frosted\">Dark ink on a translucent light wash over the dark gradient. The wash composites to a light surface, so this passes; measuring raw gradient stops would wrongly flag it.</p>\n <p class=\"flag-light-on-frosted\">Light ink on the same translucent light wash genuinely fails once the wash is composited over the stops; raw stops would wrongly pass it.</p>\n </div>\n <p class=\"flag-muted-direct\">This muted dark-gray ink genuinely fails contrast against both stops of the dark gradient ground, which proves the gradient stops are being measured instead of the checks silently skipping.</p>\n <div class=\"flag-muted-nested-wrapper\">\n <p class=\"flag-muted-nested\">Muted ink reached through a transparent wrapper still resolves to the body gradient and still fails against its stops.</p>\n </div>\n <div class=\"pass-hex-gradient\">A non-body gradient with legacy hex stops keeps working through the original rgb/hex parser, and light text on it passes.</div>\n <div class=\"pass-image-backed\">Dark ink on a translucent wash over a texture image. The image pixels are unknowable to the analytic walk, so contrast must skip rather than composite the wash over the wrong base.</div>\n <div class=\"pass-photo-panel\">Dark ink on a photo-backed panel sitting over the dark body gradient. Walking past the photo to the gradient stops would wrongly flag this; the unmeasurable image layer must end the walk.</div>\n <div class=\"pass-hidden-scene\"><p>Muted ink inside an opacity-zero scene deck. Nobody sees this state, so the contrast checks must not measure it.</p></div>\n</body>\n</html>\n"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}
{"args":["<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <title>Side-Tab with Modern Color Formats (oklch/lab/lch/hsl/hwb)</title>\n <style>\n /* Two-column fixture: left col = should-flag, right col = should-pass.\n The side-tab snippet doesn't embed identifying text, so the test\n asserts finding counts against the structural ids (#flag-N / #pass-N)\n by reading the element via data attributes in the check path. Since\n that isn't available to the Node fixture runner, we instead place a\n unique number of FLAG elements (each a distinct side-tab) and verify\n the side-tab count. */\n\n /* CSS custom properties — variables used by the var()-case fixtures.\n jsdom's CSSOM drops any border shorthand containing var(), which used\n to make every side-tab built with CSS variables invisible to the\n detector. These cases regression-test the fallback pass that parses\n border shorthands directly off the rule (not the computed style). */\n :root {\n --brand: #87a8ff;\n --warn: #8a6a2f;\n --terracotta: #aa674d;\n --line: #e5e7eb; /* neutral gray — must NOT trigger */\n --rule: #f3f4f6; /* near-white — must NOT trigger */\n }\n\n body { font-family: system-ui, sans-serif; margin: 0; padding: 24px; background: #fafafa; }\n .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 1120px; margin: 0 auto; }\n .col h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 16px; color: #475569; }\n .case { padding: 12px 16px; margin-bottom: 16px; }\n .case h3 { font-size: 14px; margin: 0 0 4px; }\n .case p { font-size: 13px; margin: 0; color: #64748b; }\n\n /* ── FLAG cases: colored side-tab borders using modern color formats ── */\n\n /* 1: oklch border-left + border-radius (the canonical real-page bug) */\n #flag-oklch-1 {\n width: 400px;\n background: oklch(100% 0 0);\n border-radius: 4px;\n border-left: 3px solid oklch(65% 0.12 250);\n }\n\n /* 2: oklch mixed — neutral 1px border all around + colored 4px left +\n border-radius (mirrors .medication-card from the reproducer) */\n #flag-oklch-2 {\n width: 400px;\n background: oklch(100% 0 0);\n border: 1px solid oklch(80% 0.05 250);\n border-left: 4px solid oklch(75% 0.15 45);\n border-radius: 4px;\n }\n\n /* 3: oklch alert pattern — colored 4px border-left + border-radius */\n #flag-oklch-3 {\n width: 400px;\n background: oklch(98% 0.01 60);\n border-left: 4px solid oklch(75% 0.18 45);\n border-radius: 4px;\n }\n\n /* 4: oklab border-left + border-radius */\n #flag-oklab-1 {\n width: 400px;\n background: #ffffff;\n border-radius: 6px;\n border-left: 4px solid oklab(60% 0.1 0.15);\n }\n\n /* 5: lch border-left + border-radius */\n #flag-lch-1 {\n width: 400px;\n background: #ffffff;\n border-radius: 6px;\n border-left: 4px solid lch(55% 60 250);\n }\n\n /* 6: lab border-left + border-radius */\n #flag-lab-1 {\n width: 400px;\n background: #ffffff;\n border-radius: 6px;\n border-left: 4px solid lab(50% 40 -30);\n }\n\n /* 7: card-shaped <label> with colored oklch side border + radius\n (the checklist-item pattern from preop-portal reproducer) */\n label#flag-label-oklch {\n display: grid;\n grid-template-columns: auto 1fr;\n width: 400px;\n padding: 16px;\n background: oklch(100% 0 0);\n border-radius: 4px;\n border-left: 3px solid oklch(65% 0.12 250);\n cursor: pointer;\n }\n\n /* 8: card-shaped <label> with colored rgb side border + radius —\n proves the fix is not oklch-specific */\n label#flag-label-rgb {\n display: block;\n width: 400px;\n padding: 16px;\n background: #ffffff;\n border-radius: 6px;\n border-left: 4px solid #3b82f6;\n cursor: pointer;\n }\n\n /* 9: CSS variable in shorthand — the canonical real-page pattern from\n evals (e.g. 09-physics-study: border-left:8px solid var(--brand-2)).\n jsdom silently drops this entire declaration, so the computed-style\n path used to miss it. */\n #flag-var-shorthand {\n width: 400px;\n background: #ffffff;\n border-radius: 4px;\n border-left: 5px solid var(--brand);\n }\n\n /* 10: CSS variable + neutral 1px all-around border — mirrors the\n medication-card pattern with a colored accent on the left. */\n #flag-var-mixed {\n width: 400px;\n background: #ffffff;\n border: 1px solid var(--line);\n border-left: 4px solid var(--warn);\n border-radius: 4px;\n }\n\n /* 11: CSS variable shorthand, right side. Ensures the fallback works\n for both inline axes, not just border-left. */\n #flag-var-right {\n width: 400px;\n background: #ffffff;\n border-radius: 4px;\n border-right: 4px solid var(--terracotta);\n }\n\n /* 12: card-shaped <label> with var() side border + radius —\n the checklist-row shape, built with tokens. */\n label#flag-label-var {\n display: block;\n width: 400px;\n padding: 16px;\n background: #ffffff;\n border-radius: 6px;\n border-left: 4px solid var(--brand);\n cursor: pointer;\n }\n\n /* ── PASS cases: legitimate or neutral borders, must NOT fire ── */\n\n /* 1: oklch chroma ~0 — true neutral gray border should not fire */\n #pass-oklch-neutral {\n width: 400px;\n background: #ffffff;\n border-radius: 4px;\n border-left: 3px solid oklch(80% 0 0);\n }\n\n /* 2: oklch low chroma (0.01) — still perceptually neutral */\n #pass-oklch-nearneutral {\n width: 400px;\n background: #ffffff;\n border-radius: 4px;\n border-left: 3px solid oklch(75% 0.01 250);\n }\n\n /* 3: oklch colored border all around (not one-sided) — no side-tab */\n #pass-oklch-allsides {\n width: 400px;\n background: #ffffff;\n border: 3px solid oklch(65% 0.12 250);\n border-radius: 4px;\n }\n\n /* 4: oklch colored 1px border-left (too thin to qualify) */\n #pass-oklch-thin {\n width: 400px;\n background: #ffffff;\n border-radius: 4px;\n border-left: 1px solid oklch(65% 0.12 250);\n }\n\n /* 5: lab neutral (chroma near zero) — must not fire */\n #pass-lab-neutral {\n width: 400px;\n background: #ffffff;\n border-radius: 4px;\n border-left: 3px solid lab(50% 0 0);\n }\n\n /* 6: lch neutral (chroma 0) */\n #pass-lch-neutral {\n width: 400px;\n background: #ffffff;\n border-radius: 4px;\n border-left: 3px solid lch(50% 0 0);\n }\n\n /* 7: plain inline form label — no border, no padding, no radius.\n Must NOT be flagged for anything. */\n label#pass-label-plain {\n font-size: 14px;\n font-weight: 500;\n color: #374151;\n }\n\n /* 8: form label with a small neutral gray left border — neutral color\n should not fire the colored side-tab rule. */\n label#pass-label-neutral-border {\n display: block;\n width: 400px;\n padding: 8px;\n background: #ffffff;\n border-radius: 4px;\n border-left: 3px solid #e5e7eb;\n }\n\n /* 9: inline label inside a form row — default inline layout,\n no borders, must not fire. */\n label#pass-label-inline {\n font-size: 13px;\n color: #6b7280;\n margin-right: 8px;\n }\n\n /* 10: label with 1px colored left border — too thin to qualify\n (matches the existing 1px thin rule for divs). */\n label#pass-label-thin {\n display: block;\n width: 400px;\n padding: 8px;\n background: #ffffff;\n border-radius: 4px;\n border-left: 1px solid #3b82f6;\n }\n\n /* 11: CSS variable resolving to a neutral gray — must NOT fire,\n even though the border shorthand contains var(). */\n #pass-var-neutral {\n width: 400px;\n background: #ffffff;\n border-radius: 4px;\n border-left: 3px solid var(--line);\n }\n\n /* 12: thin (1px) var-based left border — under the side-tab width\n threshold even when resolved. */\n #pass-var-thin {\n width: 400px;\n background: #ffffff;\n border-radius: 4px;\n border-left: 1px solid var(--brand);\n }\n\n /* 13: var-based uniform border on all four sides. Not a side-tab. */\n #pass-var-allsides {\n width: 400px;\n background: #ffffff;\n border: 3px solid var(--brand);\n border-radius: 4px;\n }\n\n /* 14: neutral 1px oklch right divider — context-bar hairline, not a side-tab. */\n #pass-oklch-neutral-right-divider {\n width: 400px;\n background: #ffffff;\n border-radius: 4px;\n border-right: 1px solid oklch(92% 0 0 / 0.12);\n }\n </style>\n</head>\n<body>\n <div class=\"grid\">\n <div class=\"col\" data-col=\"flag\">\n <h2>Should flag</h2>\n <div class=\"case\" id=\"flag-oklch-1\"><h3>oklch checklist</h3><p>oklch border-left 3px + radius</p></div>\n <div class=\"case\" id=\"flag-oklch-2\"><h3>oklch medication card</h3><p>neutral all + colored left 4px</p></div>\n <div class=\"case\" id=\"flag-oklch-3\"><h3>oklch alert</h3><p>warm border-left 4px + radius</p></div>\n <div class=\"case\" id=\"flag-oklab-1\"><h3>oklab card</h3><p>oklab border-left 4px + radius</p></div>\n <div class=\"case\" id=\"flag-lch-1\"><h3>lch card</h3><p>lch border-left 4px + radius</p></div>\n <div class=\"case\" id=\"flag-lab-1\"><h3>lab card</h3><p>lab border-left 4px + radius</p></div>\n <label class=\"case\" id=\"flag-label-oklch\">\n <input type=\"checkbox\">\n <span>Card-shaped label with oklch side border</span>\n </label>\n <label class=\"case\" id=\"flag-label-rgb\">\n <input type=\"checkbox\">\n <span>Card-shaped label with rgb side border</span>\n </label>\n <div class=\"case\" id=\"flag-var-shorthand\"><h3>var() shorthand</h3><p>border-left 5px + var(--brand)</p></div>\n <div class=\"case\" id=\"flag-var-mixed\"><h3>var() mixed</h3><p>neutral all + colored var left</p></div>\n <div class=\"case\" id=\"flag-var-right\"><h3>var() right side</h3><p>border-right 4px + var(--terracotta)</p></div>\n <label class=\"case\" id=\"flag-label-var\">\n <input type=\"checkbox\">\n <span>Card-shaped label with var() side border</span>\n </label>\n </div>\n <div class=\"col\" data-col=\"pass\">\n <h2>Should pass</h2>\n <div class=\"case\" id=\"pass-oklch-neutral\"><h3>oklch neutral</h3><p>chroma 0 gray</p></div>\n <div class=\"case\" id=\"pass-oklch-nearneutral\"><h3>oklch near-neutral</h3><p>chroma 0.01</p></div>\n <div class=\"case\" id=\"pass-oklch-allsides\"><h3>oklch all sides</h3><p>uniform border</p></div>\n <div class=\"case\" id=\"pass-oklch-thin\"><h3>oklch thin</h3><p>1px too thin</p></div>\n <div class=\"case\" id=\"pass-lab-neutral\"><h3>lab neutral</h3><p>chroma 0</p></div>\n <div class=\"case\" id=\"pass-lch-neutral\"><h3>lch neutral</h3><p>chroma 0</p></div>\n <div>\n <label for=\"pass-email\" id=\"pass-label-plain\">Email address</label>\n <input type=\"email\" id=\"pass-email\">\n </div>\n <label id=\"pass-label-neutral-border\">\n <input type=\"checkbox\">\n <span>Label with neutral gray left border</span>\n </label>\n <form>\n <label for=\"pass-name\" id=\"pass-label-inline\">Name:</label>\n <input type=\"text\" id=\"pass-name\">\n </form>\n <label id=\"pass-label-thin\">\n <input type=\"checkbox\">\n <span>Label with 1px colored left border (too thin)</span>\n </label>\n <div class=\"case\" id=\"pass-var-neutral\"><h3>var() neutral</h3><p>--line resolves to gray</p></div>\n <div class=\"case\" id=\"pass-var-thin\"><h3>var() thin</h3><p>1px too thin to qualify</p></div>\n <div class=\"case\" id=\"pass-var-allsides\"><h3>var() all sides</h3><p>uniform, not a side-tab</p></div>\n <div class=\"case\" id=\"pass-oklch-neutral-right-divider\"><h3>oklch neutral right divider</h3><p>1px neutral context-bar hairline</p></div>\n </div>\n </div>\n <script src=\"/js/detect-antipatterns-browser.js\"></script>\n</body>\n</html>\n"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}
{"args":["<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <title>Side-Tab with CSS Named Colors (purple/rebeccapurple/crimson/teal)</title>\n <style>\n /* Two-column fixture: left col = should-flag, right col = should-pass.\n Regression for issue #359: `border-left: 4px solid purple` in a .html\n file never fired side-tab because the static cascade's shorthand color\n extraction only recognized 9 named colors — every other spec name\n (purple, rebeccapurple, crimson, teal, ...) was dropped from the\n shorthand, leaving the side at the default black, which reads as\n neutral and silently skips the check. The same declaration in a .css\n file was flagged by the regex engine, so the two engines disagreed. */\n\n :root {\n --accent: orange; /* named color behind a var() — must resolve and flag */\n }\n\n body { font-family: system-ui, sans-serif; margin: 0; padding: 24px; background: #fafafa; }\n .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 1120px; margin: 0 auto; }\n .col h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 16px; color: #475569; }\n .case { padding: 12px 16px; margin-bottom: 16px; }\n .case h3 { font-size: 14px; margin: 0 0 4px; }\n .case p { font-size: 13px; margin: 0; color: #64748b; }\n\n /* ── FLAG cases: colored side-tab borders using CSS named colors ── */\n\n /* 1: the exact reproducer from issue #359 — named purple in a <style>\n rule with background + padding + radius */\n #flag-named-purple {\n width: 400px;\n background: #f6f6f6;\n padding: 16px;\n border-left: 4px solid purple;\n border-radius: 8px;\n }\n\n /* 2: rebeccapurple — a longer name that contains another color name\n (\"purple\") as a substring; must match whole-token. Width 5px so the\n finding snippet is unique to this case. */\n #flag-named-rebecca {\n width: 400px;\n background: #ffffff;\n border-radius: 4px;\n border-left: 5px solid rebeccapurple;\n }\n\n /* 3: horizontal stripe variant — named crimson riding the top edge */\n #flag-named-crimson-top {\n width: 400px;\n background: #ffffff;\n border-top: 4px solid crimson;\n }\n\n /* 4: named teal, 3px, no radius — the bare w >= 3 arm */\n #flag-named-teal {\n width: 400px;\n background: #ffffff;\n border-left: 3px solid teal;\n }\n\n /* 5: named color behind a var() in the shorthand. Width 6px so the\n finding snippet is unique to this case. */\n #flag-named-var {\n width: 400px;\n background: #ffffff;\n border-radius: 4px;\n border-left: 6px solid var(--accent);\n }\n\n /* ── PASS cases: neutral named colors and non-side-tab shapes ── */\n\n /* 1: dimgray — chromatic-looking name, neutral value; must NOT fire */\n #pass-named-dimgray {\n width: 400px;\n background: #ffffff;\n border-radius: 4px;\n border-left: 4px solid dimgray;\n }\n\n /* 2: gainsboro — light neutral named color */\n #pass-named-gainsboro {\n width: 400px;\n background: #ffffff;\n border-radius: 4px;\n border-left: 3px solid gainsboro;\n }\n\n /* 3: named black side border — neutral, not a colored stripe */\n #pass-named-black {\n width: 400px;\n background: #ffffff;\n border-radius: 4px;\n border-left: 4px solid black;\n }\n\n /* 4: 1px named purple — too thin to qualify */\n #pass-named-thin {\n width: 400px;\n background: #ffffff;\n border-radius: 4px;\n border-left: 1px solid purple;\n }\n\n /* 5: uniform named purple border on all four sides — not a side-tab */\n #pass-named-allsides {\n width: 400px;\n background: #ffffff;\n border: 3px solid purple;\n border-radius: 4px;\n }\n </style>\n</head>\n<body>\n <div class=\"grid\">\n <div class=\"col\" data-col=\"flag\">\n <h2>Should flag</h2>\n <div class=\"case\" id=\"flag-named-purple\"><h3>named purple</h3><p>border-left 4px solid purple + radius</p></div>\n <div class=\"case\" id=\"flag-named-rebecca\"><h3>rebeccapurple</h3><p>border-left 4px + radius</p></div>\n <div class=\"case\" id=\"flag-named-crimson-top\"><h3>crimson top stripe</h3><p>border-top 4px, horizontal variant</p></div>\n <div class=\"case\" id=\"flag-named-teal\"><h3>named teal</h3><p>border-left 3px, no radius</p></div>\n <div class=\"case\" id=\"flag-named-var\"><h3>var() to named</h3><p>border-left 4px solid var(--accent)</p></div>\n <div class=\"case\" style=\"width: 400px; background: #ffffff; border-left: 7px solid purple\">\n <h3>inline named purple</h3><p>style attribute, issue #359 case (a); width 7px keeps the snippet unique</p>\n </div>\n </div>\n <div class=\"col\" data-col=\"pass\">\n <h2>Should pass</h2>\n <div class=\"case\" id=\"pass-named-dimgray\"><h3>dimgray</h3><p>neutral named color</p></div>\n <div class=\"case\" id=\"pass-named-gainsboro\"><h3>gainsboro</h3><p>light neutral named color</p></div>\n <div class=\"case\" id=\"pass-named-black\"><h3>named black</h3><p>neutral side border</p></div>\n <div class=\"case\" id=\"pass-named-thin\"><h3>1px purple</h3><p>too thin to qualify</p></div>\n <div class=\"case\" id=\"pass-named-allsides\"><h3>uniform purple</h3><p>all four sides, not a stripe</p></div>\n </div>\n </div>\n <script src=\"/js/detect-antipatterns-browser.js\"></script>\n</body>\n</html>\n"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}
{"args":["\n .flag-side-tab {\n border-radius: 8px;\n border-left: 2px solid oklch(65% 0.12 250);\n }\n\n .pass-context-divider {\n border-radius: 8px;\n border-right: 1px solid oklch(92% 0 0 / 0.12);\n }\n\n .pass-neutral-side {\n border-radius: 8px;\n border-left: 3px solid oklch(80% 0 0);\n }\n "],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}
{"args":["<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>Typography Anti-Patterns — Should Flag</title>\n <link href=\"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap\" rel=\"stylesheet\">\n <style>\n body {\n font-family: 'Inter', sans-serif;\n background: #f9fafb;\n padding: 2rem;\n }\n h1 { font-size: 18px; font-weight: 700; margin-bottom: 0.5rem; }\n h2 { font-size: 16px; font-weight: 600; margin: 2rem 0 0.75rem; color: #6b7280; }\n h3 { font-size: 15px; font-weight: 600; }\n p { font-size: 14px; color: #6b7280; margin-top: 0.25rem; }\n .caption { font-size: 13px; color: #6b7280; }\n </style>\n</head>\n<body>\n <h1>Typography Anti-Patterns</h1>\n <p>This page triggers three typography detections:</p>\n\n <h2>1. Overused Font</h2>\n <p>Inter is loaded from Google Fonts and set as the only font-family. It's the most common AI default.</p>\n\n <h2>2. Single Font</h2>\n <p>There's no second font for headings or display text. Everything uses Inter — no typographic variety.</p>\n\n <h2>3. Flat Type Hierarchy</h2>\n <p>The font sizes are 13px, 14px, 15px, 16px, 18px — all crammed into a 5px range. No visual contrast between heading and body.</p>\n <p class=\"caption\">This caption is barely distinguishable from body text.</p>\n\n <h3>A Subheading</h3>\n <p>Can you tell this is a subheading? Exactly.</p>\n<script src=\"/js/detect-antipatterns-browser.js\"></script>\n</body>\n</html>\n"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}
{"args":["<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>Typography Anti-Patterns — Side by Side</title>\n <link href=\"https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Newsreader:opsz,[email protected],400;6..72,700&family=Karla:wght@400;500;700&display=swap\" rel=\"stylesheet\">\n <style>\n body {\n margin: 0;\n padding: 24px;\n background: #f9fafb;\n color: #111827;\n font: 16px/1.5 system-ui, sans-serif;\n }\n\n .grid {\n display: grid;\n grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);\n gap: 32px;\n max-width: 1180px;\n margin: 0 auto;\n }\n\n .col {\n min-width: 0;\n }\n\n .col-label {\n margin: 0 0 14px;\n color: #475569;\n font-size: 13px;\n font-weight: 760;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n }\n\n .flag-type {\n font-family: 'Inter', sans-serif;\n background: #fdfdfd;\n padding: 22px;\n border: 1px solid #e5e7eb;\n }\n\n .flag-type h1 {\n margin: 0 0 8px;\n font-size: 18px;\n line-height: 1.2;\n }\n\n .flag-type h2 {\n margin: 24px 0 8px;\n color: #4b5563;\n font-size: 16px;\n line-height: 1.25;\n }\n\n .flag-type h3 {\n margin: 18px 0 4px;\n font-size: 15px;\n line-height: 1.25;\n }\n\n .flag-type p {\n margin: 0 0 10px;\n color: #4b5563;\n font-size: 14px;\n }\n\n .flag-type .caption {\n color: #6b7280;\n font-size: 13px;\n }\n\n .flag-type .tight-leading-demo {\n line-height: 1.05;\n }\n\n .flag-type .tiny-body-demo {\n color: #374151;\n font-size: 10px;\n line-height: 1.6;\n }\n\n .flag-type .caps-body-demo {\n text-transform: uppercase;\n }\n\n .flag-type .tracked-body-demo {\n letter-spacing: 0.08em;\n }\n\n .flag-type .justified-body-demo {\n text-align: justify;\n }\n\n .pass-type {\n background: #fdfdfd;\n padding: 22px;\n border: 1px solid #e5e7eb;\n }\n\n .pass-type h1,\n .pass-type h2 {\n font-family: 'Newsreader', Georgia, serif;\n }\n\n .pass-type h1 {\n margin: 0 0 10px;\n font-size: 48px;\n line-height: 0.98;\n font-weight: 700;\n }\n\n .pass-type h2 {\n margin: 32px 0 10px;\n font-size: 30px;\n line-height: 1.08;\n font-weight: 700;\n }\n\n .pass-type h3,\n .pass-type p,\n .pass-type .caption {\n font-family: 'Karla', system-ui, sans-serif;\n }\n\n .pass-type h3 {\n margin: 22px 0 6px;\n font-size: 22px;\n line-height: 1.15;\n }\n\n .pass-type p {\n margin: 0 0 12px;\n color: #374151;\n font-size: 16px;\n }\n\n .pass-type .caption {\n color: #4b5563;\n font-size: 12px;\n }\n </style>\n</head>\n<body>\n <div class=\"grid\">\n <section class=\"col\" data-col=\"flag\">\n <h2 class=\"col-label\">Should flag</h2>\n <article class=\"flag-type\">\n <h1>Typography Anti-Patterns</h1>\n <p>This side uses element-level typography failures that can be highlighted directly in the detector lab.</p>\n\n <h2>Tight Leading</h2>\n <p class=\"tight-leading-demo\">This paragraph has a line-height that is too tight for body copy. The lines press into each other and make scanning harder, especially once the text wraps across multiple lines in a production layout.</p>\n\n <h2>Tiny Body Text</h2>\n <p class=\"tiny-body-demo\">This body text is set at 10px, which is too small for real reading content and should be reserved for neither primary copy nor explanatory product text.</p>\n\n <h2>All-Caps Body</h2>\n <p class=\"caps-body-demo\">This entire paragraph is transformed to uppercase, which removes useful word shapes and makes longer body copy feel like a shout instead of a readable passage.</p>\n\n <h2>Wide Tracking</h2>\n <p class=\"tracked-body-demo\">This paragraph spreads every letter apart, a treatment that belongs on short labels at most, not on body copy that people need to read comfortably.</p>\n\n <h2>Justified Text</h2>\n <p class=\"justified-body-demo\">This paragraph uses justified alignment without automatic hyphenation. In narrow columns it creates uneven word spacing and distracting rivers through the text block.</p>\n\n <h2>Overused Font</h2>\n <p>Inter is also the dominant face on this side of the page, so the browser page-level detector has enough real text elements to show the global overused-font banner.</p>\n </article>\n </section>\n\n <section class=\"col\" data-col=\"pass\">\n <h2 class=\"col-label\">Should pass</h2>\n <article class=\"pass-type\">\n <h1>Good Typography</h1>\n <p>This side keeps readable body defaults, a real font pairing, clear scale, and visible hierarchy.</p>\n\n <h2>Two Font Families</h2>\n <p>Newsreader carries display text, while Karla handles reading surfaces and supporting labels.</p>\n\n <h3>Strong Size Hierarchy</h3>\n <p>Sizes range from 12px to 48px with distinct roles for heading, subheading, body, and caption.</p>\n <p class=\"caption\">Caption text is intentionally smaller but still readable.</p>\n </article>\n </section>\n </div>\n\n <script src=\"/js/detect-antipatterns-browser.js\"></script>\n</body>\n</html>\n"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}
{"args":["<section class=\"design-system-fixture\">\n <style>\n .design-system-fixture {\n --brand-accent: #b8422e;\n background: #f7f4ee;\n color: #241f1a;\n font-family: \"IBM Plex Sans\", Arial, sans-serif;\n padding: 24px;\n }\n\n .case {\n margin: 0 0 12px;\n padding: 14px 16px;\n border-radius: 8px;\n border: 1px solid #d4c7b9;\n background: #ffffff;\n color: #241f1a;\n font-size: 16px;\n }\n\n .fixture-note {\n margin: 0 0 16px;\n padding: 12px 14px;\n border-radius: 8px;\n border: 1px solid #d4c7b9;\n background: #f7f4ee;\n color: #241f1a;\n font-size: 14px;\n line-height: 1.45;\n }\n\n .fixture-note strong {\n font-weight: 700;\n }\n\n .flag-font { font-family: \"Poppins\", sans-serif; }\n .flag-color { color: #ff00aa; }\n .flag-background { background-color: rgb(20, 180, 220); }\n .flag-border { border-color: #00a982; }\n .flag-radius { border-radius: 18px; }\n .flag-font-size { font-size: 12.5px; }\n\n .pass-display-font { font-family: \"Avenir Next\", Georgia, serif; }\n .pass-rem-font-size { font-size: 1rem; }\n .pass-relative-font-size { font-size: 1.2em; }\n .pass-generic-font { font-family: ui-sans-serif, system-ui, sans-serif; }\n .pass-token-color { color: var(--brand-accent); }\n .pass-alpha-color { color: rgba(184, 66, 46, 0.45); }\n .pass-close-color { color: #bb442f; }\n .pass-ramp-color { color: #d55a42; }\n .pass-zero-radius { border-radius: 0; }\n .pass-percent-radius { border-radius: 50%; }\n .pass-scale-radius { border-radius: 32px; }\n .pass-mid-pill-radius { border-radius: 100px; }\n .pass-pill-radius { border-radius: 999px; }\n </style>\n\n <aside class=\"fixture-note\">\n <strong>Browser note:</strong> design-system detections need injected DESIGN.md context, so this page only shows global/browser findings. Use the CLI or hook tests to exercise the design-system rules.\n </aside>\n\n <div class=\"case flag-font\">Flag Font Unsupported</div>\n <div class=\"case flag-color\">Flag Color Hot Pink</div>\n <div class=\"case flag-background\">Flag Background Cyan</div>\n <div class=\"case flag-border\">Flag Border Teal</div>\n <div class=\"case flag-radius\">Flag Radius Eighteen</div>\n <div class=\"case flag-font-size\">Flag Font Size Twelve Point Five</div>\n <div class=\"case\" data-font-source=\"https://fonts.googleapis.com/css2?family=Poppins:wght@400&display=swap\">Flag Google Font Source</div>\n\n <div class=\"case pass-display-font\">Pass Display Font</div>\n <div class=\"case pass-rem-font-size\">Pass Rem Font Size</div>\n <div class=\"case pass-relative-font-size\">Pass Relative Font Size</div>\n <div class=\"case pass-generic-font\">Pass Generic Font</div>\n <div class=\"case pass-token-color\">Pass Token Color</div>\n <div class=\"case pass-alpha-color\">Pass Alpha Color</div>\n <div class=\"case pass-close-color\">Pass Close Color</div>\n <div class=\"case pass-ramp-color\">Pass Ramp Color</div>\n <div class=\"case pass-zero-radius\">Pass Zero Radius</div>\n <div class=\"case pass-percent-radius\">Pass Percent Radius</div>\n <div class=\"case pass-scale-radius\">Pass Scale Radius</div>\n <div class=\"case pass-mid-pill-radius\">Pass Mid Pill Radius</div>\n <div class=\"case pass-pill-radius\">Pass Pill Radius</div>\n</section>\n"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}
{"args":["<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <title>Numbered Section Labels Fixture</title>\n <style>\n body {\n font-family: Georgia, serif;\n font-size: 16px;\n margin: 0;\n padding: 40px;\n background: #ffffff;\n color: #222222;\n }\n .column { width: 520px; padding: 20px; }\n h2 { font-size: 28px; margin: 0 0 12px; }\n h3 { font-size: 22px; margin: 0 0 10px; }\n section { margin-bottom: 48px; }\n\n /* ── flag column styles ── */\n .sec-index {\n font-family: monospace;\n font-size: 11px;\n font-weight: 700;\n color: #b45309;\n display: block;\n margin-bottom: 8px;\n }\n .sec-index-micro {\n font-family: monospace;\n font-size: 12px;\n font-weight: 700;\n letter-spacing: 2px;\n color: #b45309;\n display: block;\n margin-bottom: 8px;\n }\n\n /* ── pass column styles ── */\n .big-index {\n font-size: 16px;\n font-weight: 700;\n font-family: monospace;\n display: block;\n }\n .plain-note {\n font-size: 12px;\n font-weight: 400;\n letter-spacing: 0;\n color: #666666;\n display: block;\n }\n .step-label {\n font-family: monospace;\n font-size: 11px;\n font-weight: 700;\n display: block;\n }\n .card {\n border: 1px solid #d4d4d4;\n border-radius: 8px;\n padding: 16px;\n }\n </style>\n</head>\n<body>\n\n <!-- ══ SHOULD FLAG: tiny numeric index labels repeated across sections ══ -->\n <div class=\"column\">\n\n <section>\n <span class=\"sec-index\">01</span>\n <h2>Alpha ships first</h2>\n <p>Direct previous-sibling label: tiny, mono, bold, zero-padded index.</p>\n </section>\n\n <section>\n <span class=\"sec-index\">02</span>\n <h2>Beta earns trust</h2>\n <p>Second section repeating the same index scaffold.</p>\n </section>\n\n <section>\n <span class=\"sec-index\">03</span>\n <div>\n <h2>Gamma holds the line</h2>\n <p>Label precedes the wrapper; the heading leads the wrapper.</p>\n </div>\n </section>\n\n <section>\n <span class=\"sec-index-micro\">04 / ROLLOUT</span>\n <h2>Delta closes the loop</h2>\n <p>Index joined to a tracked micro-label by a separator glyph.</p>\n </section>\n\n </div>\n\n <!-- ══ SHOULD PASS ══ -->\n <div class=\"column\">\n\n <section>\n <span class=\"big-index\">05</span>\n <h2>Epsilon reads large</h2>\n <p>16px index is a deliberate display device, not a micro label.</p>\n </section>\n\n <section>\n <span class=\"plain-note\">12 · minute read</span>\n <h2>Zeta stays plain</h2>\n <p>Parses as an index but carries no micro-label styling: regular weight, neutral color, no tracking, serif body face.</p>\n </section>\n\n <section>\n <span class=\"sec-index\">Step 6</span>\n <h2>Eta walks steps</h2>\n <p>Word-first label is not a numeric index.</p>\n </section>\n\n <section>\n <span class=\"sec-index\">7</span>\n <h2>Theta counts casually</h2>\n <p>A bare unpadded single digit is ordinary list numbering.</p>\n </section>\n\n <ol>\n <li>\n <span class=\"step-label\">08</span>\n <h3>Iota lives in a list</h3>\n </li>\n <li>\n <span class=\"step-label\">09</span>\n <h3>Kappa lives in a list too</h3>\n </li>\n </ol>\n\n <article class=\"card\">\n <span class=\"sec-index\">10</span>\n <h3>Lambda sits in a card</h3>\n <p>Per-card indices are item numbering, not section scaffolding.</p>\n </article>\n\n <nav aria-label=\"Progress\">\n <span class=\"sec-index\">11</span>\n <h3>Mu tracks progress</h3>\n </nav>\n\n </div>\n\n</body>\n</html>\n"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}
{"args":["<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <title>Repeated Container Text Fixture</title>\n <style>\n body {\n font-family: Georgia, serif;\n font-size: 16px;\n margin: 0;\n padding: 40px;\n background: #f5f5f4;\n color: #222222;\n }\n .card {\n background: #ffffff;\n border: 1px solid #d6d3d1;\n border-radius: 10px;\n padding: 20px;\n width: 360px;\n margin-bottom: 32px;\n }\n .shadow-card {\n background: #ffffff;\n border-radius: 10px;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);\n padding: 20px;\n width: 360px;\n margin-bottom: 32px;\n }\n h2 { font-size: 22px; margin: 0 0 10px; }\n .big-word { font-size: 30px; font-weight: 700; color: #b91c1c; }\n .tag { font-size: 12px; text-transform: uppercase; color: #b91c1c; }\n .row { padding: 6px 0; border-bottom: 1px solid #eeeeee; }\n .status { font-size: 13px; color: #57534e; }\n td, th { padding: 6px 10px; font-size: 14px; }\n </style>\n</head>\n<body>\n\n <!-- ══ SHOULD FLAG ══ -->\n\n <!-- Same word wired into three structurally different slots of one card -->\n <div class=\"card\" id=\"flag-status-card\">\n <h2>Museumplein departure</h2>\n <div class=\"headline\"><span class=\"big-word\">Suspended</span></div>\n <div class=\"meta\"><span class=\"tag\">Suspended</span></div>\n <p class=\"note\">This service is <strong>Suspended</strong> until further notice.</p>\n </div>\n\n <!-- Four distinct slots inside one elevated card -->\n <div class=\"shadow-card\" id=\"flag-ticket-card\">\n <h2>Evening show</h2>\n <div class=\"banner\"><span class=\"big-word\">Unavailable</span></div>\n <div class=\"detail\"><em class=\"tag\">Unavailable</em></div>\n <div class=\"footer\"><span class=\"status\">Unavailable</span></div>\n <p class=\"aside\">Currently <strong>Unavailable</strong> at this venue.</p>\n </div>\n\n <!-- ══ SHOULD PASS ══ -->\n\n <!-- Table columns inside a card repeat by design -->\n <div class=\"card\" id=\"pass-table-card\">\n <h2>Deploy history</h2>\n <table>\n <tr><td>build 12</td><td>Rolled back</td></tr>\n <tr><td>build 13</td><td>Rolled back</td></tr>\n <tr><td>build 14</td><td>Rolled back</td></tr>\n </table>\n </div>\n\n <!-- Parallel templated rows: identical structural position each time -->\n <div class=\"card\" id=\"pass-parallel-rows\">\n <h2>Departures</h2>\n <div class=\"row\"><span class=\"status\">On schedule</span></div>\n <div class=\"row\"><span class=\"status\">On schedule</span></div>\n <div class=\"row\"><span class=\"status\">On schedule</span></div>\n </div>\n\n <!-- Nav list inside a card -->\n <div class=\"card\" id=\"pass-nav-card\">\n <h2>Sections</h2>\n <nav>\n <div class=\"a\"><span>Overview page</span></div>\n <div class=\"b\"><em>Overview page</em></div>\n <div class=\"c\"><strong>Overview page</strong></div>\n </nav>\n </div>\n\n <!-- Short strings never count -->\n <div class=\"card\" id=\"pass-short-text\">\n <h2>Toggles</h2>\n <div class=\"one\"><span>Off</span></div>\n <div class=\"two\"><em>Off</em></div>\n <div class=\"three\"><strong>Off</strong></div>\n </div>\n\n <!-- Digits-only strings never count -->\n <div class=\"card\" id=\"pass-numbers\">\n <h2>Scores</h2>\n <div class=\"one\"><span>2026</span></div>\n <div class=\"two\"><em>2026</em></div>\n <div class=\"three\"><strong>2026</strong></div>\n </div>\n\n <!-- One occurrence per card, three cards -->\n <div class=\"card\" id=\"pass-spread-a\"><span class=\"tag\">Standby mode</span></div>\n <div class=\"card\" id=\"pass-spread-b\"><em class=\"tag\">Standby mode</em></div>\n <div class=\"card\" id=\"pass-spread-c\"><strong class=\"tag\">Standby mode</strong></div>\n\n <!-- Calendar-style grid repeats by design -->\n <div class=\"card\" id=\"pass-grid-card\">\n <h2>Availability</h2>\n <div role=\"grid\">\n <div class=\"cell-a\"><span>Open slot</span></div>\n <div class=\"cell-b\"><em>Open slot</em></div>\n <div class=\"cell-c\"><strong>Open slot</strong></div>\n </div>\n </div>\n\n <!-- Only two structurally distinct occurrences: below threshold -->\n <div class=\"card\" id=\"pass-two-spots\">\n <h2>Corner case</h2>\n <div class=\"headline\"><span class=\"big-word\">Rescheduled</span></div>\n <div class=\"meta\"><span class=\"tag\">Rescheduled</span></div>\n </div>\n\n</body>\n</html>\n"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}
{"args":["<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <title>Icon-Tile-Stack — Should Flag vs Should Pass</title>\n <style>\n /* ─── Layout convention: two-column fixture ─────────────────────────\n Left column = patterns the rule SHOULD flag.\n Right column = legitimate patterns the rule should NOT flag.\n Each test case is annotated with a unique <h3> text so the test\n can match snippets back to expectations.\n ──────────────────────────────────────────────────────────────── */\n body { font-family: system-ui, sans-serif; margin: 0; padding: 24px; }\n .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 960px; margin: 0 auto; }\n .col h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 16px; color: #475569; }\n .case { margin-bottom: 24px; padding: 16px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }\n .case h3 { font-size: 18px; margin: 0 0 4px; color: #0f172a; }\n .case p { font-size: 14px; margin: 0; color: #64748b; }\n\n /* ── FLAG cases ── */\n\n /* 1: pastel-gradient icon-tile (the canonical massive-icons.html shape) */\n .icon-pastel {\n width: 80px; height: 80px;\n border-radius: 20px;\n background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);\n display: flex; align-items: center; justify-content: center;\n margin-bottom: 16px;\n }\n\n /* 2: solid-color icon-tile, white svg inside (no gradient) */\n .icon-solid {\n width: 64px; height: 64px;\n border-radius: 16px;\n background: #3b82f6;\n display: flex; align-items: center; justify-content: center;\n margin-bottom: 16px;\n }\n\n /* 3: white-bg outlined icon-tile (no chromatic background at all) */\n .icon-white {\n width: 72px; height: 72px;\n border-radius: 18px;\n background: #ffffff;\n border: 1px solid #e2e8f0;\n display: flex; align-items: center; justify-content: center;\n margin-bottom: 16px;\n }\n\n /* 4: larger square (still inside the 32–128 range) */\n .icon-large {\n width: 96px; height: 96px;\n border-radius: 24px;\n background: #f1f5f9;\n display: flex; align-items: center; justify-content: center;\n margin-bottom: 16px;\n }\n\n /* 5: inline emoji icon — tile contains an emoji/symbol character directly,\n not an <svg> or <i> child. This is the \"card-icon\" pattern from many\n generated demos. */\n .icon-emoji {\n width: 48px; height: 48px;\n border-radius: 12px;\n background: linear-gradient(135deg, #8b5cf6, #a855f7);\n display: flex; align-items: center; justify-content: center;\n font-size: 24px;\n margin-bottom: 16px;\n }\n\n /* ── PASS cases ── */\n\n /* a: round avatar above name (border-radius: 50% — circle, not rounded square) */\n .avatar-round {\n width: 64px; height: 64px;\n border-radius: 50%;\n background: #f59e0b;\n display: flex; align-items: center; justify-content: center;\n margin-bottom: 16px;\n }\n\n /* b: wide thumbnail above article title (16:9, much wider than tall) */\n .thumb-wide {\n width: 200px; height: 112px;\n border-radius: 8px;\n background: #cbd5e1;\n margin-bottom: 16px;\n }\n\n /* c: inline icon next to heading (icon and h3 on the same row, NOT stacked) */\n .inline-row { display: flex; align-items: center; gap: 12px; }\n .inline-row .icon-inline {\n width: 80px; height: 80px;\n border-radius: 20px;\n background: #ddd6fe;\n display: flex; align-items: center; justify-content: center;\n flex-shrink: 0;\n }\n\n /* d: nothing above the heading at all */\n .no-icon h3 { margin-top: 0; }\n\n /* e: icon-tile that's too small (under 32px) — out of size range */\n .icon-tiny {\n width: 24px; height: 24px;\n border-radius: 6px;\n background: #93c5fd;\n display: flex; align-items: center; justify-content: center;\n margin-bottom: 16px;\n }\n\n /* f: oversized image card / hero image (over 128px) — out of size range */\n .img-huge {\n width: 200px; height: 200px;\n border-radius: 16px;\n background: #cbd5e1;\n margin-bottom: 16px;\n }\n </style>\n</head>\n<body>\n <div class=\"grid\">\n\n <!-- ════════════════════════════════════════════════════════════════\n LEFT COLUMN: should flag\n ═══════════════════════════════════════════════════════════════ -->\n <div class=\"col\" data-col=\"flag\">\n <h2>Should flag</h2>\n\n <div class=\"case\">\n <div class=\"icon-pastel\">\n <svg width=\"40\" height=\"40\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"#3b82f6\" stroke-width=\"1.5\">\n <polyline points=\"13 2 3 14 12 14 11 22 21 10 12 10 13 2\"/>\n </svg>\n </div>\n <h3>Lightning Fast</h3>\n <p>Built for speed and performance from the ground up.</p>\n </div>\n\n <div class=\"case\">\n <div class=\"icon-solid\">\n <svg width=\"32\" height=\"32\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"#ffffff\" stroke-width=\"1.5\">\n <path d=\"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z\"/>\n </svg>\n </div>\n <h3>Secure Storage</h3>\n <p>Enterprise-grade security for your peace of mind.</p>\n </div>\n\n <div class=\"case\">\n <div class=\"icon-white\">\n <svg width=\"36\" height=\"36\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"#0f172a\" stroke-width=\"1.5\">\n <circle cx=\"12\" cy=\"12\" r=\"10\"/>\n <path d=\"M12 6v6l4 2\"/>\n </svg>\n </div>\n <h3>Easy Setup</h3>\n <p>Get started in minutes with zero configuration.</p>\n </div>\n\n <div class=\"case\">\n <div class=\"icon-large\">\n <svg width=\"48\" height=\"48\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"#0f172a\" stroke-width=\"1.5\">\n <line x1=\"18\" y1=\"20\" x2=\"18\" y2=\"10\"/>\n <line x1=\"12\" y1=\"20\" x2=\"12\" y2=\"4\"/>\n <line x1=\"6\" y1=\"20\" x2=\"6\" y2=\"14\"/>\n </svg>\n </div>\n <h3>Powerful Analytics</h3>\n <p>Insights that drive smarter business decisions.</p>\n </div>\n\n <div class=\"case\">\n <div class=\"icon-emoji\">⚡</div>\n <h3>Emoji Inline Icon</h3>\n <p>The tile contains an emoji directly, no SVG child.</p>\n </div>\n </div>\n\n <!-- ════════════════════════════════════════════════════════════════\n RIGHT COLUMN: should pass\n ═══════════════════════════════════════════════════════════════ -->\n <div class=\"col\" data-col=\"pass\">\n <h2>Should pass</h2>\n\n <!-- a: round avatar (circle, not rounded square) -->\n <div class=\"case\">\n <div class=\"avatar-round\">\n <svg width=\"32\" height=\"32\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"#fff\" stroke-width=\"2\">\n <circle cx=\"12\" cy=\"8\" r=\"4\"/>\n <path d=\"M4 22v-2a8 8 0 0116 0v2\"/>\n </svg>\n </div>\n <h3>Sarah Chen</h3>\n <p>Product designer based in Berlin.</p>\n </div>\n\n <!-- b: wide 16:9 thumbnail (aspect ratio out of range) -->\n <div class=\"case\">\n <div class=\"thumb-wide\"></div>\n <h3>Article Headline</h3>\n <p>A summary of an interesting article.</p>\n </div>\n\n <!-- c: side-by-side icon and heading (not stacked vertically) -->\n <div class=\"case\">\n <div class=\"inline-row\">\n <div class=\"icon-inline\">\n <svg width=\"40\" height=\"40\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"#7c3aed\" stroke-width=\"1.5\">\n <circle cx=\"12\" cy=\"12\" r=\"10\"/>\n </svg>\n </div>\n <div>\n <h3>Inline Side By Side</h3>\n <p>Icon sits next to the heading, not above it.</p>\n </div>\n </div>\n </div>\n\n <!-- d: no icon above the heading at all -->\n <div class=\"case no-icon\">\n <h3>Plain Heading No Icon</h3>\n <p>Just a heading with body text, nothing above.</p>\n </div>\n\n <!-- e: icon-tile too small (24px — under 32px floor) -->\n <div class=\"case\">\n <div class=\"icon-tiny\">\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"#1e40af\" stroke-width=\"2\">\n <circle cx=\"12\" cy=\"12\" r=\"10\"/>\n </svg>\n </div>\n <h3>Tiny Icon Above Me</h3>\n <p>The icon container is smaller than 32px.</p>\n </div>\n\n <!-- f: huge image / hero (200px — over 128px ceiling) -->\n <div class=\"case\">\n <div class=\"img-huge\"></div>\n <h3>Huge Hero Image</h3>\n <p>The container is larger than the size cap.</p>\n </div>\n </div>\n </div>\n <script src=\"/js/detect-antipatterns-browser.js\"></script>\n</body>\n</html>\n"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}
{"args":["<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<title>radial-spotlight-glow fixture</title>\n<style>\n /* jsdom / static-html engine does no layout: every case declares explicit\n pixel width + height so the size gate can read them. */\n body { margin: 0; background: #0b0d13; }\n .grid { display: flex; flex-wrap: wrap; gap: 24px; padding: 24px; }\n .case { color: #e6e6e6; }\n\n /* ───────── SHOULD FLAG: decorative low-opacity chromatic spotlights ───────── */\n\n /* The exact declaration that evaded the detector: soft blue spotlight fading\n to transparent, painted on a large mobile hero. */\n .flag-hero-blue {\n width: 360px; height: 560px;\n background: radial-gradient(circle at 52% 38%, rgba(80,111,255,0.26), transparent 44%);\n }\n /* Violet accent wash on a full section. */\n .flag-section-violet {\n width: 900px; height: 600px;\n background-image: radial-gradient(circle, rgba(139,92,246,0.30), transparent 60%);\n }\n /* Cyan overlay-style glow (the pseudo-element overlay div reflex). */\n .flag-overlay-cyan {\n width: 760px; height: 480px;\n background: radial-gradient(ellipse at top, rgba(34,211,238,0.22), transparent 70%);\n }\n /* Single glow drawn with two low-alpha stops of one hue fading out. */\n .flag-two-stop-rose {\n width: 640px; height: 400px;\n background: radial-gradient(circle, rgba(255,90,120,0.28) 0%, rgba(255,90,120,0.12) 45%, transparent 75%);\n }\n /* Same tell written as an 8-digit hex (#506fff at alpha 0x3d ≈ 0.24). */\n .flag-hex-alpha {\n width: 700px; height: 460px;\n background: radial-gradient(circle, #506fff3d, transparent 50%);\n }\n\n /* ───────── SHOULD PASS: real backgrounds, small elements, neutrals, rich art ───────── */\n\n /* Opaque radial background — a real surface, not a glow (no transparent end). */\n .pass-opaque-bg {\n width: 800px; height: 520px;\n background: radial-gradient(circle, #1e3a8a, #0f172a);\n }\n /* Small badge: chromatic low-alpha radial glow, but tiny. */\n .pass-badge {\n width: 40px; height: 40px;\n background: radial-gradient(circle, rgba(80,111,255,0.30), transparent);\n }\n /* Avatar-scale light: the subject IS a small light, exempt by size. */\n .pass-avatar-light {\n width: 72px; height: 72px;\n background: radial-gradient(circle, rgba(255,196,64,0.35), transparent 70%);\n }\n /* Neutral near-black vignette — grayscale, not the accent-glow tell. */\n .pass-neutral-vignette {\n width: 800px; height: 520px;\n background: radial-gradient(circle, rgba(0,0,0,0.40), transparent 80%);\n }\n /* Neutral near-white vignette — grayscale, exempt. */\n .pass-white-vignette {\n width: 820px; height: 540px;\n background: radial-gradient(ellipse, rgba(255,255,255,0.35), transparent 70%);\n }\n /* Rich three-color radial composition — real color structure, opaque, no fade. */\n .pass-rich-composition {\n width: 800px; height: 520px;\n background: radial-gradient(circle, #ff0080 0%, #7928ca 45%, #0070f3 100%);\n }\n /* Rich composition that does fade out, but its color stops are opaque. */\n .pass-rich-transparent {\n width: 780px; height: 500px;\n background: radial-gradient(circle, rgba(255,0,128,0.90) 0%, rgba(121,40,202,0.85) 50%, transparent);\n }\n /* Opaque center glow (the radial-halo case, alpha ≥ 0.45) — not this rule. */\n .pass-opaque-center {\n width: 800px; height: 520px;\n background: radial-gradient(circle, rgba(80,111,255,0.85), transparent);\n }\n /* Low-alpha chromatic wash, but LINEAR, not radial. */\n .pass-linear-wash {\n width: 800px; height: 520px;\n background: linear-gradient(120deg, rgba(80,111,255,0.28), transparent 60%);\n }\n</style>\n</head>\n<body>\n <main class=\"grid\">\n <!-- should-flag column -->\n <div class=\"case flag-hero-blue\" data-name=\"Hero Spotlight Blue\"></div>\n <div class=\"case flag-section-violet\" data-name=\"Section Glow Violet\"></div>\n <div class=\"case flag-overlay-cyan\" data-name=\"Overlay Glow Cyan\"></div>\n <div class=\"case flag-two-stop-rose\" data-name=\"Two Stop Soft Glow\"></div>\n <div class=\"case flag-hex-alpha\" data-name=\"Hex Alpha Glow\"></div>\n\n <!-- should-pass column -->\n <div class=\"case pass-opaque-bg\" data-name=\"Opaque Radial Background\"></div>\n <div class=\"case pass-badge\" data-name=\"Small Accent Badge\"></div>\n <div class=\"case pass-avatar-light\" data-name=\"Avatar Glow Light\"></div>\n <div class=\"case pass-neutral-vignette\" data-name=\"Neutral Vignette\"></div>\n <div class=\"case pass-white-vignette\" data-name=\"White Vignette\"></div>\n <div class=\"case pass-rich-composition\" data-name=\"Rich Radial Composition\"></div>\n <div class=\"case pass-rich-transparent\" data-name=\"Rich Transparent Composition\"></div>\n <div class=\"case pass-opaque-center\" data-name=\"Opaque Center Glow\"></div>\n <div class=\"case pass-linear-wash\" data-name=\"Linear Gradient Wash\"></div>\n </main>\n</body>\n</html>\n"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}
{"args":["<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<title>undersized-ui-text fixture</title>\n<style>\n /* Explicit pixel dimensions because jsdom does no layout. */\n body { font-family: system-ui, sans-serif; font-size: 16px; }\n .col { display: inline-block; width: 480px; vertical-align: top; }\n\n /* --- should-flag styles --- */\n .nav-link { font-size: 8px; }\n .category { font-size: 8px; }\n .meta { font-size: 9px; }\n .btn-small { font-size: 10px; width: 120px; height: 24px; }\n .cell-small { font-size: 9px; }\n .caps-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; }\n .footer-link { font-size: 8px; }\n\n /* --- should-pass styles --- */\n .legal { font-size: 10px; line-height: 1.5; } /* non-interactive footer smallprint at 10px */\n .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); font-size: 4px; }\n .sup-marker { font-size: 8px; }\n .sub-marker { font-size: 8px; }\n .em-parent { font-size: 20px; }\n .em-child { font-size: 0.6em; } /* resolves to 12px, above the floor */\n .mock-terminal { width: 400px; }\n .term-line { font-size: 9px; } /* legitimately small code/terminal text */\n .normal-link { font-size: 12px; } /* at the floor, allowed */\n</style>\n</head>\n<body>\n\n<!-- ================= SHOULD FLAG (functional/UI text below the 11px floor) ================= -->\n<div class=\"col\" id=\"should-flag\">\n <h2>Should flag</h2>\n\n <!-- interactive: nav link at 8px -->\n <nav aria-label=\"primary\">\n <a href=\"/docs\" class=\"nav-link\">Flag Nav Link</a>\n </nav>\n\n <!-- non-interactive furniture: category label at 8px -->\n <span class=\"category\">Flag Category</span>\n\n <!-- non-interactive furniture: meta row at 9px -->\n <span class=\"meta\">Flag Meta Row</span>\n\n <!-- interactive: button label at 10px -->\n <button type=\"button\" class=\"btn-small\">Flag Button</button>\n\n <!-- structural furniture: table cell at 9px -->\n <table>\n <tbody>\n <tr><td class=\"cell-small\">Flag Table Cell</td></tr>\n </tbody>\n </table>\n\n <!-- decorative letterspaced uppercase micro-label at 10px: STILL functional, not exempt -->\n <span class=\"caps-label\">Flag Caps Label</span>\n\n <!-- interactive text in a footer stays on the 11px floor: footer link at 8px -->\n <footer>\n <a href=\"/privacy\" class=\"footer-link\">Flag Footer Link</a>\n </footer>\n</div>\n\n<!-- ================= SHOULD PASS ================= -->\n<div class=\"col\" id=\"should-pass\">\n <h2>Should pass</h2>\n\n <!-- non-interactive legal fine print in a footer at 10px: floor drops to 10px for smallprint -->\n <footer>\n <p class=\"legal\">Pass Legal Fine Print copyright 2026 all rights reserved across this jurisdiction</p>\n </footer>\n\n <!-- visually-hidden / screen-reader text: never rendered, exempt -->\n <span class=\"sr-only\">Pass Sr Only</span>\n\n <!-- sup / sub markers are exempt by tag -->\n <p>Reference<sup class=\"sup-marker\">Pass Sup Marker</sup> and water<sub class=\"sub-marker\">Pass Sub Marker</sub></p>\n\n <!-- em-sized text relative to a large parent computes to 12px, above the floor -->\n <div class=\"em-parent\"><span class=\"em-child\">Pass Em Sized</span></div>\n\n <!-- code / terminal mock: legitimately small, exempt -->\n <div class=\"mock-terminal\">\n <span class=\"term-line\">Pass Terminal Line</span>\n </div>\n\n <!-- functional text exactly at the 12px floor is allowed -->\n <a href=\"/home\" class=\"normal-link\">Pass Normal Link</a>\n</div>\n\n</body>\n</html>\n"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}
{"args":["<!DOCTYPE html>\n<!--\n Regression fixture for issue #408: tiny-text / undersized-ui-text must only\n measure rendered text. On sites that set `html { font-size: 62.5% }` the root\n computes to 10px, so every element that inherits the root and carries text\n content — including <script>, <style>, <title>, <noscript>, and display:none /\n visibility:hidden blocks — reports a 10px computed size. Their JS / CSS /\n JSON-LD text satisfies hasDirectText, so before the fix they produced dozens\n of phantom \"10px body text\" findings on every Shopify page.\n\n Explicit pixel sizes throughout because jsdom does no layout.\n-->\n<html style=\"font-size: 10px\">\n<head>\n<meta charset=\"utf-8\">\n<!-- SHOULD PASS: a long <title> inherits the 10px root, but nothing renders it. -->\n<title>This is a fairly long document title that easily exceeds twenty characters</title>\n<!-- SHOULD PASS: stylesheet text is never painted. -->\n<style>\n /* This CSS comment is deliberately longer than twenty characters so the style\n element's text node clears the hasDirectText / textLen > 20 gate. */\n body { font-size: 10px; font-family: system-ui, sans-serif; }\n .rendered-body { font-size: 10px; }\n .rendered-nav-link { font-size: 9px; }\n .none-block { display: none; font-size: 10px; }\n .hidden-block { visibility: hidden; font-size: 10px; }\n</style>\n<!-- SHOULD PASS: script payload text is never painted. -->\n<script>window.__ANALYTICS__ = { id: 1, ts: 0 }; console.log(\"an analytics payload string that is clearly longer than twenty characters\");</script>\n<!-- SHOULD PASS: JSON-LD schema block, a Shopify staple. -->\n<script type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"Product\",\"name\":\"A product name long enough to exceed twenty characters\"}</script>\n<!-- SHOULD PASS: noscript fallback prose is only shown without JS; still non-rendered here. -->\n<noscript>Please enable JavaScript in your browser to view this page content correctly.</noscript>\n</head>\n<body>\n\n<!-- SHOULD PASS: display:none block, its text is never painted. -->\n<div class=\"none-block\">Hidden display-none block of body text long enough to exceed twenty characters.</div>\n\n<!-- SHOULD PASS: visibility:hidden paragraph, its text is never painted. -->\n<p class=\"hidden-block\">Invisible visibility-hidden paragraph copy that is longer than the twenty char gate.</p>\n\n<!-- SHOULD FLAG (tiny-text): genuinely rendered body copy at 10px. -->\n<p class=\"rendered-body\">This is real rendered body copy at 10px that is definitely long enough to flag.</p>\n\n<!-- SHOULD FLAG (undersized-ui-text): genuinely rendered interactive text at 9px. -->\n<nav aria-label=\"primary\"><a href=\"/docs\" class=\"rendered-nav-link\">Rendered Nav Link</a></nav>\n\n</body>\n</html>\n"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}
{"args":["<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>Quality (Typography & Readability) — Should Flag vs Should Pass</title>\n <style>\n /* Two-column fixture: left = should flag, right = should pass.\n Covers the typography-quality rules that need real browser layout\n (line-length, tight-leading, tiny-text, justified-text, all-caps-body,\n wide-tracking, skipped-heading). All are browser-only — see\n tests/detect-antipatterns-browser.test.mjs for assertions. */\n body { font-family: system-ui, sans-serif; background: #fafafa; padding: 24px; margin: 0; color: #0f172a; line-height: 1.6; }\n .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 1280px; margin: 0 auto; }\n .col h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 16px; color: #475569; }\n .col h3 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; margin: 24px 0 8px; color: #64748b; }\n .case { margin-bottom: 16px; padding: 16px; background: white; border: 1px solid #e2e8f0; border-radius: 8px; }\n .case-label { display: block; font-size: 12px; color: #64748b; margin-bottom: 6px; font-style: italic; }\n\n /* ── FLAG: typography quality issues ── */\n\n /* Line length: 12px body text fits >85 chars/line in a ~528px column.\n 12px is not below the tiny-text 12px floor (rule fires at <12px). */\n .long-lines {\n font-size: 12px;\n line-height: 1.6;\n }\n\n /* Tight leading */\n .tight-leading {\n font-size: 16px;\n line-height: 1.0;\n max-width: 40em;\n }\n\n /* Tiny body text */\n .tiny-text {\n font-size: 10px;\n line-height: 1.6;\n max-width: 40em;\n }\n .tiny-text-11 {\n font-size: 11px;\n line-height: 1.6;\n max-width: 40em;\n }\n\n /* Justified text without hyphens */\n .justified-no-hyphens {\n text-align: justify;\n max-width: 30em;\n font-size: 16px;\n line-height: 1.6;\n }\n\n /* All-caps long body */\n .all-caps-body {\n text-transform: uppercase;\n font-size: 16px;\n max-width: 40em;\n line-height: 1.6;\n }\n\n /* Wide letter spacing on body */\n .wide-tracking-body {\n letter-spacing: 0.15em;\n font-size: 16px;\n max-width: 40em;\n line-height: 1.6;\n }\n\n /* ── PASS: comfortable typography ── */\n\n .good-measure {\n max-width: 65ch;\n font-size: 16px;\n line-height: 1.6;\n }\n\n .good-leading {\n font-size: 16px;\n line-height: 1.6;\n max-width: 40em;\n }\n\n .good-text-size {\n font-size: 16px;\n line-height: 1.6;\n max-width: 40em;\n }\n\n /* Justified text WITH hyphens — fine */\n .justified-with-hyphens {\n text-align: justify;\n hyphens: auto;\n -webkit-hyphens: auto;\n max-width: 30em;\n font-size: 16px;\n line-height: 1.6;\n }\n\n /* Short label in all-caps (passes — under 30 chars) */\n .label-caps {\n text-transform: uppercase;\n font-size: 12px;\n font-weight: 600;\n letter-spacing: 0.1em;\n color: #475569;\n }\n\n /* Wide tracking on a short uppercase label (passes — both conditions excluded) */\n .label-tracking {\n letter-spacing: 0.15em;\n text-transform: uppercase;\n font-size: 12px;\n font-weight: 600;\n color: #475569;\n }\n\n .mock-terminal-title,\n .mock-terminal-meta,\n .mock-diff-line {\n font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n color: #475569;\n line-height: 1.5;\n }\n .mock-terminal-title { font-size: 11px; }\n .mock-terminal-meta { font-size: 10.8px; }\n .mock-diff-line { font-size: 11.84px; }\n </style>\n</head>\n<body>\n <div class=\"grid\">\n\n <!-- ════════════════════════════════════════════════════════════\n LEFT COLUMN: should flag\n ═══════════════════════════════════════════════════════════ -->\n <div class=\"col\" data-col=\"flag\">\n <h2>Should flag</h2>\n\n <h3>Line length too long</h3>\n <div class=\"case\">\n <span class=\"case-label\">no max-width on a paragraph</span>\n <p class=\"long-lines\">This paragraph has no max-width constraint at all, which means on a wide monitor or ultrawide display, each line of text can stretch to 150 or even 200 characters wide. Research consistently shows that line lengths beyond 75 characters significantly reduce reading speed and comprehension. The eye has to travel too far to find the beginning of the next line, causing readers to lose their place. A simple max-width of 65ch to 75ch on the paragraph or its container would fix this entirely.</p>\n </div>\n\n <h3>Tight line height</h3>\n <div class=\"case\">\n <span class=\"case-label\">line-height: 1.0</span>\n <p class=\"tight-leading\">This paragraph has a line-height of 1.0, which means the lines are touching. Multi-line body text needs breathing room between lines for readability. A line-height of 1.5 to 1.7 is generally recommended for body text.</p>\n </div>\n\n <h3>Tiny body text</h3>\n <div class=\"case\">\n <span class=\"case-label\">10px body text</span>\n <p class=\"tiny-text\">This body text is only 10px. While this might be fine for a disclaimer or legal footnote, it's too small for primary content that users need to actually read. Aim for at least 14px for body content, 16px is ideal.</p>\n </div>\n\n <h3>Justified text without hyphens</h3>\n <div class=\"case\">\n <span class=\"case-label\">text-align: justify, no hyphens: auto</span>\n <p class=\"justified-no-hyphens\">This paragraph uses text-align: justify, which forces each line to stretch to fill the full width. Without hyphenation support, this creates uneven gaps between words known as \"rivers of white space\" that flow vertically through the text. Left-aligned text is almost always more readable on the web.</p>\n </div>\n\n <h3>All-caps body text</h3>\n <div class=\"case\">\n <span class=\"case-label\">text-transform: uppercase on a long passage</span>\n <p class=\"all-caps-body\">This entire paragraph is in uppercase via text-transform. While all-caps works for short labels, headings, or navigation items, longer body text in uppercase is significantly harder to read because we lose the word shape cues that come from ascenders and descenders in mixed-case text.</p>\n </div>\n\n <h3>Wide letter spacing on body text</h3>\n <div class=\"case\">\n <span class=\"case-label\">letter-spacing: 0.15em on body text</span>\n <p class=\"wide-tracking-body\">This body text has letter-spacing: 0.15em applied to it. While subtle tracking adjustments can improve readability for headings or all-caps text, adding significant letter spacing to body text actually makes it harder to read by disrupting natural character groupings.</p>\n </div>\n\n <h3>Skipped heading levels</h3>\n <div class=\"case\">\n <span class=\"case-label\">h1 → h3 (missing h2)</span>\n <h1 style=\"font-size: 20px; margin: 0 0 4px;\">Top heading</h1>\n <h3 style=\"font-size: 16px; margin: 0;\">Skips straight to h3</h3>\n </div>\n </div>\n\n <!-- ════════════════════════════════════════════════════════════\n RIGHT COLUMN: should pass\n ═══════════════════════════════════════════════════════════ -->\n <div class=\"col\" data-col=\"pass\">\n <h2>Should pass</h2>\n\n <h3>Comfortable line length</h3>\n <div class=\"case\">\n <span class=\"case-label\">max-width: 65ch on the paragraph</span>\n <p class=\"good-measure\">This paragraph has a max-width of 65ch, keeping the line length comfortable for reading. The eye can easily track from the end of one line to the beginning of the next without losing its place.</p>\n </div>\n\n <h3>Comfortable line height</h3>\n <div class=\"case\">\n <span class=\"case-label\">line-height: 1.6</span>\n <p class=\"good-leading\">This paragraph has a line-height of 1.6, which gives multi-line text plenty of room to breathe and improves the rhythm of the page.</p>\n </div>\n\n <h3>Comfortable body text size</h3>\n <div class=\"case\">\n <span class=\"case-label\">16px body text</span>\n <p class=\"good-text-size\">This is 16px body text — the recommended baseline for comfortable reading on modern displays.</p>\n </div>\n\n <h3>Justified text with hyphens</h3>\n <div class=\"case\">\n <span class=\"case-label\">text-align: justify + hyphens: auto</span>\n <p class=\"justified-with-hyphens\">When justified text is paired with hyphens: auto, the browser can break long words across lines, eliminating the rivers of white space and making the justification look intentional rather than awkward.</p>\n </div>\n\n <h3>Short label in all-caps</h3>\n <div class=\"case\">\n <span class=\"case-label\">short label, uppercase</span>\n <span class=\"label-caps\">Featured</span>\n </div>\n\n <h3>Wide tracking on a short uppercase label</h3>\n <div class=\"case\">\n <span class=\"case-label\">letter-spacing on a short uppercase label</span>\n <span class=\"label-tracking\">Beta</span>\n </div>\n\n <h3>Proper heading hierarchy</h3>\n <div class=\"case\">\n <span class=\"case-label\">h1 → h2 → h3</span>\n <h1 style=\"font-size: 20px; margin: 0 0 4px;\">Top heading</h1>\n <h2 style=\"font-size: 18px; margin: 0 0 4px;\">Second level</h2>\n <h3 style=\"font-size: 16px; margin: 0;\">Third level</h3>\n </div>\n\n <h3>Small mockup metadata</h3>\n <div class=\"case\">\n <span class=\"case-label\">terminal/diff metadata at tiny sizes</span>\n <span class=\"mock-terminal-title\">/impeccable polish : scanning codebase</span>\n <div class=\"mock-terminal-meta\">12 files inspected · 4 visual issues queued</div>\n <div class=\"mock-diff-line\">+ Replace generic button label with action-specific copy</div>\n </div>\n </div>\n </div>\n <script src=\"/js/detect-antipatterns-browser.js\"></script>\n <!-- SVG text: Chrome reports fake scrollWidth/clientWidth on SVG content;\n the text-overflow rule must skip it (pass). -->\n <svg class=\"svg-metrics-pass\" viewBox=\"0 0 430 60\" width=\"430\" height=\"60\" role=\"img\" aria-label=\"diagram\">\n <rect x=\"6\" y=\"10\" width=\"96\" height=\"40\" rx=\"3\" fill=\"none\" stroke=\"#888\"/>\n <text x=\"54\" y=\"35\" text-anchor=\"middle\" font-size=\"13\">impeccable</text>\n </svg>\n</body>\n</html>\n"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}
{"args":["<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>Layout Anti-Patterns — Should Flag vs Should Pass</title>\n <script src=\"https://cdn.tailwindcss.com\"></script>\n <style>\n body { font-family: system-ui, sans-serif; background: #f9fafb; padding: 24px; margin: 0; color: #111827; }\n .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 1280px; margin: 0 auto; }\n .col h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 16px; color: #475569; }\n .col h3 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; margin: 24px 0 8px; color: #64748b; }\n </style>\n</head>\n<body>\n <div class=\"grid\">\n\n <!-- ════════════════════════════════════════════════════════════\n LEFT COLUMN: should flag\n ═══════════════════════════════════════════════════════════ -->\n <div class=\"col\" data-col=\"flag\">\n <h2>Should flag</h2>\n\n <h3>Nested cards (cardocalypse)</h3>\n\n <!-- Classic: card inside card -->\n <div class=\"bg-white rounded-lg shadow-md p-6 mb-4\">\n <h4 class=\"text-lg font-semibold mb-3\">Outer Card</h4>\n <div class=\"bg-white rounded-lg shadow-md p-4\">\n <h5 class=\"font-medium\">Inner Card</h5>\n <p class=\"text-sm text-gray-600\">Card inside card.</p>\n </div>\n </div>\n\n <!-- Three levels deep -->\n <div class=\"bg-white rounded-xl shadow-lg p-6 mb-4\">\n <h4 class=\"text-lg font-semibold mb-3\">Level 1</h4>\n <div class=\"bg-gray-50 rounded-lg shadow-sm p-4 mb-3\">\n <h5 class=\"font-medium mb-2\">Level 2</h5>\n <div class=\"bg-white rounded-md shadow-sm p-3\">\n <p class=\"text-sm\">Level 3 — nesting inception.</p>\n </div>\n </div>\n </div>\n\n <!-- CSS variant: border + bg + shadow nesting -->\n <div style=\"background: white; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); padding: 1.5rem; margin-bottom: 1rem;\">\n <h4 style=\"font-weight: 600; margin-bottom: 0.75rem;\">Outer (CSS)</h4>\n <div style=\"background: #f9fafb; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); padding: 1rem;\">\n <p style=\"font-size: 0.875rem; color: #6b7280;\">Inner card via CSS.</p>\n </div>\n </div>\n\n <!-- shadcn-style Card nested in Card -->\n <div class=\"rounded-lg border bg-white shadow-sm p-6 mb-4\" data-component=\"card\">\n <h4 class=\"font-semibold mb-3\">shadcn-style Outer Card</h4>\n <div class=\"rounded-lg border bg-white shadow-sm p-4\" data-component=\"card\">\n <p class=\"text-sm text-gray-600\">Another shadcn Card nested inside.</p>\n </div>\n </div>\n </div>\n\n <!-- ════════════════════════════════════════════════════════════\n RIGHT COLUMN: should pass\n ═══════════════════════════════════════════════════════════ -->\n <div class=\"col\" data-col=\"pass\">\n <h2>Should pass</h2>\n\n <h3>shadcn Card sub-components (not nested cards)</h3>\n <div class=\"rounded-lg border bg-white shadow-sm mb-4\">\n <div class=\"flex flex-col space-y-1.5 p-6\">\n <h4 class=\"text-lg font-semibold\">Card Title</h4>\n <p class=\"text-sm text-gray-500\">Card description goes here.</p>\n </div>\n <div class=\"p-6 pt-0\">\n <p class=\"text-sm text-gray-600\">CardContent — a sub-section, not a nested card. No shadow, no border-radius of its own.</p>\n </div>\n <div class=\"flex items-center p-6 pt-0\">\n <button class=\"px-4 py-2 bg-gray-900 text-white text-sm rounded-md\">Action</button>\n </div>\n </div>\n\n <h3>Card with form inputs</h3>\n <div class=\"bg-white rounded-lg shadow-sm p-6 mb-4 border\">\n <h4 class=\"font-semibold mb-4\">Settings</h4>\n <div class=\"space-y-3\">\n <input type=\"text\" placeholder=\"Name\" class=\"w-full px-3 py-2 border rounded-md shadow-sm text-sm\">\n <input type=\"email\" placeholder=\"Email\" class=\"w-full px-3 py-2 border rounded-md shadow-sm text-sm\">\n <select class=\"w-full px-3 py-2 border rounded-md shadow-sm text-sm bg-white\">\n <option>Select option</option>\n </select>\n <textarea placeholder=\"Bio\" class=\"w-full px-3 py-2 border rounded-md shadow-sm text-sm h-20 resize-none\"></textarea>\n </div>\n </div>\n\n <h3>Card with code block</h3>\n <div class=\"bg-white rounded-lg shadow-sm p-6 mb-4 border\">\n <h4 class=\"font-semibold mb-3\">Installation</h4>\n <pre class=\"bg-gray-900 text-gray-100 rounded-md p-4 text-sm overflow-x-auto\"><code>npm install @acme/sdk</code></pre>\n </div>\n\n <h3>Card with badges</h3>\n <div class=\"bg-white rounded-lg shadow-sm p-6 mb-4 border\">\n <h4 class=\"font-semibold mb-3\">Tags</h4>\n <div class=\"flex flex-wrap gap-2\">\n <span class=\"px-2 py-1 bg-blue-100 text-blue-700 rounded-full text-xs font-medium\">React</span>\n <span class=\"px-2 py-1 bg-green-100 text-green-700 rounded-full text-xs font-medium\">TypeScript</span>\n <span class=\"px-2 py-1 bg-purple-100 text-purple-700 rounded-full text-xs font-medium\">Tailwind</span>\n </div>\n </div>\n\n <h3>Card with image</h3>\n <div class=\"bg-white rounded-lg shadow-sm p-6 mb-4 border\">\n <div class=\"w-full h-32 bg-gradient-to-br from-amber-400 to-rose-500 rounded-lg shadow-inner mb-4\"></div>\n <h4 class=\"font-semibold\">Project Preview</h4>\n <p class=\"text-sm text-gray-600 mt-1\">Image with rounded corners and shadow.</p>\n </div>\n\n <h3>Pricing cards (intentionally similar)</h3>\n <div class=\"grid grid-cols-3 gap-2 mb-4\">\n <div class=\"bg-white rounded-lg shadow-sm p-4 border\">\n <h4 class=\"font-semibold mb-1 text-sm\">Free</h4>\n <div class=\"text-lg font-bold mb-2\">$0</div>\n </div>\n <div class=\"bg-white rounded-lg shadow-sm p-4 border-2 border-blue-500\">\n <h4 class=\"font-semibold mb-1 text-sm\">Pro</h4>\n <div class=\"text-lg font-bold mb-2\">$29</div>\n </div>\n <div class=\"bg-white rounded-lg shadow-sm p-4 border\">\n <h4 class=\"font-semibold mb-1 text-sm\">Enterprise</h4>\n <div class=\"text-lg font-bold mb-2\">Custom</div>\n </div>\n </div>\n </div>\n </div>\n <script src=\"/js/detect-antipatterns-browser.js\"></script>\n</body>\n</html>\n"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}
{"args":["<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <title>Italic-Serif-Display — Should Flag vs Should Pass</title>\n <style>\n /* ─── Layout convention: two-column fixture ─────────────────────────\n Left column = patterns the rule SHOULD flag.\n Right column = legitimate patterns the rule should NOT flag.\n Each test case is annotated with a unique <h1>/<h2>/<blockquote>\n text so the test can match snippets back to expectations.\n ──────────────────────────────────────────────────────────────── */\n body { font-family: system-ui, sans-serif; margin: 0; padding: 24px; }\n .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 1200px; margin: 0 auto; }\n .col h2.col-label { font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 16px; color: #475569; }\n .case { margin-bottom: 32px; padding: 24px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }\n .case p { font-size: 14px; margin: 12px 0 0; color: #64748b; }\n\n /* ── FLAG cases ── */\n\n /* 1: Fraunces 88px italic — the Lumina hero pattern */\n .hero-fraunces {\n font-family: 'Fraunces', Georgia, serif;\n font-style: italic;\n font-size: 88px;\n font-weight: 400;\n line-height: 1.05;\n margin: 0;\n }\n\n /* 2: Recoleta 64px italic */\n .hero-recoleta {\n font-family: 'Recoleta', serif;\n font-style: italic;\n font-size: 64px;\n font-weight: 400;\n margin: 0;\n }\n\n /* 3: Playfair Display 72px italic */\n .hero-playfair {\n font-family: 'Playfair Display', serif;\n font-style: italic;\n font-size: 72px;\n font-weight: 500;\n margin: 0;\n }\n\n /* 4: Unknown serif primary, but generic `serif` fallback in stack */\n .hero-unknown-serif {\n font-family: 'CustomSerifFace', serif;\n font-style: italic;\n font-size: 56px;\n font-weight: 400;\n margin: 0;\n }\n\n /* ── PASS cases ── */\n\n /* a: italic, but sans-serif primary (Karla) — italic display in a sans is rare and usually intentional */\n .pass-sans-italic {\n font-family: 'Karla', sans-serif;\n font-style: italic;\n font-size: 64px;\n font-weight: 600;\n margin: 0;\n }\n\n /* b: serif at 88px, but font-style: normal */\n .pass-roman-serif {\n font-family: 'Fraunces', Georgia, serif;\n font-style: normal;\n font-size: 88px;\n font-weight: 600;\n margin: 0;\n }\n\n /* c: italic serif blockquote at 24px (genuine pull quote, not a hero) */\n .pass-pull-quote {\n font-family: 'Fraunces', Georgia, serif;\n font-style: italic;\n font-size: 24px;\n font-weight: 400;\n margin: 0;\n color: #334155;\n }\n\n /* d: roman h1 with an italic <em> inside — v1 explicitly does NOT flag this */\n .pass-roman-h1-em-italic {\n font-family: 'Inter', sans-serif;\n font-style: normal;\n font-size: 72px;\n font-weight: 600;\n margin: 0;\n }\n .pass-roman-h1-em-italic em {\n font-family: 'Fraunces', Georgia, serif;\n font-style: italic;\n font-weight: 400;\n }\n\n /* e: italic serif h2 at 32px — under the 48px hero threshold */\n .pass-italic-serif-32 {\n font-family: 'Fraunces', Georgia, serif;\n font-style: italic;\n font-size: 32px;\n font-weight: 400;\n margin: 0;\n }\n\n /* f: baseline-clean h1 — sans-serif roman */\n .pass-h1-sans-roman {\n font-family: 'Inter', sans-serif;\n font-style: normal;\n font-size: 64px;\n font-weight: 700;\n margin: 0;\n }\n </style>\n</head>\n<body>\n <div class=\"grid\">\n\n <!-- ════════════════════════════════════════════════════════════════\n LEFT COLUMN: should flag\n ═══════════════════════════════════════════════════════════════ -->\n <div class=\"col\" data-col=\"flag\">\n <h2 class=\"col-label\">Should flag</h2>\n\n <div class=\"case\">\n <h1 class=\"hero-fraunces\">Fraunces 88px italic</h1>\n <p>The Lumina hero pattern: oversized Fraunces italic display.</p>\n </div>\n\n <div class=\"case\">\n <h1 class=\"hero-recoleta\">Recoleta 64px italic</h1>\n <p>Recoleta italic at 64px, generic serif fallback.</p>\n </div>\n\n <div class=\"case\">\n <h1 class=\"hero-playfair\">Playfair 72px italic</h1>\n <p>Playfair Display italic at hero scale.</p>\n </div>\n\n <div class=\"case\">\n <h1 class=\"hero-unknown-serif\">Unknown Serif Generic Fallback</h1>\n <p>Primary font unknown to the detector, but the stack ends in generic serif.</p>\n </div>\n </div>\n\n <!-- ════════════════════════════════════════════════════════════════\n RIGHT COLUMN: should pass\n ═══════════════════════════════════════════════════════════════ -->\n <div class=\"col\" data-col=\"pass\">\n <h2 class=\"col-label\">Should pass</h2>\n\n <div class=\"case\">\n <h1 class=\"pass-sans-italic\">Sans Italic Display</h1>\n <p>Italic at hero scale, but in a sans-serif face.</p>\n </div>\n\n <div class=\"case\">\n <h1 class=\"pass-roman-serif\">Roman Serif Display</h1>\n <p>Fraunces at 88px, but font-style is normal (not italic).</p>\n </div>\n\n <div class=\"case\">\n <blockquote class=\"pass-pull-quote\">Italic Serif Pull Quote</blockquote>\n <p>Italic serif at 24px is a legitimate pull-quote pattern, not a hero.</p>\n </div>\n\n <div class=\"case\">\n <h1 class=\"pass-roman-h1-em-italic\">Inline Em Inside <em>Roman</em></h1>\n <p>Roman h1 with an inline italic em — v1 deliberately does not flag this.</p>\n </div>\n\n <div class=\"case\">\n <h2 class=\"pass-italic-serif-32\">Italic Serif at 32px</h2>\n <p>Italic serif h2 below the 48px hero threshold.</p>\n </div>\n\n <div class=\"case\">\n <h1 class=\"pass-h1-sans-roman\">h1 Sans-Serif Roman</h1>\n <p>Baseline-clean control: sans-serif, roman, hero scale.</p>\n </div>\n </div>\n\n </div>\n</body>\n</html>\n"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}
{"args":["<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <title>Hero-Eyebrow-Chip — Should Flag vs Should Pass</title>\n <style>\n /* ─── Layout convention: two-column fixture ─────────────────────────\n Left column = patterns the rule SHOULD flag.\n Right column = legitimate patterns the rule should NOT flag.\n Each test case is annotated with a unique <h1> text so the test\n can match snippets back to expectations.\n ──────────────────────────────────────────────────────────────── */\n body { font-family: system-ui, sans-serif; margin: 0; padding: 24px; }\n .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 1200px; margin: 0 auto; }\n .col h2.col-label { font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 16px; color: #475569; }\n .case { margin-bottom: 32px; padding: 24px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }\n .case p { font-size: 14px; margin: 12px 0 0; color: #64748b; }\n .case h1 { margin: 0; font-family: 'Inter', sans-serif; line-height: 1.05; }\n\n /* Hero size used by most cases */\n .hero { font-size: 88px; font-weight: 600; }\n\n /* ── FLAG cases ── */\n\n .eyebrow-classic {\n text-transform: uppercase;\n letter-spacing: 0.15em;\n font-size: 12px;\n color: #64748b;\n font-weight: 600;\n margin: 0 0 16px;\n }\n\n .eyebrow-span {\n display: inline-block;\n text-transform: uppercase;\n letter-spacing: 0.16em;\n font-size: 11px;\n color: #475569;\n font-weight: 600;\n margin: 0 0 16px;\n }\n\n .eyebrow-pill {\n display: inline-block;\n text-transform: uppercase;\n letter-spacing: 0.14em;\n font-size: 12px;\n background: #f1f5f9;\n color: #334155;\n border-radius: 999px;\n padding: 4px 12px;\n font-weight: 600;\n margin: 0 0 16px;\n }\n\n .eyebrow-already-uppercase {\n letter-spacing: 0.18em;\n font-size: 11px;\n color: #b45309;\n font-weight: 700;\n margin: 0 0 16px;\n }\n\n /* ── PASS cases ── */\n\n .pass-eyebrow-no-tracking {\n text-transform: uppercase;\n letter-spacing: normal;\n font-size: 12px;\n color: #64748b;\n font-weight: 600;\n margin: 0 0 16px;\n }\n\n .pass-body-heading {\n font-size: 24px;\n font-weight: 600;\n font-family: 'Inter', sans-serif;\n margin: 0;\n }\n\n .pass-card-caption {\n text-transform: uppercase;\n letter-spacing: 0.18em;\n font-size: 11px;\n color: #94a3b8;\n font-weight: 600;\n margin: 0 0 8px;\n }\n\n .pass-bare-hero {\n font-size: 64px;\n }\n\n .pass-h2-above-h1 {\n font-size: 14px;\n text-transform: uppercase;\n letter-spacing: 0.18em;\n font-weight: 700;\n color: #475569;\n margin: 0 0 16px;\n font-family: 'Inter', sans-serif;\n }\n\n .pass-long-uppercase {\n text-transform: uppercase;\n letter-spacing: 0.14em;\n font-size: 12px;\n color: #475569;\n font-weight: 600;\n margin: 0 0 16px;\n }\n </style>\n</head>\n<body>\n <div class=\"grid\">\n\n <!-- ════════════════════════════════════════════════════════════════\n LEFT COLUMN: should flag\n ═══════════════════════════════════════════════════════════════ -->\n <div class=\"col\" data-col=\"flag\">\n <h2 class=\"col-label\">Should flag</h2>\n\n <div class=\"case\">\n <div class=\"eyebrow-classic\">AI-NATIVE WORKFLOWS</div>\n <h1 class=\"hero\">Eyebrow Above Hero</h1>\n <p>Classic uppercase tracked div eyebrow above an 88px hero.</p>\n </div>\n\n <div class=\"case\">\n <span class=\"eyebrow-span\">NEW IN 2026</span>\n <h1 class=\"hero\">Span Eyebrow Above Hero</h1>\n <p>Span variant with the same uppercase + tracking + small-size shape.</p>\n </div>\n\n <div class=\"case\">\n <span class=\"eyebrow-pill\">FEATURED</span>\n <h1 class=\"hero\">Pill Chip Above Hero</h1>\n <p>Pill-shaped chip with background, border-radius, padding.</p>\n </div>\n\n <div class=\"case\">\n <span class=\"eyebrow-already-uppercase\">NEW</span>\n <h1 class=\"hero\">Already Uppercase Text</h1>\n <p>Text typed uppercase, no text-transform, but matching tracking and size.</p>\n </div>\n\n <div class=\"case\">\n <div class=\"pass-long-uppercase\">A VERY LONG UPPERCASE TABLE OF CONTENTS HEADER</div>\n <h1 class=\"hero\">Long Uppercase Sentence Above Hero</h1>\n <p>46-char uppercase tracked label — under the 60-char eyebrow ceiling, so it still reads as an oversized eyebrow.</p>\n </div>\n </div>\n\n <!-- ════════════════════════════════════════════════════════════════\n RIGHT COLUMN: should pass\n ═══════════════════════════════════════════════════════════════ -->\n <div class=\"col\" data-col=\"pass\">\n <h2 class=\"col-label\">Should pass</h2>\n\n <div class=\"case\">\n <div class=\"pass-eyebrow-no-tracking\">UPPERCASE LABEL</div>\n <h1 class=\"hero\">Eyebrow With Normal Tracking</h1>\n <p>Uppercase label above a hero but with letter-spacing: normal.</p>\n </div>\n\n <div class=\"case\">\n <div class=\"pass-card-caption\">CARD CAPTION</div>\n <p>Plain body text below the caption.</p>\n <h1 class=\"hero\" style=\"margin-top:32px\">Uppercase Caption Far From Hero</h1>\n <p>Hero exists, but its preceding sibling is a paragraph, not the eyebrow.</p>\n </div>\n\n <div class=\"case\">\n <h1 class=\"pass-bare-hero\">Hero With No Eyebrow</h1>\n <p>Bare h1 at 64px, nothing above it.</p>\n </div>\n\n <div class=\"case\">\n <h2 class=\"pass-h2-above-h1\">SECTION HEADING</h2>\n <h1 class=\"hero\">Heading Above Heading</h1>\n <p>An h2 styled like an eyebrow above an h1 — heading-tag exclusion must skip this.</p>\n </div>\n\n <div class=\"case\">\n <div class=\"eyebrow-classic\">SECTION KICKER</div>\n <h1 class=\"pass-body-heading\">Body-Sized Heading Below Eyebrow</h1>\n <p>A compact product/page heading is not an oversized marketing hero.</p>\n </div>\n\n <div class=\"case\" role=\"tabpanel\" aria-label=\"Saved station\">\n <div class=\"eyebrow-classic\">NEXT FROM</div>\n <h1 class=\"hero\">Application Panel Heading</h1>\n <p>Context labels inside tab panels describe application state rather than decorating a marketing hero.</p>\n </div>\n\n </div>\n\n </div>\n</body>\n</html>\n"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}
{"args":["<!doctype html>\n<html lang=\"en\">\n<head>\n <meta charset=\"utf-8\">\n <title>Kicker Above Heading Fixture</title>\n <style>\n body {\n margin: 0;\n font-family: Arial, sans-serif;\n background: #f6f2ec;\n color: #171411;\n }\n main {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 32px;\n padding: 32px;\n }\n .col {\n min-width: 0;\n border: 1px solid #c9bfb2;\n padding: 24px;\n }\n .case {\n min-height: 120px;\n margin: 0 0 24px;\n padding: 16px;\n background: #fffaf3;\n }\n .kicker,\n .pass-kicker,\n .pass-kicker-caps {\n display: block;\n width: 240px;\n min-height: 16px;\n margin: 0 0 8px;\n font-size: 12px;\n line-height: 16px;\n letter-spacing: 0.11em;\n color: #5b5046;\n }\n .kicker,\n .pass-kicker-caps {\n text-transform: uppercase;\n }\n /* The wild's most common kicker recipe: 0.08em tracking at a sub-13px\n size computes to under 1px, which the old absolute floor excluded. */\n .tight-tracked-kicker {\n display: block;\n width: 240px;\n min-height: 16px;\n margin: 0 0 8px;\n font-size: 12px;\n line-height: 16px;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n color: #5b5046;\n }\n .smallcaps-kicker {\n display: block;\n width: 240px;\n min-height: 16px;\n margin: 0 0 8px;\n font-size: 12px;\n line-height: 16px;\n letter-spacing: 0.12em;\n font-variant: small-caps;\n color: #5b5046;\n }\n .untracked-caps {\n display: block;\n width: 240px;\n min-height: 16px;\n margin: 0 0 8px;\n font-size: 12px;\n line-height: 16px;\n letter-spacing: normal;\n text-transform: uppercase;\n color: #5b5046;\n }\n h1,\n h2 {\n margin: 0 0 12px;\n font-size: 32px;\n line-height: 38px;\n font-weight: 700;\n }\n h3 {\n margin: 0 0 12px;\n font-size: 24px;\n line-height: 30px;\n font-weight: 700;\n }\n h4 {\n margin: 0 0 12px;\n font-size: 20px;\n line-height: 26px;\n font-weight: 700;\n }\n .role-heading {\n margin: 0 0 12px;\n font-size: 28px;\n line-height: 34px;\n font-weight: 700;\n }\n .hero-h1 {\n margin: 0 0 12px;\n font-size: 64px;\n line-height: 70px;\n font-weight: 700;\n }\n .hero-eyebrow {\n display: block;\n width: 240px;\n min-height: 16px;\n margin: 0 0 8px;\n font-size: 12px;\n line-height: 16px;\n letter-spacing: 2px;\n text-transform: uppercase;\n color: #5b5046;\n }\n p,\n label,\n figcaption,\n a,\n li {\n font-size: 16px;\n line-height: 24px;\n }\n nav,\n form,\n figure,\n ol {\n margin: 0 0 24px;\n padding: 16px;\n border: 1px solid #d8cec0;\n min-height: 80px;\n }\n .card-grid {\n display: grid;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n gap: 12px;\n margin: 0 0 24px;\n }\n .suite-card {\n display: block;\n min-height: 120px;\n padding: 16px;\n border: 1px solid #d8cec0;\n background: #fff;\n }\n .taxonomy-label {\n display: block;\n margin: 0 0 8px;\n font-size: 12px;\n line-height: 16px;\n letter-spacing: 0.11em;\n text-transform: uppercase;\n color: #5b5046;\n }\n .suite-card h3 {\n font-size: 24px;\n line-height: 30px;\n }\n .stat {\n min-height: 100px;\n padding: 16px;\n background: #fffaf3;\n }\n .stat h3 {\n font-size: 40px;\n line-height: 46px;\n }\n .hidden-mockup {\n display: grid;\n gap: 12px;\n margin: 0 0 24px;\n }\n .mockup-hero {\n min-height: 120px;\n padding: 16px;\n border: 1px solid #d8cec0;\n background: #fff;\n }\n .mockup-hero h2 {\n font-size: 24px;\n line-height: 30px;\n }\n </style>\n</head>\n<body>\n <main>\n <section class=\"col\" aria-label=\"Should flag\">\n <h1>Should flag</h1>\n\n <section class=\"case\">\n <span class=\"kicker\">Invitation protocol</span>\n <h2>\"A Single Kicker Still Flags\"</h2>\n <p>One tracked uppercase label above one heading is enough. No repetition required.</p>\n </section>\n\n <section class=\"case\">\n <span class=\"tight-tracked-kicker\">Output model</span>\n <h2>\"Standard Tracking Kicker\"</h2>\n <p>Uppercase at 12px with 0.08em tracking is the most common authored kicker and must flag.</p>\n </section>\n\n <section class=\"case\">\n <p class=\"kicker\">Preview sequence</p>\n <h3>\"Kicker Above An H3\"</h3>\n <p>Subsection headings get no eyebrow either.</p>\n </section>\n\n <section class=\"case\">\n <div class=\"kicker\">Access window</div>\n <h4>\"Kicker Above An H4\"</h4>\n <p>The ban runs down to h4.</p>\n </section>\n\n <section class=\"case\">\n <span class=\"kicker\">Platform notes</span>\n <h1 class=\"sub-hero\">\"Sub Hero Heading\"</h1>\n <p>A 32px h1 is below hero scale, so this pair belongs to the general ban.</p>\n </section>\n\n <section class=\"case\">\n <span class=\"smallcaps-kicker\">materials briefing</span>\n <h2>\"Small Caps Kicker\"</h2>\n <p>Small-caps styling is the same label in a different costume.</p>\n </section>\n\n <section class=\"case\">\n <div class=\"kicker\">Field studies</div>\n <div role=\"heading\" aria-level=\"2\" class=\"role-heading\">\"Heading Role Kicker\"</div>\n <p>Elements carrying a heading role are headings for this rule.</p>\n </section>\n </section>\n\n <section class=\"col\" aria-label=\"Should pass\">\n <h1>Should pass</h1>\n\n <nav class=\"case\" aria-label=\"Breadcrumb\">\n <span class=\"pass-kicker\">Home / Journal</span>\n <h2>\"Breadcrumb Before Heading\"</h2>\n <a href=\"/\">Home</a>\n </nav>\n\n <section class=\"case\">\n <span class=\"pass-kicker-caps\">Home / Journal / Archive</span>\n <h2>\"Breadcrumb Trail Outside Nav\"</h2>\n <p>A path with separators is wayfinding, not a kicker, even without a nav wrapper.</p>\n </section>\n\n <section class=\"case\">\n <span class=\"pass-kicker-caps\">News · Jan 12, 2026</span>\n <h2>\"Dateline Above Headline\"</h2>\n <p>Editorial category-and-date meta lines are content metadata.</p>\n </section>\n\n <article class=\"case\">\n <span class=\"pass-kicker-caps\">Field report</span>\n <h3>\"Editorial Card Meta\"</h3>\n <p>Category labels inside an article card are structured metadata for scanning.</p>\n </article>\n\n <form class=\"case\">\n <label class=\"pass-kicker\" for=\"guest\">Guest name</label>\n <input id=\"guest\" name=\"guest\" style=\"width: 220px; height: 40px;\">\n <h2>\"Form Heading Is Separate\"</h2>\n </form>\n\n <figure class=\"case\">\n <figcaption class=\"pass-kicker-caps\">Plate study</figcaption>\n <h3>\"Figure Caption Label\"</h3>\n </figure>\n\n <section class=\"case\">\n <span class=\"pass-kicker-caps\">Section 4.2</span>\n <h2>\"Limitation Of Liability\"</h2>\n <p>Legal and document numbering identifies the clause; it is not decoration.</p>\n </section>\n\n <section class=\"case\">\n <span class=\"pass-kicker-caps\">§ 12.3</span>\n <h2>\"Indemnification Clause\"</h2>\n <p>Statutory references keep their marker.</p>\n </section>\n\n <section class=\"case\">\n <span class=\"pass-kicker-caps\">Chapter Four</span>\n <h2>\"Chapter Numbering Passes\"</h2>\n <p>Spelled-out chapter numbering is document structure, like legal numbering.</p>\n </section>\n\n <section class=\"case\" role=\"tabpanel\" aria-label=\"Saved station\">\n <span class=\"pass-kicker-caps\">Next from</span>\n <h2>\"Application Panel Context\"</h2>\n <p>Context labels inside application panels describe state, not decoration.</p>\n </section>\n\n <section class=\"case\">\n <nav aria-label=\"Primary\"><a href=\"/\">Home</a> <a href=\"/docs\">Docs</a></nav>\n <h1>\"Page Title After Nav\"</h1>\n <p>A navigation landmark preceding the page title is chrome, not a kicker.</p>\n </section>\n\n <div class=\"stat\">\n <h3>\"48%\"</h3>\n <span class=\"pass-kicker-caps\">Growth yoy</span>\n <p>Stat callouts put the small label below the number. That direction is legal.</p>\n </div>\n\n <section class=\"case\">\n <span class=\"pass-kicker\">A quiet lead-in sentence</span>\n <h2>\"Sentence Case Lead In\"</h2>\n <p>Not uppercase, not small-caps: an ordinary standfirst.</p>\n </section>\n\n <section class=\"case\">\n <span class=\"untracked-caps\">New arrivals</span>\n <h2>\"Untracked Caps Label\"</h2>\n <p>Uppercase without tracking lacks the kicker styling signature.</p>\n </section>\n\n <section class=\"case\" data-impeccable-allow-kickers>\n <span class=\"pass-kicker-caps\">Archive code</span>\n <h2>\"Intentional Brand Label\"</h2>\n <p>Deliberate brand systems can opt out with an explicit marker.</p>\n </section>\n\n <section class=\"case\">\n <span class=\"hero-eyebrow\">Platform overview</span>\n <h1 class=\"hero-h1\">\"Hero Owned By Hero Rule\"</h1>\n <p>Hero-scale h1 eyebrows stay with hero-eyebrow-chip; this rule stands down.</p>\n </section>\n\n <div class=\"card-grid\" aria-label=\"Room cards\">\n <article class=\"suite-card\">\n <span class=\"taxonomy-label\">Suite</span>\n <h3>\"Garden Suite\"</h3>\n <p>Category labels inside sibling cards are metadata for comparison.</p>\n </article>\n <article class=\"suite-card\">\n <span class=\"taxonomy-label\">Suite</span>\n <h3>\"Sea Loft\"</h3>\n <p>The label is useful because the user is scanning sibling cards.</p>\n </article>\n </div>\n\n <ol class=\"case\">\n <li>\n <span class=\"pass-kicker-caps\">Step 01</span>\n <h3>\"Step Indicator\"</h3>\n <p>Step indicators in ordered flows are sequence markers.</p>\n </li>\n </ol>\n\n <div class=\"hidden-mockup\" aria-hidden=\"true\">\n <div class=\"mockup-hero\">\n <span class=\"taxonomy-label\">Amalfi Coast</span>\n <h2>\"Mockup Hero Variant One\"</h2>\n </div>\n </div>\n </section>\n </main>\n</body>\n</html>\n"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}
{"args":["<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>Motion Anti-Patterns — Should Flag vs Should Pass</title>\n <style>\n /* ─── Two-column fixture convention ─────────────────────────────\n Left column = should flag. Right column = should pass.\n Tests assert (a) every flag-column rule fires and (b) the total\n finding count matches the number of flag cases (no false\n positives leaking from the pass column).\n ──────────────────────────────────────────────────────────── */\n body { font-family: system-ui, sans-serif; background: #f9fafb; padding: 24px; margin: 0; }\n .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 1200px; margin: 0 auto; }\n .col h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 16px; color: #475569; }\n .col h3 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; margin: 24px 0 8px; color: #64748b; }\n .demo { padding: 14px 16px; background: white; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); margin-bottom: 10px; }\n .demo h4 { font-weight: 600; font-size: 13px; margin: 0; }\n .demo p { font-size: 12px; color: #6b7280; margin: 4px 0 0; }\n\n /* ── FLAG: bounce / elastic easing ── */\n @keyframes bounce-keyframe {\n 0%, 100% { transform: translateY(0); }\n 50% { transform: translateY(-10px); }\n }\n .bounce-animation { animation: bounce-keyframe 1s infinite; }\n .elastic-transition { transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); }\n\n /* ── FLAG: layout property transitions ── */\n .width-transition { transition: width 0.3s ease; }\n .height-transition { transition: height 0.4s ease-out; }\n .padding-transition { transition: padding 0.2s linear; }\n .margin-transition { transition: margin 0.3s ease-in; }\n .max-height-transition { transition: max-height 0.5s ease; }\n .multi-layout-transition { transition: width 0.3s ease, height 0.3s ease; }\n .mixed-transition { transition: width 0.3s ease, opacity 0.3s ease; }\n .transition-property-width { transition-property: width; transition-duration: 0.3s; }\n\n /* ── PASS: good easing ── */\n @keyframes fade-in-keyframe {\n from { opacity: 0; transform: translateY(8px); }\n to { opacity: 1; transform: translateY(0); }\n }\n .fade-in-good { animation: fade-in-keyframe 0.4s cubic-bezier(0.16, 1, 0.3, 1); }\n .ease-out-quart { transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); }\n .ease-out-expo { transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }\n\n /* ── PASS: safe transitions ── */\n .transform-transition { transition: transform 0.3s ease-out; }\n .opacity-transition { transition: opacity 0.2s ease; }\n .color-transition { transition: color 0.15s ease, background-color 0.15s ease; }\n .shadow-transition { transition: box-shadow 0.2s ease; }\n .all-transition { transition: all 0.3s ease; }\n .multi-safe-transition { transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.2s ease; }\n </style>\n</head>\n<body>\n <div class=\"grid\">\n <!-- ════════════════════════════════════════════════════════════\n LEFT COLUMN: should flag\n ═══════════════════════════════════════════════════════════ -->\n <div class=\"col\" data-col=\"flag\">\n <h2>Should flag</h2>\n\n <h3>Bounce / elastic easing</h3>\n <div class=\"demo bounce-animation\">\n <h4>CSS bounce animation</h4>\n <p>animation: bounce 1s infinite</p>\n </div>\n <div class=\"demo elastic-transition\">\n <h4>Elastic cubic-bezier</h4>\n <p>cubic-bezier(0.68, -0.55, 0.265, 1.55)</p>\n </div>\n\n <h3>Layout property transitions</h3>\n <div class=\"demo width-transition\">\n <h4>transition: width</h4>\n <p>Animating width causes layout thrash.</p>\n </div>\n <div class=\"demo height-transition\">\n <h4>transition: height</h4>\n <p>Animating height causes layout thrash.</p>\n </div>\n <div class=\"demo padding-transition\">\n <h4>transition: padding</h4>\n <p>Animating padding causes layout thrash.</p>\n </div>\n <div class=\"demo margin-transition\">\n <h4>transition: margin</h4>\n <p>Animating margin causes layout thrash.</p>\n </div>\n <div class=\"demo max-height-transition\">\n <h4>transition: max-height</h4>\n <p>Use grid-template-rows instead.</p>\n </div>\n <div class=\"demo multi-layout-transition\">\n <h4>transition: width, height</h4>\n <p>Multiple layout properties.</p>\n </div>\n <div class=\"demo mixed-transition\">\n <h4>transition: width, opacity</h4>\n <p>Layout property mixed with OK property.</p>\n </div>\n <div class=\"demo transition-property-width\">\n <h4>transition-property: width</h4>\n <p>Longhand form.</p>\n </div>\n </div>\n\n <!-- ════════════════════════════════════════════════════════════\n RIGHT COLUMN: should pass\n ═══════════════════════════════════════════════════════════ -->\n <div class=\"col\" data-col=\"pass\">\n <h2>Should pass</h2>\n\n <h3>Good easing</h3>\n <div class=\"demo fade-in-good\">\n <h4>Smooth fade in</h4>\n <p>animation: fadeIn with exponential ease-out</p>\n </div>\n <div class=\"demo ease-out-quart\">\n <h4>Ease-out quart</h4>\n <p>cubic-bezier(0.25, 1, 0.5, 1) — smooth deceleration</p>\n </div>\n <div class=\"demo ease-out-expo\">\n <h4>Ease-out expo</h4>\n <p>cubic-bezier(0.16, 1, 0.3, 1) — natural feel</p>\n </div>\n\n <h3>Safe transitions (transform / opacity / color only)</h3>\n <div class=\"demo transform-transition\">\n <h4>transition: transform</h4>\n <p>Transform is GPU-accelerated and safe.</p>\n </div>\n <div class=\"demo opacity-transition\">\n <h4>transition: opacity</h4>\n <p>Opacity is GPU-accelerated and safe.</p>\n </div>\n <div class=\"demo color-transition\">\n <h4>transition: color, background-color</h4>\n <p>Color transitions are paint-only, no layout.</p>\n </div>\n <div class=\"demo shadow-transition\">\n <h4>transition: box-shadow</h4>\n <p>Shadow transitions are paint-only.</p>\n </div>\n <div class=\"demo all-transition\">\n <h4>transition: all</h4>\n <p>Too common to flag — usually paired with transform/opacity.</p>\n </div>\n <div class=\"demo multi-safe-transition\">\n <h4>transition: transform, opacity, box-shadow</h4>\n <p>Multiple safe properties combined.</p>\n </div>\n </div>\n </div>\n <script src=\"/js/detect-antipatterns-browser.js\"></script>\n</body>\n</html>\n"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}
{"args":["<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>Dark Glow Anti-Patterns — Should Flag vs Should Pass</title>\n <style>\n /* Two-column fixture: left = should flag, right = should pass.\n The dark-glow rule fires when a colored box-shadow appears on a\n child whose ancestor has a dark background. Each column wraps\n its dark-context cases in its own .dark-context section so the\n parent-bg lookup behaves predictably regardless of layout. */\n body { font-family: system-ui, sans-serif; background: #f9fafb; padding: 24px; margin: 0; }\n .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 1200px; margin: 0 auto; }\n .col h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 16px; color: #475569; }\n .col h3 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; margin: 24px 0 8px; color: #64748b; }\n .dark-context { background: #111827; padding: 16px; border-radius: 12px; }\n .dark-context + .dark-context { margin-top: 12px; }\n /* Card variants: explicit dark vs light pairings, both WCAG AA compliant */\n .card { padding: 14px 16px; border-radius: 10px; margin-bottom: 10px; }\n .card h4 { font-weight: 600; font-size: 13px; margin: 0; }\n .card p { font-size: 12px; margin: 4px 0 0; }\n .card-dark { background: #1f2937; }\n .card-dark h4 { color: #f9fafb; }\n .card-dark p { color: #cbd5e1; }\n .card-light { background: white; }\n .card-light h4 { color: #0f172a; }\n .card-light p { color: #475569; }\n\n /* ── FLAG: dark background + colored glow ── */\n .glow-blue { box-shadow: 0 0 20px rgba(59, 130, 246, 0.4); }\n .glow-purple { box-shadow: 0 0 25px rgba(139, 92, 246, 0.35); }\n .glow-cyan { box-shadow: 0 0 15px rgba(6, 182, 212, 0.5); }\n .glow-multi { box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3), 0 0 30px rgba(168, 85, 247, 0.3); }\n\n /* ── FLAG: modern color formats, var() refs, text-shadow ── */\n :root { --fixture-glow: oklch(0.78 0.14 155); }\n .glow-oklch { box-shadow: 0 0 18px oklch(0.72 0.15 195 / 0.5); }\n .glow-hex { box-shadow: 0 0 16px #3b82f6; }\n .glow-hsl { box-shadow: 0 0 22px hsl(280, 80%, 60%); }\n .glow-var { box-shadow: 0 0 10px var(--fixture-glow); }\n .glow-text h4 { text-shadow: 0 0 12px #22d3ee; }\n /* Zero-offset chromatic halo is slop on light backgrounds too */\n .glow-light-oklch { box-shadow: 0 0 20px oklch(0.65 0.2 300 / 0.45); }\n /* Unreadable surface: url() image ancestor. The zero-offset halo tell\n holds on ANY background, so an unknown surface must not suppress it.\n Both element loops must agree here (the browser adapter once returned\n [] for the whole element on an unresolved surface). */\n .photo-context { background-image: url('/fixtures/antipatterns/missing-photo.png'); padding: 16px; border-radius: 12px; }\n .glow-photo-halo { box-shadow: 0 0 26px rgba(217, 70, 239, 0.5); }\n /* Opaque gradient atop a url() layer: every stop is opaque, so the\n gradient provably covers the image — the surface IS the dark\n gradient, and the dark-background glow tell may score against it\n (browser hunt; the static loop has no gradient hunt). */\n .photo-opaque-grad { background: linear-gradient(#111827, #0b1220), url('/fixtures/antipatterns/missing-photo.png'); padding: 16px; border-radius: 12px; }\n .glow-photo-opaque { box-shadow: 0 6px 22px rgba(249, 115, 22, 0.5); }\n\n /* ── PASS: same dark/light backgrounds, but neutral or no glow ── */\n .light-colored-shadow { box-shadow: 0 2px 4px rgba(59, 130, 246, 0.15); }\n .dark-normal-shadow { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); }\n .dark-focus-ring { box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5); }\n .dark-subtle-shadow { box-shadow: 0 1px 3px rgba(59, 130, 246, 0.2); }\n .dark-elevated-sm { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }\n .dark-elevated-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4); }\n .dark-elevated-lg { box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5); }\n .dark-elevated-inset { box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3); }\n .dark-elevated-multi { box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2); }\n .elevated-sm-light { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }\n .elevated-md-light { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }\n .elevated-warm-light { box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.15); }\n /* Medium-gray card: lighter than dark mode, used to demonstrate \"not dark enough\" for glow detection. White text for AA contrast. */\n .card-medium { background: #6b7280; }\n .card-medium h4 { color: #ffffff; }\n .card-medium p { color: #ffffff; }\n .medium-gray-shadow { box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3); }\n /* Offset chromatic drop shadow on a light background: a real drop\n shadow, not a halo — must NOT flag under the zero-offset rule.\n (Element path; the page-level text scan caps at one finding.) */\n .light-offset-colored { box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25); }\n /* Achromatic zero-offset shadow: soft ambient elevation, stays legal */\n .light-soft-neutral { box-shadow: 0 0 24px rgba(0, 0, 0, 0.15); }\n /* Offset chromatic shadow under the same unreadable url() surface:\n the dark-background glow tell needs a surface we can read — abstain. */\n .photo-offset-colored { box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35); }\n /* Translucent gradient atop a url() layer: the image shows through the\n 20% wash, so the real surface is a blend with unknowable pixels (a\n white photo composites to ~#cccccc, not black). Averaging the wash\n stops as if they were the surface scored this \"dark\" — abstain. */\n .photo-translucent-grad { background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('/fixtures/antipatterns/missing-photo.png'); padding: 16px; border-radius: 12px; }\n .photo-translucent-offset { box-shadow: 0 6px 22px rgba(244, 63, 94, 0.45); }\n /* Offset neutral text-shadow on dark card: legibility aid, not a glow */\n .dark-text-offset h4 { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }\n </style>\n</head>\n<body>\n <div class=\"grid\">\n <!-- ════════════════════════════════════════════════════════════\n LEFT COLUMN: should flag (dark page + colored glows)\n ═══════════════════════════════════════════════════════════ -->\n <div class=\"col\" data-col=\"flag\">\n <h2>Should flag</h2>\n\n <h3>CSS colored glows on dark background</h3>\n <div class=\"dark-context\">\n <div class=\"card card-dark glow-blue\">\n <h4>Blue glow</h4>\n <p>box-shadow: 0 0 20px rgba(59, 130, 246, 0.4)</p>\n </div>\n <div class=\"card card-dark glow-purple\">\n <h4>Purple glow</h4>\n <p>box-shadow: 0 0 25px rgba(139, 92, 246, 0.35)</p>\n </div>\n <div class=\"card card-dark glow-cyan\">\n <h4>Cyan glow</h4>\n <p>box-shadow: 0 0 15px rgba(6, 182, 212, 0.5)</p>\n </div>\n <div class=\"card card-dark glow-multi\">\n <h4>Multi-shadow with colored glow</h4>\n <p>Normal shadow + purple glow combined.</p>\n </div>\n </div>\n\n <h3>Inline-style glow (regex path)</h3>\n <div class=\"dark-context\">\n <div class=\"card card-dark\" style=\"box-shadow: 0 0 20px rgba(236, 72, 153, 0.5);\">\n <h4>Inline pink glow</h4>\n <p>Inline style for regex detection path.</p>\n </div>\n </div>\n\n <h3>Modern color formats, var() refs, text-shadow</h3>\n <div class=\"dark-context\">\n <div class=\"card card-dark glow-oklch\">\n <h4>OKLCH glow</h4>\n <p>box-shadow: 0 0 18px oklch(0.72 0.15 195 / 0.5)</p>\n </div>\n <div class=\"card card-dark glow-hex\">\n <h4>Hex glow</h4>\n <p>box-shadow: 0 0 16px #3b82f6</p>\n </div>\n <div class=\"card card-dark glow-hsl\">\n <h4>HSL glow</h4>\n <p>box-shadow: 0 0 22px hsl(280, 80%, 60%)</p>\n </div>\n <div class=\"card card-dark glow-var\">\n <h4>Glow via var()</h4>\n <p>box-shadow: 0 0 10px var(--fixture-glow)</p>\n </div>\n <div class=\"card card-dark glow-text\">\n <h4>Glowing text</h4>\n <p>text-shadow: 0 0 12px #22d3ee on the heading.</p>\n </div>\n </div>\n\n <h3>Zero-offset halo on LIGHT background</h3>\n <div class=\"card card-light glow-light-oklch\">\n <h4>Chromatic halo on light page</h4>\n <p>box-shadow: 0 0 20px oklch(0.65 0.2 300 / 0.45)</p>\n </div>\n\n <h3>Zero-offset halo on unreadable (image) surface</h3>\n <div class=\"photo-context\">\n <div class=\"card card-light glow-photo-halo\">\n <h4>Halo over photo background</h4>\n <p>box-shadow: 0 0 26px rgba(217, 70, 239, 0.5)</p>\n </div>\n </div>\n\n <h3>Colored glow under an opaque gradient over an image (browser)</h3>\n <div class=\"photo-opaque-grad\">\n <div class=\"card card-dark glow-photo-opaque\">\n <h4>Opaque dark gradient covers the photo</h4>\n <p>box-shadow: 0 6px 22px rgba(249, 115, 22, 0.5)</p>\n </div>\n </div>\n </div>\n\n <!-- ════════════════════════════════════════════════════════════\n RIGHT COLUMN: should pass\n ═══════════════════════════════════════════════════════════ -->\n <div class=\"col\" data-col=\"pass\">\n <h2>Should pass</h2>\n\n <h3>Light page + colored shadow</h3>\n <div class=\"card card-light light-colored-shadow\">\n <h4>Colored shadow on light background</h4>\n <p>Not dark mode, colored shadow is fine.</p>\n </div>\n\n <h3>Dark cards with neutral shadows</h3>\n <div class=\"dark-context\">\n <div class=\"card card-dark dark-normal-shadow\">\n <h4>Normal gray shadow on dark card</h4>\n <p>Gray/black shadow is not a glow.</p>\n </div>\n <div class=\"card card-dark dark-focus-ring\">\n <h4>Focus ring (spread, no blur)</h4>\n <p>Functional ring, not decorative glow.</p>\n </div>\n <div class=\"card card-dark dark-subtle-shadow\">\n <h4>Tiny blur (<5px)</h4>\n <p>Too subtle to be \"glowing\".</p>\n </div>\n <div class=\"card card-dark dark-elevated-sm\">\n <h4>Small dark elevation</h4>\n <p>Subtle shadow on dark card.</p>\n </div>\n <div class=\"card card-dark dark-elevated-md\">\n <h4>Medium dark elevation</h4>\n <p>Standard dark card shadow.</p>\n </div>\n <div class=\"card card-dark dark-elevated-lg\">\n <h4>Large dark elevation</h4>\n <p>Prominent shadow on dark card.</p>\n </div>\n <div class=\"card card-dark dark-elevated-inset\">\n <h4>Inset shadow</h4>\n <p>Inner shadow, not a glow.</p>\n </div>\n <div class=\"card card-dark dark-elevated-multi\">\n <h4>Multi-shadow dark card</h4>\n <p>Layered gray shadows, no color glow.</p>\n </div>\n </div>\n\n <h3>Medium-gray background (not dark enough)</h3>\n <div class=\"card card-medium medium-gray-shadow\">\n <h4>Not dark enough background</h4>\n <p>Medium gray doesn't qualify as \"dark mode\".</p>\n </div>\n\n <h3>Colored drop shadow / neutral halo on light background</h3>\n <div class=\"card card-light light-offset-colored\">\n <h4>Offset colored drop shadow</h4>\n <p>Real drop shadow with a color tint — not a halo.</p>\n </div>\n <div class=\"card card-light light-soft-neutral\">\n <h4>Soft neutral halo</h4>\n <p>Achromatic zero-offset shadow is ambient elevation.</p>\n </div>\n\n <h3>Offset chromatic shadow on unreadable (image) surface</h3>\n <div class=\"photo-context\">\n <div class=\"card card-light photo-offset-colored\">\n <h4>Offset colored shadow over photo background</h4>\n <p>Surface unknown, offset shadow — abstain, not flag.</p>\n </div>\n </div>\n\n <h3>Offset chromatic shadow under a translucent gradient over an image</h3>\n <div class=\"photo-translucent-grad\">\n <div class=\"card card-light photo-translucent-offset\">\n <h4>The wash blends with unknowable image pixels</h4>\n <p>Surface unknown — abstain, never score the wash stops as dark.</p>\n </div>\n </div>\n\n <h3>Neutral text-shadow on dark card</h3>\n <div class=\"dark-context\">\n <div class=\"card card-dark dark-text-offset\">\n <h4>Offset neutral text-shadow</h4>\n <p>Legibility aid, not a glow.</p>\n </div>\n </div>\n\n <h3>Light elevated cards</h3>\n <div class=\"card card-light elevated-sm-light\">\n <h4>Small elevation (Tailwind shadow-sm)</h4>\n <p>Standard subtle card shadow.</p>\n </div>\n <div class=\"card card-light elevated-md-light\">\n <h4>Medium elevation (Tailwind shadow-md)</h4>\n <p>Standard card shadow.</p>\n </div>\n <div class=\"card card-light elevated-warm-light\">\n <h4>Warm deep shadow</h4>\n <p>Large spread neutral shadow.</p>\n </div>\n </div>\n </div>\n <script src=\"/js/detect-antipatterns-browser.js\"></script>\n</body>\n</html>\n"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}
{"args":["<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>Flush Against Border; Should Flag vs Should Pass</title>\n <style>\n /* Fixture for the flush-against-border rule.\n\n The rule is more general than its name suggests: it fires when a\n container has any visible boundary (border, outline, OR a\n non-transparent background) AND zero inline padding on the\n bounded side, AND text-bearing children land flush against that\n boundary.\n\n Distinct from cramped-padding (which fires when an element has\n its OWN direct text and the padding/font-size ratio is wrong).\n Here the container has NO direct text; only children; so\n cramped-padding gives it a pass. */\n\n body { font-family: system-ui, sans-serif; background: #fafafa; padding: 24px; margin: 0; color: #0f172a; line-height: 1.5; }\n .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 1400px; margin: 0 auto; }\n .col h2 { font-size: 22px; font-weight: 700; margin: 0 0 16px; color: #0f172a; line-height: 1.2; }\n .col h3 { font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; margin: 28px 0 10px; color: #64748b; }\n .case { margin-bottom: 14px; }\n .case-label { display: block; font-size: 12px; color: #64748b; margin-bottom: 8px; font-style: italic; max-width: 60ch; }\n\n /* ────────────────────────────────────────────────────────────\n SHOULD FLAG\n ──────────────────────────────────────────────────────────── */\n\n /* ── FLAG: the /live-mode-frameworks bug; border + zero side-padding ── */\n .flag-frameworks {\n padding: 28px 0 0;\n background: #fffbe6;\n border: 1px solid #d4a017;\n border-radius: 8px;\n display: flex;\n flex-direction: column;\n gap: 10px;\n }\n .flag-frameworks-label {\n font-family: ui-monospace, monospace;\n font-size: 11px;\n letter-spacing: 0.18em;\n text-transform: uppercase;\n color: #8b6914;\n }\n .flag-frameworks-list {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n list-style: none;\n padding: 0;\n margin: 0;\n }\n .flag-frameworks-list li {\n font-family: ui-monospace, monospace;\n font-size: 13px;\n padding: 6px 12px;\n background: #fef3c7;\n border: 1px solid #d4a017;\n border-radius: 4px;\n color: #78350f;\n }\n\n /* ── FLAG: child text flush against the four borders of a card ── */\n .flag-card-borders {\n padding: 0;\n background: white;\n border: 1px solid #cbd5e1;\n border-radius: 8px;\n }\n .flag-card-borders h4 { margin: 0; font-size: 14px; color: #0f172a; }\n .flag-card-borders p { margin: 4px 0 0; font-size: 13px; color: #475569; }\n\n /* ── FLAG: non-transparent background, zero padding ── */\n .flag-bg-only {\n padding: 0;\n background: #fde68a;\n border-radius: 6px;\n border: 0;\n }\n .flag-bg-only h4 { margin: 0; font-size: 14px; color: #78350f; }\n .flag-bg-only p { margin: 4px 0 0; font-size: 13px; color: #78350f; }\n\n /* ── FLAG: outline (no border), zero padding ── */\n .flag-outline-only {\n padding: 0;\n background: transparent;\n border: 0;\n outline: 2px solid #94a3b8;\n outline-offset: 0;\n }\n .flag-outline-only h4 { margin: 0; font-size: 14px; color: #0f172a; }\n .flag-outline-only p { margin: 4px 0 0; font-size: 13px; color: #475569; }\n\n /* ── FLAG: border-left + zero left-padding, other sides fine ── */\n .flag-asym-leftflush {\n padding: 12px 16px 12px 0;\n background: white;\n border: 1px solid #cbd5e1;\n border-radius: 4px;\n }\n .flag-asym-leftflush h4 { margin: 0; font-size: 14px; color: #0f172a; }\n .flag-asym-leftflush p { margin: 4px 0 0; font-size: 13px; color: #475569; }\n\n /* ────────────────────────────────────────────────────────────\n SHOULD PASS\n ──────────────────────────────────────────────────────────── */\n\n /* ── PASS: no boundary at all (no bg, no border, no outline) ── */\n .pass-no-boundary {\n padding: 0;\n background: transparent;\n border: 0;\n outline: 0;\n }\n .pass-no-boundary-label {\n font-family: ui-monospace, monospace;\n font-size: 11px;\n letter-spacing: 0.18em;\n text-transform: uppercase;\n color: #475569;\n margin-bottom: 10px;\n }\n .pass-no-boundary-list {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n list-style: none;\n padding: 0;\n margin: 0;\n }\n .pass-no-boundary-list li {\n font-size: 13px;\n padding: 6px 12px;\n background: #f5f5f7;\n border: 1px solid #e2e8f0;\n border-radius: 4px;\n color: #0f172a;\n }\n\n /* ── PASS: top-only border, no left/right border, padding-top fine ── */\n .pass-top-rule {\n padding: 24px 0 0;\n background: transparent;\n border: 0;\n border-top: 1px solid #cbd5e1;\n }\n .pass-top-rule-label {\n font-family: ui-monospace, monospace;\n font-size: 11px;\n letter-spacing: 0.18em;\n text-transform: uppercase;\n color: #475569;\n margin-bottom: 10px;\n }\n .pass-top-rule-list {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n list-style: none;\n padding: 0;\n margin: 0;\n }\n .pass-top-rule-list li {\n font-size: 13px;\n padding: 6px 12px;\n background: #f5f5f7;\n border: 1px solid #e2e8f0;\n border-radius: 4px;\n color: #0f172a;\n }\n\n /* ── PASS: bordered card with comfortable inset on all sides ── */\n .pass-bordered-padded {\n padding: 18px 20px;\n background: white;\n border: 1px solid #cbd5e1;\n border-radius: 8px;\n }\n .pass-bordered-padded h4 { margin: 0; font-size: 14px; color: #0f172a; }\n .pass-bordered-padded p { margin: 4px 0 0; font-size: 13px; color: #475569; }\n\n /* ── PASS: background card with comfortable inset ── */\n .pass-bg-padded {\n padding: 14px 18px;\n background: #fde68a;\n border-radius: 6px;\n border: 0;\n }\n .pass-bg-padded h4 { margin: 0; font-size: 14px; color: #78350f; }\n .pass-bg-padded p { margin: 4px 0 0; font-size: 13px; color: #78350f; }\n\n /* ── PASS: outline with comfortable inset ── */\n .pass-outline-padded {\n padding: 14px 18px;\n outline: 2px solid #94a3b8;\n outline-offset: 0;\n border: 0;\n background: transparent;\n }\n .pass-outline-padded h4 { margin: 0; font-size: 14px; color: #0f172a; }\n .pass-outline-padded p { margin: 4px 0 0; font-size: 13px; color: #475569; }\n\n /* ── PASS: image-only container, no text means no flush issue ── */\n .pass-image-only {\n padding: 0;\n background: white;\n border: 1px solid #cbd5e1;\n border-radius: 8px;\n width: 200px;\n overflow: hidden;\n }\n .pass-image-only .placeholder-img {\n width: 100%;\n height: 80px;\n background: linear-gradient(135deg, #cbd5e1, #94a3b8);\n }\n\n /* ── PASS: parent has zero padding, but child margins create the visible inset ── */\n .pass-margin-inset {\n padding: 0;\n background: white;\n border: 1px solid #cbd5e1;\n border-radius: 8px;\n }\n .pass-margin-inset h4 { margin: 16px 18px 4px; font-size: 14px; color: #0f172a; }\n .pass-margin-inset p { margin: 0 18px 16px; font-size: 13px; color: #475569; }\n\n /* ── PASS: an inner shell, not the parent, owns the inset spacing ── */\n .pass-inner-shell {\n padding: 0;\n background: white;\n border: 1px solid #cbd5e1;\n border-radius: 8px;\n }\n .pass-inner-shell .inner-shell {\n margin: 18px;\n }\n .pass-inner-shell h4 { margin: 0 0 4px; font-size: 14px; color: #0f172a; }\n .pass-inner-shell p { margin: 0; font-size: 13px; color: #475569; }\n\n /* ── PASS: same background as parent, so the child draws no visible boundary ── */\n .pass-same-bg-parent {\n padding: 16px;\n background: #eef2f7;\n border-radius: 8px;\n }\n .pass-same-bg-child {\n padding: 0;\n background: #eef2f7;\n border: 0;\n border-radius: 8px;\n }\n .pass-same-bg-child h4 { margin: 0; font-size: 14px; color: #0f172a; }\n .pass-same-bg-child p { margin: 4px 0 0; font-size: 13px; color: #475569; }\n\n /* ── PASS: full-bleed marquee/surface, not a text card missing padding ── */\n .pass-marquee-shell {\n padding: 0;\n background: #172033;\n color: white;\n overflow: hidden;\n border: 0;\n }\n .pass-marquee-track {\n display: flex;\n gap: 12px;\n width: max-content;\n }\n .pass-marquee-card {\n width: 220px;\n padding: 14px;\n background: #23304a;\n border: 1px solid rgba(255, 255, 255, 0.16);\n }\n .pass-marquee-card p { margin: 0; font-size: 13px; }\n\n /* ── PASS: outer scene owns background; inner text surface owns padding ── */\n .pass-inner-text-surface {\n padding: 0;\n background: #0f172a;\n color: white;\n overflow: hidden;\n border: 0;\n }\n .pass-inner-text-surface-window {\n display: grid;\n gap: 6px;\n min-height: 92px;\n padding: 14px;\n background: #111827;\n border: 1px solid rgba(255, 255, 255, 0.16);\n }\n .pass-inner-text-surface-window p { margin: 0; font-size: 13px; }\n </style>\n</head>\n<body>\n <div class=\"grid\">\n\n <!-- ════════════════════════════════════════════════════════════\n LEFT COLUMN: should flag\n ═══════════════════════════════════════════════════════════ -->\n <div class=\"col\" data-col=\"flag\">\n <h2>Should flag</h2>\n\n <h3>Border + zero side-padding</h3>\n <div class=\"case\">\n <span class=\"case-label\">section: full border, padding 28px 0 0; label and pills touch the left/right border lines.</span>\n <section class=\"flag-frameworks\">\n <span class=\"flag-frameworks-label\">Supported dev servers</span>\n <ul class=\"flag-frameworks-list\">\n <li>Vite</li>\n <li>Next.js</li>\n <li>SvelteKit</li>\n <li>Astro</li>\n </ul>\n </section>\n </div>\n\n <h3>All sides flush against a border</h3>\n <div class=\"case\">\n <span class=\"case-label\">card: 1px border on all sides, padding 0; heading and body touch every side.</span>\n <div class=\"flag-card-borders\">\n <h4>Card flush against the borders</h4>\n <p>Body copy sits flush against every visible border line.</p>\n </div>\n </div>\n\n <h3>Background color, zero padding</h3>\n <div class=\"case\">\n <span class=\"case-label\">no border, but a non-transparent bg; text flush against the bg's edge counts too.</span>\n <div class=\"flag-bg-only\">\n <h4>Title flush against the bg edge</h4>\n <p>Body copy with zero padding around a colored fill.</p>\n </div>\n </div>\n\n <h3>Outline (not border), zero padding</h3>\n <div class=\"case\">\n <span class=\"case-label\">outline draws outside the box; content at the box edge sits next to the outline.</span>\n <div class=\"flag-outline-only\">\n <h4>Title flush against the outline</h4>\n <p>The outline counts as a visible boundary too.</p>\n </div>\n </div>\n\n <h3>Left-side flush, other sides fine</h3>\n <div class=\"case\">\n <span class=\"case-label\">card: padding 12px 16px 12px 0; text touches the left border, other sides are inset.</span>\n <div class=\"flag-asym-leftflush\">\n <h4>Title flush only on the left</h4>\n <p>Padding-left zero with a full border.</p>\n </div>\n </div>\n </div>\n\n <!-- ════════════════════════════════════════════════════════════\n RIGHT COLUMN: should pass\n ═══════════════════════════════════════════════════════════ -->\n <div class=\"col\" data-col=\"pass\">\n <h2>Should pass</h2>\n\n <h3>No boundary at all</h3>\n <div class=\"case\">\n <span class=\"case-label\">no bg, no border, no outline; zero padding is fine.</span>\n <section class=\"pass-no-boundary\">\n <span class=\"pass-no-boundary-label\">Supported dev servers</span>\n <ul class=\"pass-no-boundary-list\">\n <li>Vite</li>\n <li>Next.js</li>\n <li>SvelteKit</li>\n </ul>\n </section>\n </div>\n\n <h3>Top-only border, no side borders</h3>\n <div class=\"case\">\n <span class=\"case-label\">border-top only, padding-top 24px; no left/right border to be flush against.</span>\n <section class=\"pass-top-rule\">\n <span class=\"pass-top-rule-label\">Supported dev servers</span>\n <ul class=\"pass-top-rule-list\">\n <li>Vite</li>\n <li>Next.js</li>\n <li>SvelteKit</li>\n </ul>\n </section>\n </div>\n\n <h3>Bordered card with proper inset</h3>\n <div class=\"case\">\n <span class=\"case-label\">card: 1px border + padding 18px 20px; comfortable inset on every side.</span>\n <div class=\"pass-bordered-padded\">\n <h4>Card with proper inset</h4>\n <p>Body copy sits comfortably away from the borders.</p>\n </div>\n </div>\n\n <h3>Background card with proper inset</h3>\n <div class=\"case\">\n <span class=\"case-label\">non-transparent bg + padding 14px 18px; content has room to breathe.</span>\n <div class=\"pass-bg-padded\">\n <h4>Title with inset on bg</h4>\n <p>Body copy is comfortably inset from the bg edge.</p>\n </div>\n </div>\n\n <h3>Outline with proper inset</h3>\n <div class=\"case\">\n <span class=\"case-label\">outline + padding 14px 18px; content is comfortably inside.</span>\n <div class=\"pass-outline-padded\">\n <h4>Title with inset and outline</h4>\n <p>Outline boundary with proper inset works.</p>\n </div>\n </div>\n\n <h3>Image-only container, no text</h3>\n <div class=\"case\">\n <span class=\"case-label\">card: padding 0, border all sides; no text means nothing can be flush.</span>\n <div class=\"pass-image-only\">\n <div class=\"placeholder-img\"></div>\n </div>\n </div>\n\n <h3>Child margins provide the inset</h3>\n <div class=\"case\">\n <span class=\"case-label\">card: parent padding 0, but text children have margins that create visible inset.</span>\n <div class=\"pass-margin-inset\">\n <h4>Title inset by child margin</h4>\n <p>Body copy is not visually flush even though the parent has zero padding.</p>\n </div>\n </div>\n\n <h3>Inner shell provides the inset</h3>\n <div class=\"case\">\n <span class=\"case-label\">card: parent padding 0, but an inner shell is offset from every edge.</span>\n <div class=\"pass-inner-shell\">\n <div class=\"inner-shell\">\n <h4>Title inset by inner shell</h4>\n <p>The direct child creates the breathing room.</p>\n </div>\n </div>\n </div>\n\n <h3>Same background as parent</h3>\n <div class=\"case\">\n <span class=\"case-label\">child padding 0, but it has the same background as the parent, so no child boundary is visible.</span>\n <div class=\"pass-same-bg-parent\">\n <div class=\"pass-same-bg-child\">\n <h4>Same-surface visual shell</h4>\n <p>The text belongs to the parent surface, not to a distinct zero-padding card.</p>\n </div>\n </div>\n </div>\n\n <h3>Full-bleed marquee shell</h3>\n <div class=\"case\">\n <span class=\"case-label\">marquee shell clips animated cards intentionally; the cards, not the shell, own text padding.</span>\n <section class=\"pass-marquee-shell\">\n <div class=\"pass-marquee-track\">\n <article class=\"pass-marquee-card\"><p>Quote card with its own comfortable padding.</p></article>\n <article class=\"pass-marquee-card\"><p>Another moving card, also padded inside.</p></article>\n </div>\n </section>\n </div>\n\n <h3>Inner text surface</h3>\n <div class=\"case\">\n <span class=\"case-label\">outer shell has a scene background; the inner window owns the actual text padding.</span>\n <div class=\"pass-inner-text-surface\">\n <div class=\"pass-inner-text-surface-window\">\n <p>Build step running</p>\n <p>Detector output belongs to the mock window.</p>\n </div>\n </div>\n </div>\n </div>\n </div>\n <script src=\"/js/detect-antipatterns-browser.js\"></script>\n</body>\n</html>\n"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}
{"args":["<!doctype html>\n<html lang=\"en\">\n<head>\n <meta charset=\"utf-8\" />\n <title>Oversized H1 fixture</title>\n <style>\n body { font-family: Georgia, serif; margin: 0; color: #1a1a1a; background: #fff; }\n .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px; }\n .col { padding: 16px; }\n h1 { margin: 0 0 24px; line-height: 1.05; }\n </style>\n</head>\n<body>\n <div class=\"cols\">\n <!-- FLAG column: a long headline set at display size, dominating the viewport -->\n <section class=\"col flag\">\n <h1 style=\"font-size: 96px\">A sweeping product headline that runs on far too long to sit at this size</h1>\n <h1 style=\"font-size: 80px\">Everything your whole team needs to launch quickly and finally rest at night</h1>\n </section>\n\n <!-- PASS column: punchy short headlines at display size (a valid choice), and a long headline at a sane size -->\n <section class=\"col pass\">\n <h1 style=\"font-size: 168px\">Bold.</h1>\n <h1 style=\"font-size: 120px\">Ship faster</h1>\n <h1 style=\"font-size: 40px\">A perfectly ordinary headline that is reasonably long but set at a sane, readable size</h1>\n </section>\n </div>\n</body>\n</html>\n"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}
{"args":["<!doctype html>\n<html lang=\"en\">\n<head>\n <meta charset=\"utf-8\" />\n <title>Extreme negative tracking fixture</title>\n <style>\n body { font-family: Georgia, serif; margin: 0; color: #1a1a1a; background: #fff; }\n .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px; }\n .col { padding: 16px; }\n p, h2 { margin: 0 0 20px; }\n </style>\n</head>\n<body>\n <div class=\"cols\">\n <!-- FLAG column: tracking crushed past the point of legibility -->\n <section class=\"col flag\">\n <p style=\"letter-spacing: -0.06em\">Tracking crushed em paragraph copy that should still read as a sentence.</p>\n <p style=\"letter-spacing: -4px; font-size: 64px\">Tracking crushed pixels heading line</p>\n <h2 style=\"letter-spacing: -0.07em\">Tracking crushed heading variant text</h2>\n </section>\n\n <!-- PASS column: optical tightening that display type legitimately wants -->\n <section class=\"col pass\">\n <h1 style=\"letter-spacing: -0.02em; font-size: 72px\">Optical tighten display</h1>\n <p style=\"letter-spacing: normal\">Plain paragraph copy with default tracking that reads comfortably.</p>\n </section>\n </div>\n</body>\n</html>\n"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}
{"args":["<!doctype html>\n<html lang=\"en\">\n<head>\n <meta charset=\"utf-8\" />\n <title>Clipped overflow container fixture</title>\n <style>\n body { font-family: system-ui, sans-serif; margin: 0; color: #1a1a1a; background: #fff; }\n .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px; }\n .col { padding: 16px; }\n .box { position: relative; width: 200px; height: 120px; margin: 0 0 24px; padding: 16px; border: 1px solid #ddd; }\n .pop { position: absolute; top: 100%; left: 0; width: 220px; background: #222; color: #fff; padding: 8px; }\n .tip-negative { position: absolute; top: -34px; left: 16px; width: 160px; background: #222; color: #fff; padding: 8px; }\n .flyout { position: absolute; top: 28px; left: 100%; width: 180px; background: #222; color: #fff; padding: 8px; }\n .contained-badge { position: absolute; top: 10px; right: 10px; width: 36px; height: 24px; background: #e5f0ff; }\n .button-shine { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); }\n .crop-photo { position: absolute; inset: -18px; background: linear-gradient(135deg, #b7d7ff, #486aa3); }\n .inside-overlay { position: absolute; left: 12px; right: 12px; bottom: 12px; min-height: 28px; background: rgba(255,255,255,.86); }\n .pass-hidden-button { position: relative; overflow: hidden; width: 160px; height: 52px; border: 1px solid #ddd; background: #111; color: #fff; }\n .pass-carousel-viewport,\n .pass-fisheye-list,\n .pass-split-container {\n position: relative;\n overflow: hidden;\n width: 200px;\n height: 120px;\n margin: 0 0 24px;\n border: 1px solid #ddd;\n }\n .carousel-slide-next { position: absolute; top: 100%; left: 0; width: 100%; height: 100%; padding: 16px; background: #f5f5f5; }\n .fisheye-next-item { position: absolute; top: 100%; left: 0; width: 100%; padding: 8px; background: none; border: 0; text-align: left; }\n .split-after-panel { position: absolute; top: 0; left: 50%; width: 100%; height: 100%; background: #f5f5f5; }\n </style>\n</head>\n<body>\n <div class=\"cols\">\n <!-- FLAG column: clipping container with a positioned child that needs to escape -->\n <section class=\"col flag\">\n <div class=\"box flag-overflow-hidden\" style=\"overflow: hidden\">\n <button>Menu</button>\n <ul class=\"pop\">Dropdown that gets clipped by the hidden ancestor</ul>\n </div>\n <div class=\"box flag-overflow-clip\" style=\"overflow: clip\">\n <button>Tooltip host</button>\n <span class=\"pop\">Tooltip clipped by overflow clip</span>\n </div>\n <div class=\"box flag-overflow-negative\" style=\"overflow: hidden\">\n <button>Help</button>\n <span class=\"tip-negative\">Tooltip clipped above the host</span>\n </div>\n <div class=\"box flag-overflow-right\" style=\"overflow: hidden\">\n <button>Actions</button>\n <div class=\"flyout\">Flyout menu clipped to the right of the host</div>\n </div>\n <div class=\"box flag-shadow-utility\" style=\"overflow: hidden\">\n <button>More</button>\n <div class=\"pop bg-white shadow-lg\">Dropdown with utility classes still gets clipped.</div>\n </div>\n <div class=\"box flag-overlay-surface\" style=\"overflow: clip\">\n <button>Dialog</button>\n <div class=\"pop modal-overlay\">Overlay-style dialog content still needs to escape.</div>\n </div>\n </section>\n\n <!-- PASS column: no clipping, no positioned child, real scroll region, or contained decorative positioning -->\n <section class=\"col pass\">\n <div class=\"box pass-hidden-no-abs\" style=\"overflow: hidden\">\n <p style=\"position: static\">Hidden container with only static content.</p>\n </div>\n <div class=\"box pass-visible-abs\" style=\"overflow: visible\">\n <button>Visible host</button>\n <span class=\"pop\">Positioned child can escape because overflow is visible.</span>\n </div>\n <div class=\"box pass-scroll-abs\" style=\"overflow: auto\">\n <button>Scroll host</button>\n <span class=\"pop\">A genuine scroll region is allowed to contain positioned children.</span>\n </div>\n <div class=\"box pass-contained-abs\" style=\"overflow: hidden\">\n <p>Positioned decoration remains inside the clipping box.</p>\n <span class=\"contained-badge\" aria-hidden=\"true\"></span>\n </div>\n <button type=\"button\" class=\"pass-hidden-button pass-button-shine\">\n Save\n <span class=\"button-shine\" aria-hidden=\"true\"></span>\n </button>\n <div class=\"box pass-crop-photo\" style=\"overflow: hidden\">\n <span class=\"crop-photo\" aria-hidden=\"true\"></span>\n </div>\n <div class=\"box pass-contained-overlay\" style=\"overflow: clip\">\n <p>Mockup frame with a contained absolute overlay.</p>\n <span class=\"inside-overlay\" aria-hidden=\"true\"></span>\n </div>\n <div class=\"pass-carousel-viewport\" aria-roledescription=\"carousel\">\n <div class=\"carousel-slide-next\">A hidden next slide is clipped intentionally by the viewport.</div>\n </div>\n <div class=\"pass-fisheye-list\">\n <button type=\"button\" class=\"fisheye-next-item\">Next command</button>\n </div>\n <div class=\"pass-split-container\">\n <div class=\"split-after-panel\">Before/after comparison panel clipped by the split frame.</div>\n </div>\n </section>\n </div>\n</body>\n</html>\n"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}
{"args":["<!doctype html>\n<html lang=\"en\">\n<head>\n <meta charset=\"utf-8\" />\n <title>Cream palette fixture</title>\n <style>\n body { background: #f5efe2; color: #2a2622; font-family: Georgia, serif; margin: 0; padding: 40px; }\n h1 { font-size: 40px; margin: 0 0 16px; }\n p { max-width: 60ch; line-height: 1.6; }\n </style>\n</head>\n<body>\n <h1>A warm cream surface</h1>\n <p>The whole page sits on the default tasteful off-white that every generated landing page reaches for. The background is the tell, regardless of what sits on top of it.</p>\n</body>\n</html>\n"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}
{"args":["<!doctype html>\n<html lang=\"en\">\n<head>\n <meta charset=\"utf-8\" />\n <title>Cream palette (Tailwind) fixture</title>\n</head>\n<body class=\"bg-amber-50 text-stone-800 font-serif\">\n <h1>A warm cream surface via Tailwind</h1>\n <p>The background comes from a utility class (bg-amber-50), not inline CSS, so the static engine never resolves it to a computed color. The class-list fallback should still catch it.</p>\n</body>\n</html>\n"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}
{"args":["<!doctype html>\n<html lang=\"en\">\n<head>\n <meta charset=\"utf-8\" />\n <title>Recurring generated-UI tell fixture</title>\n <style>\n body { font-family: system-ui, sans-serif; margin: 0; color: #1a1a1a; background: #fff; }\n .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px; }\n .col { padding: 16px; }\n .card { padding: 24px; margin: 0 0 24px; border-radius: 12px; }\n .stripes { height: 80px; margin: 0 0 24px; border-radius: 12px; }\n .grid { height: 80px; margin: 0 0 24px; border-radius: 12px; }\n </style>\n</head>\n<body>\n <div class=\"cols\">\n <!-- FLAG column: recurring generated-UI idioms -->\n <section class=\"col flag\">\n <div class=\"card flag-thin-border-wide-shadow\" style=\"border: 1px solid #e5e7eb; box-shadow: 0 0 24px rgba(0,0,0,0.18)\">\n Thin hairline border paired with a wide diffuse shadow.\n </div>\n <div class=\"stripes flag-repeating-stripes\" style=\"background: repeating-linear-gradient(45deg, #eee, #eee 10px, #fafafa 10px, #fafafa 20px)\"></div>\n <div class=\"grid flag-codex-grid\" style=\"background: linear-gradient(90deg, oklch(96% 0.012 82 / 0.055) 1px, transparent 1px), linear-gradient(180deg, oklch(96% 0.012 82 / 0.05) 1px, transparent 1px); background-size: 78px 78px, 78px 78px;\"></div>\n <p class=\"flag-theater\">We retired the growth theater and shipped something that actually works.</p>\n </section>\n\n <!-- PASS column: the legitimate, non-tell versions -->\n <section class=\"col pass\">\n <div class=\"card pass-tight-shadow\" style=\"border: 1px solid #e5e7eb; box-shadow: 0 1px 4px rgba(0,0,0,0.08)\">\n Hairline border with a tight, purposeful shadow.\n </div>\n <div class=\"card pass-soft-border-wide-shadow\" style=\"border: 1px solid rgba(148, 163, 184, 0.16); box-shadow: 0 18px 48px -16px rgba(15, 23, 42, 0.18)\">\n A quiet low-contrast hairline with a broad but restrained ambient shadow.\n </div>\n <div class=\"card pass-oklch-soft-shadow\" style=\"border: 1px solid oklch(78% 0 0 / 0.16); box-shadow: 0 16px 36px -12px oklch(2% 0.004 95 / 0.18)\">\n OKLCH shadow hue values should not be mistaken for shadow blur.\n </div>\n <div class=\"stripes pass-plain-gradient\" style=\"background: linear-gradient(180deg, #f3f4f6, #ffffff)\"></div>\n <div class=\"grid pass-single-axis-rule\" style=\"background: linear-gradient(180deg, rgba(15, 23, 42, 0.06) 1px, transparent 1px); background-size: 100% 32px\"></div>\n <div class=\"grid pass-two-color-blend\" style=\"background: linear-gradient(90deg, #f3f4f6, #e5e7eb), linear-gradient(180deg, #eef2ff, #ffffff)\"></div>\n <div class=\"grid pass-crosshair-no-tiling\" style=\"background: linear-gradient(90deg, rgba(15, 23, 42, 0.06) 1px, transparent 1px), linear-gradient(180deg, rgba(15, 23, 42, 0.06) 1px, transparent 1px)\"></div>\n <div class=\"grid pass-bg-plus-mask-hairline\" style=\"background: linear-gradient(90deg, rgba(15, 23, 42, 0.06) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(180deg, #000 1px, transparent 1px)\"></div>\n <p class=\"pass-no-theater\">We measured real outcomes for the people who use this every day.</p>\n </section>\n </div>\n</body>\n</html>\n"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}
{"args":["<!doctype html>\n<html lang=\"en\">\n<head>\n <meta charset=\"utf-8\" />\n <title>Image hover-transform fixture</title>\n <style>\n body { font-family: system-ui, sans-serif; margin: 0; color: #1a1a1a; background: #fff; }\n .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px; }\n .col { padding: 16px; }\n img { display: block; width: 160px; height: 120px; margin: 0 0 24px; background: #ddd; }\n .flag-css-hover img { transition: transform 0.3s; }\n .flag-css-hover img:hover { transform: scale(1.05); }\n .card:hover { transform: translateY(-4px); }\n </style>\n</head>\n<body>\n <div class=\"cols\">\n <!-- FLAG column: image hover transforms -->\n <section class=\"col flag\">\n <div class=\"flag-css-hover\">\n <img src=\"data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='160'%20height='120'%3E%3Crect%20width='160'%20height='120'%20fill='%23c9b89a'/%3E%3C/svg%3E\" alt=\"CSS hover-zoom image\" />\n </div>\n <img class=\"flag-tw-hover hover:scale-105 transition-transform\" src=\"data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='160'%20height='120'%3E%3Crect%20width='160'%20height='120'%20fill='%23a89c86'/%3E%3C/svg%3E\" alt=\"Tailwind hover-zoom image\" />\n </section>\n\n <!-- PASS column: static images, and hover transforms on non-image elements -->\n <section class=\"col pass\">\n <img class=\"pass-static\" src=\"data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='160'%20height='120'%3E%3Crect%20width='160'%20height='120'%20fill='%23ddd6c8'/%3E%3C/svg%3E\" alt=\"Static image with no hover transform\" />\n <div class=\"card pass-non-img-hover\">A card that lifts on hover, which is fine because it is not an image.</div>\n </section>\n </div>\n</body>\n</html>\n"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}
{"args":["<!DOCTYPE html><html lang=\"en\"><head><meta charset=\"utf-8\"><title>t</title></head><body><main><h1>A real page heading of ordinary length</h1><p>fast — cheap — honest — simple — quiet — kind — bright — calm — done</p></main></body></html>"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}
{"args":["<!DOCTYPE html><html lang=\"en\"><head><meta charset=\"utf-8\"><title>t</title></head><body><main><h1>A real page heading of ordinary length</h1><p>fast — cheap — honest — simple — quiet — kind — bright — calm — done</p></main></body></html>"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}
{"args":["<!DOCTYPE html><html lang=\"en\"><head><meta charset=\"utf-8\"><title>t</title></head><body><main><h1>A real page heading of ordinary length</h1><p>fast — cheap — honest — simple — quiet — kind — bright — calm — done</p></main></body></html>"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}
{"args":["<!DOCTYPE html><html lang=\"en\"><head><meta charset=\"utf-8\"><title>t</title></head><body><main><h1>A real page heading of ordinary length</h1><p>fast — cheap — honest — simple — quiet — kind — bright — calm — done</p></main></body></html>"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}
{"args":["<!DOCTYPE html><html lang=\"en\"><head><meta charset=\"utf-8\"><title>t</title></head><body><main><h1>A real page heading of ordinary length</h1><p>fast — cheap — honest — simple — quiet — kind — bright — calm — done</p></main></body></html>"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}
{"args":["<!DOCTYPE html><html lang=\"en\"><head><meta charset=\"utf-8\"><title>t</title></head><body><main><h1>A real page heading of ordinary length</h1><p>fast — cheap — honest — simple — quiet — kind — bright — calm — done</p></main></body></html>"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}
{"args":["<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"utf-8\">\n <title>Em-dash entity overuse</title>\n</head>\n<body>\n <main>\n <h1>A page whose em-dashes hide inside HTML entities</h1>\n <p>\n The product is fast — it is also cheap — and it is honest\n — which matters — more than speed — or price\n — in the short term — and the long run — always.\n </p>\n </main>\n</body>\n</html>\n"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}
{"args":["<!DOCTYPE html>\n<!--\n Companion to css-in-prose-should-pass.html: the same patterns applied as\n real styling. The scoped-corpus scan must still catch every carrier a page\n can style itself with — a <style> rule, an inline style=\"\" attribute, and\n Tailwind utility classes.\n-->\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<title>Real gradient-text styling</title>\n<style>\n body { font-family: Georgia, serif; margin: 0; padding: 40px 24px; background: #fdfcf9; color: #1f2933; }\n /* SHOULD FLAG (gradient-text + ai-color-palette): a real style rule. */\n .gradient-heading {\n background: linear-gradient(135deg, #7c3aed, #a855f7);\n -webkit-background-clip: text;\n background-clip: text;\n -webkit-text-fill-color: transparent;\n font-size: 44px;\n }\n</style>\n</head>\n<body>\n<h1 class=\"gradient-heading\">Ship Faster With Us</h1>\n\n<!-- SHOULD FLAG (gradient-text): the same construction inline. -->\n<h2 style=\"background: linear-gradient(90deg, #667eea, #764ba2); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-size: 28px;\">Inline gradient heading</h2>\n\n<!-- SHOULD FLAG (gradient-text, Tailwind): bg-clip-text + bg-gradient-to- classes. -->\n<h2 class=\"bg-clip-text bg-gradient-to-r from-purple-500 to-pink-500 text-transparent\">Tailwind gradient heading</h2>\n\n<p>Body copy long enough to make this a real page for the scanners to read.</p>\n</body>\n</html>\n"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}
{"args":["<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<title>Dark theme, modern color syntax</title>\n<style>\n /* A lacquer-black ground painted as a gradient in oklch, the shape that\n floods dark themes with \"on #ffffff\" low-contrast false positives when\n the detector cannot read the ground and assumes white. */\n body {\n margin: 0;\n padding: 24px;\n background: linear-gradient(oklch(0.07 0.006 95), oklch(0.11 0.008 95));\n font-family: Georgia, serif;\n font-size: 15px;\n line-height: 1.6;\n }\n\n section {\n padding: 24px;\n margin-bottom: 24px;\n width: 640px;\n }\n\n p { margin: 0 0 12px; font-size: 15px; }\n\n /* Readable grounds, each written in a color syntax a real browser keeps\n verbatim in getComputedStyle output. */\n .panel-srgb { background-color: color(srgb 0.1 0.11 0.12); }\n .panel-mix { background-color: color-mix(in srgb, white 6%, #0b0b0d); }\n .panel-p3 { background-color: color(display-p3 0.07 0.07 0.08); }\n .panel-lch { background-color: lch(18 4 60); }\n .panel-light { background-color: color(srgb 0.98 0.97 0.95); }\n\n /* A color space the detector does not model. Nested inside the light\n panel so a detector that walks PAST the unreadable layer would measure\n light text against the light section and invent a finding. */\n .panel-unreadable { background-color: color(rec2020 0.05 0.05 0.05); padding: 20px; }\n\n /* An image layer stacked ABOVE a loud gradient. The image is the visible\n surface and its pixels are unreadable; a detector that falls back to\n gradient stops here measures a layer the visitor never sees. */\n .panel-image-over-gradient { background-image: url(\"opaque-panel.png\"), linear-gradient(#ff0000, #0000ff); }\n\n /* Keywords a real browser resolves before getComputedStyle output but a\n partial cascade hands through verbatim: inherit takes the parent's\n ground, currentcolor paints with the element's own text color. Both are\n knowable surfaces; abstaining on them would hide real findings. */\n .panel-inherit { background-color: inherit; padding: 20px; }\n .panel-current { background-color: currentcolor; color: color(srgb 0.94 0.93 0.91); }\n .text-pale-2 { color: color(srgb 0.78 0.77 0.75); }\n\n .text-light { color: oklch(0.92 0.01 90); }\n .text-dark { color: color(srgb 0.1 0.11 0.12); }\n\n .text-muted-ground { color: oklch(0.32 0.01 90); }\n .text-dim-srgb { color: color(srgb 0.28 0.28 0.3); }\n .text-dim-p3 { color: color(display-p3 0.35 0.35 0.36); }\n .text-dim-lch { color: lch(35 3 60); }\n .text-pale-light { color: color(srgb 0.75 0.74 0.72); }\n</style>\n</head>\n<body>\n\n<h1 class=\"text-light\">Should flag</h1>\n\n<section>\n <p class=\"text-muted-ground\">Flag Muted On Oklch Ground: charcoal body copy sitting straight on the lacquer gradient.</p>\n</section>\n\n<section class=\"panel-srgb\">\n <p class=\"text-dim-srgb\">Flag Dim On Srgb Panel: slate copy on a near-black srgb surface.</p>\n</section>\n\n<section class=\"panel-p3\">\n <p class=\"text-dim-p3\">Flag Dim On Display P3 Panel: slate copy on a near-black display-p3 surface.</p>\n</section>\n\n<section class=\"panel-lch\">\n <p class=\"text-dim-lch\">Flag Dim On Lch Panel: warm gray copy on a warm near-black lch surface.</p>\n</section>\n\n<section class=\"panel-light\">\n <p class=\"text-pale-light\">Flag Pale On Light Panel: bone copy on a bone-white srgb surface.</p>\n</section>\n\n<section class=\"panel-light\">\n <div class=\"panel-inherit\">\n <p class=\"text-pale-2\">Flag Pale On Inherited Light Panel: the ground is inherited from the light section, so the walk must resolve it rather than abstain.</p>\n </div>\n</section>\n\n<section class=\"panel-current\">\n <p class=\"text-pale-light\">Flag Pale On Currentcolor Panel: the ground is the panel's own bone text color, so the keyword must resolve rather than abstain.</p>\n</section>\n\n<h1 class=\"text-light\">Should pass</h1>\n\n<section>\n <p class=\"text-light\">Pass Light Text On Oklch Gradient Ground: warm ivory copy on the lacquer gradient, roughly 15:1.</p>\n</section>\n\n<section class=\"panel-srgb\">\n <p class=\"text-light\">Pass Light Text On Srgb Panel: warm ivory copy on the near-black srgb surface.</p>\n</section>\n\n<section class=\"panel-mix\">\n <p class=\"text-light\">Pass Light Text On Color Mix Panel: warm ivory copy on a surface a browser reports as color(srgb ...).</p>\n</section>\n\n<section class=\"panel-p3\">\n <p class=\"text-light\">Pass Light Text On Display P3 Panel: warm ivory copy on the near-black display-p3 surface.</p>\n</section>\n\n<section class=\"panel-lch\">\n <p class=\"text-light\">Pass Light Text On Lch Panel: warm ivory copy on the warm near-black lch surface.</p>\n</section>\n\n<section class=\"panel-light\">\n <p class=\"text-dark\">Pass Dark Text On Light Panel: ink copy on the bone-white srgb surface.</p>\n <div class=\"panel-unreadable\">\n <p class=\"text-light\">Pass Unreadable Panel Inside Light Section: the ground is a color space the detector cannot read, so it must abstain instead of measuring against the light section or against white.</p>\n </div>\n</section>\n\n<section class=\"panel-image-over-gradient\">\n <p class=\"text-muted-ground\">Pass Image Over Gradient: the visible ground is an image whose pixels the engine cannot read, so it must abstain instead of measuring the loud gradient hidden beneath it.</p>\n</section>\n\n</body>\n</html>\n"],"result":{"file":{"$set":[]},"line":{"$map":[]},"nextLine":{"$map":[]}}}