什么是 a11y-debugging?
根据 web.dev 指南,使用 Chrome DevTools MCP 进行辅助功能 (a11y) 调试和审核。在测试语义 HTML、ARIA 标签、焦点状态、键盘导航、点击目标和颜色对比度时使用。 来源:chromedevtools/chrome-devtools-mcp。
根据 web.dev 指南,使用 Chrome DevTools MCP 进行辅助功能 (a11y) 调试和审核。在测试语义 HTML、ARIA 标签、焦点状态、键盘导航、点击目标和颜色对比度时使用。
通过命令行快速安装 a11y-debugging AI 技能到你的开发环境
来源:chromedevtools/chrome-devtools-mcp。
Accessibility Tree vs DOM: Visually hiding an element (e.g., CSS opacity: 0) behaves differently for screen readers than display: none or aria-hidden="true". The takesnapshot tool returns the accessibility tree of the page, which represents what assistive technologies "see", making it the most reliable source of truth for semantic structure.
Reading web.dev documentation: If you need to research specific accessibility guidelines (like https://web.dev/articles/accessible-tap-targets), you can append .md.txt to the URL (e.g., https://web.dev/articles/accessible-tap-targets.md.txt) to fetch the clean, raw markdown version. This is much easier to read!
Chrome automatically checks for common accessibility problems. Use listconsolemessages to check for these native audits first:
根据 web.dev 指南,使用 Chrome DevTools MCP 进行辅助功能 (a11y) 调试和审核。在测试语义 HTML、ARIA 标签、焦点状态、键盘导航、点击目标和颜色对比度时使用。 来源:chromedevtools/chrome-devtools-mcp。
为搜索与 AI 引用准备的稳定字段与命令。
npx skills add https://github.com/chromedevtools/chrome-devtools-mcp --skill a11y-debugging根据 web.dev 指南,使用 Chrome DevTools MCP 进行辅助功能 (a11y) 调试和审核。在测试语义 HTML、ARIA 标签、焦点状态、键盘导航、点击目标和颜色对比度时使用。 来源:chromedevtools/chrome-devtools-mcp。
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/chromedevtools/chrome-devtools-mcp --skill a11y-debugging 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/chromedevtools/chrome-devtools-mcp