What Is Modern Web Guidance? Browser Compatibility Advice for AI Coding Agents
Modern Web Guidance helps AI coding agents choose HTML, CSS, and web APIs based on your project's browser support requirements.
In this article
Ask an AI coding agent to add a share panel, and it may write JavaScript to open the panel, position it, and manage keyboard focus. Browsers can handle some of that work through features such as the Popover API. The choice depends on which browsers your users need and how the existing panel behaves.
Modern Web Guidance is an open-source skill for coding agents that helps them make that choice. The Chrome team released version 1.0 on November 10, 2026, with contributions from Firefox, Edge, and other web platform experts. Chrome 1.0 announcement
What the skill brings to a project
The skill shows the agent how to use a command-line tool to find guidance for a specific task. That could be a card layout that adapts to the space around it, a form error that needs to reach screen reader users, or JavaScript work that blocks a page from responding. The guides include browser compatibility information and suggest ways to support browsers that lack a feature. Official getting-started guide
Set a browser support target
Baseline describes how broadly a feature works across major browsers. A feature is Newly available when it has worked across those browsers for less than 30 months, and Widely available after 30 months. The skill defaults to Widely available. Teams can specify a target such as Baseline 2024 in AGENTS.md or CLAUDE.md. Record any additional requirements there too, such as support for older corporate browsers or in-app browsers. Baseline and fallbacks
Try it on a share panel
Run the official installer from the project directory. Existing installations can use the CLI's update command. Installation guide
npx modern-web-guidance@latest install
Then give the agent one component to review.
Use Modern Web Guidance to review this share panel. Check the Popover API and CSS Anchor Positioning separately against our Baseline target. Preserve the share actions and explain what users get if either feature is unavailable. Test Tab, Escape, and where focus lands when the panel closes.
Verify the result in a browser
Opening a popover and positioning it next to its trigger are separate decisions. If your target browsers support the first feature more widely, you can adopt it while keeping the existing positioning code. Chrome DevTools can help you inspect the rendered panel and keyboard focus. Test the other browsers on your support list to confirm the fallback works. Chrome's guide to pairing guidance with DevTools
How to tune a site already in production
Start with something you can reproduce. Suppose a recommendation card loads midway through a mobile article and pushes the text down. Ask the agent to reproduce the shift, record the URL, viewport, network settings, and trigger, then use the Chrome DevTools Performance panel to identify the element that moved. Cumulative Layout Shift (CLS) tracks this kind of unexpected movement. For a slow button, record the interaction and inspect what the main thread was doing.
- Measure the current site. Pick a representative home page, listing, article, or form. If you have real-user data, use it to prioritize the issue and use a controlled browser run to diagnose it.
- Change one thing on a preview site. Ask the agent to use Modern Web Guidance and your support target to propose a fix. For a recommendation card, reserve its image and layout space, then see whether the article still shifts.
- Rerun under the same conditions. Use the same page, device settings, cache state, and interaction sequence. Record several runs before and after. Check that links, ads or recommendations, and keyboard controls still work. After release, check real-user data separately.
Measure the layout shift when recommendation cards load on this mobile article. Record which element moves and when. Use Modern Web Guidance to propose one fix that fits our browser support target, and apply it to the preview site. Run three comparable trials before and after, then report the results, functional checks, and any remaining browser differences.
The 1.0 modernization workflow can also scan existing code for specific patterns. Use its findings to pick candidates, then verify each candidate in a running page. Chrome's modernization workflow
How to build verification into a new site
Before the agent writes the first page, document the supported browsers, primary user flows, and acceptance criteria. For an event registration site, specify the mobile and desktop browsers that matter, then define what it means to complete a registration with a keyboard and recover from a validation error.
- Build the core flow first. Connect event details, a labeled form, server-side validation, and confirmation. Make errors easy to find and correct.
- Add enhancements within your support target. Use Modern Web Guidance to evaluate native positioning or animation where appropriate. Verify that people can complete registration with reduced motion or on a browser that lacks the enhancement.
- Keep repeatable tests for the critical actions. On a preview site with test data, check keyboard navigation, mobile layouts, form errors, and success states. Use Playwright for repeated flow checks and DevTools to inspect loading, layout shifts, and main-thread work during interactions.
Use Modern Web Guidance to plan this registration site. List the core actions, Baseline target, and fallbacks before implementing the form. With test data, verify the mobile layout, tab order, validation errors, and success state in our supported browsers. Save the workflow as a repeatable test.
Modern Web Guidance informs the choice of browser features. The agent applies those choices to your project, and browser measurements and tests show whether the result meets your criteria. Chrome's guide to pairing guidance with DevTools