Chrome, Edge, and Firefox Give Coding Agents 204 Guides to Modern Web Development
Ask an AI agent to build an animated modal dialog, and it often produces code from a decade ago: heavy JavaScript instead of built-in browser features. The Chrome, Edge, Firefox, and MDN teams released Modern Web Guidance, which feeds agents short instructions for 204 common tasks, such as showing a form validation error only after the user has interacted with the field. If your agent pulls in unnecessary libraries, this set is worth installing and testing.
AI-processed from GitHub Trending AI; edited by Hamidun News
Ask any coding agent to build a modal dialog with a smooth animation, and you will most likely get code from a decade ago: a third-party library, a pile of JavaScript, and manual position calculations, even though a modern browser can handle all of this on its own. The cause lies in the training data. It contains a lot of old code, while fresh web platform capabilities are underrepresented.
The Google Chrome team published the Modern Web Guidance repository, which hands the agent the relevant reference material right at the moment it works. It contains 204 scenarios: ready-made instructions for specific developer tasks, such as "show a validation error only after the user interacts with the field." In one day, the repository collected 799 stars on GitHub Trending.
What It Is
Modern Web Guidance (the source repository is called modern-web-guidance-src) is a set of skills for coding agents. It includes knowledge about the web platform, best practices, and browser compatibility data. The project is led by the Google Chrome, Microsoft Edge, and Mozilla Firefox teams and MDN, together with the broader web community. The repository itself contains the code and documentation for writing, calibrating, and evaluating these guides.
The idea is not to retrain the model but to supply it with reference material during the task. When an agent starts working, the CLI returns targeted expert recommendations into its context window. The authors highlight three priorities. The first is correct usage of APIs that models often use incorrectly. The second is a preference for platform-native solutions, which the browser optimizes on its own and which already include built-in accessibility. The third is lightweight fallbacks instead of heavy polyfills and outdated libraries.
What's Inside
The catalog covers several years of web platform development, up to the most recent features. It includes 140 CSS and layout capabilities, 85 JavaScript and API capabilities, and 204 scenarios drawn from real-world development. CSS topics include View Transitions, container queries, Anchor Positioning for tooltips, the Popover API, styling of select elements, and the sibling-count() and sibling-index() functions. JavaScript topics include diagnostics for the Interaction to Next Paint (INP) metric, which shows how quickly a page responds to clicks, AbortController, and the browser's built-in translation, summarization, and language detection APIs.
The scenarios are phrased as concrete tasks. For example: "build a payment form with correct autocomplete values", "safely send a message on Enter while accounting for IME (so that unfinished text is not submitted when typing in Chinese or Japanese)", or "make an accessible toggle using the native switch attribute with a fallback for older browsers." Separate guides cover CSS architecture, responsive layouts, and web components. The authors say the guides are token-efficient: they run evaluations on models and cut out anything the models already know.
How to Try It
Installation runs through an interactive wizard: npx modern-web-guidance@latest install, and Node.js 22 or later is required. Installation is optional, since there are three commands for trying it out. The search command looks up relevant guides by query, for example "animate a dialog modal backdrop." The retrieve command fetches the selected guide. The legacy-scan command scans a codebase and finds outdated patterns that can be replaced with modern ones.
What to Keep in Mind
There are two reasons for caution. The project description contains no measurements: it does not say how much less often an agent writes the old way, or how much output quality improves. For that reason, the set should be tested on your own tasks rather than taken on faith. In addition, modern APIs are not available in every browser. Compatibility data is built into the guides, but you still need to check the target browsers for your product.
The practical takeaway is simple. If you build frontends with agents, install the set and run legacy-scan on an older project. It is a quick way to see where agents and people have, for years, written heavy code instead of using native browser features. The underlying idea also applies beyond the web: instead of fine-tuning a model, you can supply it with compact, verified reference material from the people who build the platform.
- Nov 21, 2026A swimming team captain handed ChatGPT three scheduled tasks and cut her routine work by a multiple
- Nov 21, 2026MIRA Neural Network Renders Rocket League at 20 FPS, but Ping Hits 460 ms
- Nov 21, 2026Google built a closed copy of the internet with fake banks to train Chrome's AI agents
- Nov 21, 2026MLPerf Training Adds Nvidia Rubin and TPU Ironwood in First Appearance: 153 Systems
Key Questions Answered
What It Is?
Modern Web Guidance (the source repository is called modern-web-guidance-src) is a set of skills for coding agents. It includes knowledge about the web platform, best practices, and browser compatibility data. The project is led by the Google Chrome, Microsoft Edge, and Mozilla Firefox teams and MDN, together with the broader web community. The repository itself contains the code and documentation for writing, calibrating, and evaluating these guides.
What's Inside?
The catalog covers several years of web platform development, up to the most recent features. It includes 140 CSS and layout capabilities, 85 JavaScript and API capabilities, and 204 scenarios drawn from real-world development. CSS topics include View Transitions, container queries, Anchor Positioning for tooltips, the Popover API, styling of select elements, and the sibling-count() and sibling-index() functions.
How to Try It?
Installation runs through an interactive wizard: npx modern-web-guidance@latest install, and Node.js 22 or later is required. Installation is optional, since there are three commands for trying it out. The search command looks up relevant guides by query, for example "animate a dialog modal backdrop." The retrieve command fetches the selected guide. The legacy-scan command scans a codebase and finds outdated patterns that can be replaced with modern ones.
Test Frontier LLMs & Autonomous Agents in One Workspace
Run Claude Opus 5.5, GPT-6, Gemini 3.1, and DeepSeek side-by-side in Nomad AI (nomadnet.ai) — unified model routing, deep research, and multimodal workflows under one subscription.
The AI world, distilled — once a week
Seven stories that actually mattered, hand-picked. No noise, no reposts, no press releases.
Done! Check your inbox for a confirmation.