什麼是 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