Repository navigation
Conversation
…ory seo-lint and FE-SCROLL checks
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 10506f2ece
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const css = isMarkup ? [...text.matchAll(/<style[^>]*>([\s\S]*?)<\/style>/gi)].map((m) => m[1]).join("\n") : text; | ||
| const kf = keyframesIn(css); | ||
| const reduceKills = /prefers-reduced-motion\s*:\s*reduce\s*\)\s*\{[\s\S]{0,600}?(animation(-name)?\s*:\s*none|animation-timeline\s*:\s*none)/i.test(css); | ||
| const inNoPref = (r) => r.at.some((a) => /prefers-reduced-motion\s*:\s*no-preference/i.test(a)); |
There was a problem hiding this comment.
Default inline rules to an empty at-rule context
When HTML contains an inline style such as <html style="scroll-behavior: smooth">, lintStatic now throws TypeError: Cannot read properties of undefined (reading 'some') instead of returning findings. inlineStyleRules() does not populate at, but the new scroll checks dereference it here and in the supports check. Inline animation-timeline styles crash as well. Default these rules to an empty context or guard both accesses so supported inline styles do not abort the entire lint run.
Useful? React with 👍 / 👎.
| if (![...el.childNodes].some((n) => n.nodeType === 3 && n.textContent.trim().length > 1)) continue; | ||
| if (el.closest(skip) || !el.getClientRects().length) continue; | ||
| let op = 1, n = el, hid = false; | ||
| while (n && n.nodeType === 1) { const cs = getComputedStyle(n); op *= +cs.opacity; if (cs.visibility === "hidden" && n === el) hid = true; n = n.parentElement; } | ||
| if (op < 0.1 || hid) bad.push(el); |
There was a problem hiding this comment.
Distinguish interaction-hidden text from broken scroll reveals
For a CSS dropdown whose menu uses visibility: hidden until :hover or :focus-within, this probe reports its links as broken scroll content even though they become readable through the intended interaction. Such elements retain layout boxes, do not match the exclusions, and remain hidden because the render pass only scrolls rather than opening the menu. Consequently, a page with no scroll animations can receive a hard FE-SCROLL-BASE-01 failure. Restrict this failure to scroll-reveal candidates or account for interaction-controlled visibility before declaring content permanently invisible.
Useful? React with 👍 / 👎.
| export function visibleText(html) { | ||
| let s = html.replace(/<!--[\s\S]*?-->/g, " ") | ||
| .replace(/<(script|style|noscript|template|svg|head)\b[\s\S]*?<\/\1>/gi, " ") | ||
| .replace(/<([a-z][\w-]*)\b[^>]*\s(hidden|aria-hidden=["']true["'])[^>]*>[\s\S]*?<\/\1>/gi, " "); |
There was a problem hiding this comment.
Preserve discoverable until-found content in SEO checks
When an FAQ is inside hidden="until-found", this replacement discards its questions and causes the later JSON-LD validation to emit a hard “FAQPage question not visible” failure. The newly added seo-baseline.md explicitly permits collapsed accordions using hidden="until-found" when their text is in the DOM, so the lint rejects a documented supported pattern. Distinguish this discoverable state from ordinary hidden content rather than stripping every hidden attribute indiscriminately.
Useful? React with 👍 / 👎.
…ts (FE-MOTION-CUTOUT-01), text-only landing tell + render warn
…ank-ground and split render warnings
What
references/build/scroll-interaction.md(new): native-scroll default, visible base state (the one hard line), guards and declaration order, verb-per-moment chooser, anchors/focus, compositor-only perf, platform status as of 2026-11-22. Opens with a creative-license section.seo-baseline.mdrewritten from 2026 Google/Bing/OpenAI/Anthropic/Perplexity docs and the schema/FAQ citation studies; removes the unsupported "FAQPage has the highest AI citation lift" claim and the retiredanthropic-aitoken.scripts/seo-lint.mjs(new) and FE-SCROLL-* checks inui-lint.mjs(static +--renderreduced-motion / JS-off visibility pass). Lint is advisory: FAIL only for objective breakage.motion.mdreveal recipe fixed (no hidden base state), platform-2026 rows for scroll-triggered animations, scroll-state queries and snap events; routing in SKILL.md / topic index / preflight.Checks
gate.mjsOK, prompt-architecture OK, inventory refreshed