cross-browser-testing
它能做什么
这项技能说明如何在主流浏览器中测试网站,并把这些检查加入自动化测试。适合希望在用户发现之前就捕捉浏览器特有错误的团队。
适用场景
- ✓当页面在一个浏览器中显示正常,在另一个浏览器中却出错时。
- ✓当你加入较新的 CSS 或 JavaScript 功能,需要检查其支持情况时。
- ✓当你希望把浏览器测试加入持续集成流程时。
技能链接
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/cross-browser-testing/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请设置自动化测试,在 Chrome、Firefox、Safari 和 Edge 中检查我的首页。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会推荐 Playwright 或 BrowserStack 等工具,在主要浏览器及其移动版本上添加测试,并在依赖某项功能之前检查其支持情况。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Test across all major browsers
Users access your site from different browsers, each with unique rendering engines. Without cross-browser testing, a significant portion of users may experience broken layouts, missing features, or complete failures.
Quick Reference
- Test on Chrome, Firefox, Safari, and Edge at minimum
- Use automated tools like Playwright or BrowserStack for CI testing
- Check CSS features with caniuse.com before using
- Test on both desktop and mobile versions of browsers
- Document and gracefully handle unsupported features
Check
Verify that this website works correctly across major browsers (Chrome, Firefox, Safari, Edge).
Fix
Fix browser-specific issues and ensure consistent experience across different browsers.
Explain
Explain the importance of testing across browsers to ensure all users have a good experience.
Code Review
Review tests, CI workflows, and enforcement points related to Test across all major browsers. Flag exact gaps where the rule is not automatically verified or where failures do not block regressions.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/testing/cross-browser-testing
常见问题
应该测试哪些浏览器?
这项技能说明,至少应包括桌面版和移动版的 Chrome、Firefox、Safari 和 Edge。
如何检查某个 CSS 功能是否被支持?
这项技能建议在使用前,在 caniuse.com 上查询。
它提到了哪些自动化工具?
Playwright 和 BrowserStack。
详情
作者的原始描述
Use when reviewing CI coverage, automated checks, or test strategy related to Test across all major browsers. Focus on whether the rule is continuously verified, not just documented.
热度
- GitHub 星标
- 75k
- 排名
- #2791
- 许可证
- MIT
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
frontendchecklist
75k使用命令行工具,依据 380 多条关于无障碍、速度、SEO 和安全的规则,检查前端代码和线上页面。
frontend-checklist-global
75k依据全部 386 条 Front-End Checklist 规则审查前端项目,并为发现的每个问题给出具体修复方法。
404-page
75k检查你的页面缺失提示是否提供有用的链接,并返回真正的 404 状态,帮助迷路的访客找到方向。
about-page
75k审查你的网站是否有清晰的关于页面,说明由谁运营,以建立访客和搜索引擎的信任。