Focus, inert & Motion
Models routinely miss keyboard focus trapping, inert attribute management, prefers-reduced-motion, and accessible form validation.
Frontier coding models happily write 100 lines of custom JS for what modern HTML & CSS do natively—and fail roughly half of modern web checks on edge cases. Modern Web Guidance 1.0 pairs cross-browser Baseline targets, expert-vetted skills, and Chrome DevTools for agents to close the build-and-verify loop.
inert & MotionModels routinely miss keyboard focus trapping, inert attribute management, prefers-reduced-motion, and accessible form validation.
Agents reach for heavy JS animation libraries or nested <div> dropdowns instead of native CSS scroll-driven animations and appearance: base-select.
Generated pages often ship unprioritized LCP hero images, layout shift regressions (CLS), and unscheduled main-thread work.
Shipping shiny new APIs without checking your actual audience’s browser matrix breaks Safari/Firefox or older mobile engines.
web-features Baseline checks, @supports & polyfills.Match your supported browser targets with Baseline web-features data, @supports, and polyfills.
Inject expert-vetted accessibility, UX, and performance guides or run legacy-scan on existing repos.
Inspect real runtime DOM, CLS, LCP, and accessibility in the browser—closing the loop with auto-fixes.
Thousands of published eval runs prove skill efficacy on fixed tasks; always pair with Gate 3 on your own app.
Policybazaar cut manual Core Web Vitals auditing effort by 92% across ~30 landing pages, while both teams cut new page turnaround and UI bugs by over 90% by closing the build-and-verify loop.
Wired Modern Web Guidance into a three-line advisory PR review bot in a 15-minute setup—flagging and driving 43 accessibility and semantic HTML fixes across ~480 pull requests before code hit production.
Integrated Chrome DevTools for agents and Modern Web Guidance into CI/CD to automatically diagnose and fix 90% of recurring CLS layout-shift regressions, cutting performance debugging time by 87%.
Combined Modern Web Guidance with rules for its internal design system, lifting modern web check pass rates from 61% to 94% while improving proper LCP hero image prioritization.
npx modern-web-guidance@latest install (or update if upgrading from the Google I/O preview).
@supports queries stay automatic.
legacy-scan on One Real Component
Run npx modern-web-guidance@latest legacy-scan on a high-traffic component or add a 3-line advisory PR bot check like MetaMask.