# Meng Shao explains Chrome’s Modern Web Guidance for coding agents

> Original title: Chrome 开源的「Modern Web Guidance」非常实用！

- Source: meng shao
- Published: 2026-11-13T04:51:41.000Z
- Bad Influence: https://badinfluence.news/items/qhcn7coo52e1q515n31r8h0om
- Original: https://x.com/shao__meng/status/2121103686021927420

## Summary

Meng Shao says Chrome’s open-source Modern Web Guidance gives coding agents 203 use-case guides covering 250 modern web features, grouped across CSS and layout, HTML and DOM, and JavaScript and APIs. The guide includes Baseline compatibility data, fallback suggestions, and a static scan for older patterns in existing projects. Shao cites Philip Walton’s report that agents passed about 50% of checks without the guide and about 90% with it.

## Post

Chrome 开源的「Modern Web Guidance」非常实用！

因为 Coding Agent 的训练数据很可能是过时的，它会用自己编写一大段 TS 去实现一个浏览器新版本已经支持的新特性，虽然也糊出来了，但明显不是最佳实践，在维护迭代方面也都不是最好的。

Modern Web Guidance 这个现代 Web 指南，提供 203 条用例指南，覆盖 250 项现代 Web 特性，并按 CSS 与布局、HTML 与 DOM、JavaScript 与 API 分组。
https://github.com/GoogleChrome/modern-web-guidance-src

主题包括对话框和弹出层动画、表单与自动填充、无障碍、性能（如 INP 和任务调度）、安全（HTML 清理、内容安全策略、通行密钥）、隐私、PWA，以及浏览器内置的端侧 AI API。

指南带有 Baseline 兼容数据，并按项目的浏览器支持目标给出降级方案；未单独配置时，文档写明默认按「广泛可用」处理。1.0 还加入对现有 HTML、CSS、JavaScript 和 package.json 的静态扫描，帮助发现可以稳妥替换的旧模式。

每条指南附有可在浏览器里检查的期望，并用带指南与不带指南的 Agent 做对照。Philip Walton 在 11 月 11 日的博文中写道：在他们的评测集上，未使用指南时平均大约通过 50% 检查，使用后约 90%。

![](https://badinfluence.news/api/img-proxy?u=https%3A%2F%2Fpbs.twimg.com%2Fmedia%2FHW-si17aMAAS_Mg.jpg&mode=thumb&exp=1795651200&sig=63fb44a245224b16)

## Quoted post @ChromiumDev

> 48 hours after launching 1.0, Modern Web Guidance is the #1 trending repo on GitHub 📈
> 
> Thank you to the thousands of web developers, and our partners across Firefox, MDN, Edge, and community contributors, who are helping move AI coding agents onto modern, accessible, Baseline-supported web primitives.
> 
> If you haven't tried 1.0 on your codebase yet:
> 
> Install the agent skills: 'npx modern-web-guidance@latest install'
> 
> Audit an existing codebase: 'npx modern-web-guidance@latest legacy-scan .'
> 
> Check out the repo on Github → https://goo.gle/4zoi7Dv

https://x.com/ChromiumDev/status/2121014221563396156
