zoom-reflow
它能做什么
这个技能检查页面内容在放大到 400% 时是否仍保持为单列且易于阅读。它面向希望布局无障碍的开发者和设计师。
适用场景
- ✓页面在高缩放下需要左右滚动的时候。
- ✓固定宽度的布局在浏览器缩放为 400% 时失效的时候。
- ✓无障碍审查要求进行重排测试的时候。
技能链接
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/zoom-reflow/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我把网站放大到 400% 时,必须左右滚动才能读内容。请帮我修复布局吗?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会查找固定的像素宽度和僵硬的布局。然后它会改用相对单位和流式布局,使内容在窄屏幕上堆叠为单列。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Support content reflow at 400% zoom
Users with low vision zoom to 400% to read content—horizontal scrolling at that level makes it impossible to track lines of text and navigate effectively.
Quick Reference
- Content must reflow to single column at 400% zoom (1280px width at 320px equivalent)
- No horizontal scrolling required to read content
- All functionality must remain accessible at high zoom levels
- Use relative units and fluid layouts that adapt to viewport
Check
Zoom the browser to 400% and verify content reflows to a single column without horizontal scrolling, truncation, or overlapping elements. Test all interactive features remain functional at this zoom level.
Fix
Use responsive CSS with relative units (rem, em, %) instead of fixed pixels. Implement fluid layouts that adapt to viewport width. Test with CSS media queries to ensure layouts reflow gracefully.
Explain
Explain how users with low vision rely on browser zoom up to 400% to read content, and why horizontal scrolling creates significant barriers for users who can only see a small portion of the screen at once.
Code Review
Review the rendered markup and interactive states that affect Support content reflow at 400% zoom. Flag exact elements, roles, labels, focus behavior, or keyboard interactions that violate the rule, and note how to verify the fix with browser accessibility tooling or assistive tech.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/accessibility/zoom-reflow
常见问题
为什么 400% 缩放很重要?
低视力用户会放大到这个程度来阅读,而左右滚动会让文字行难以跟随。
放大后所有功能都应该正常工作吗?
应该。这个技能说,在高缩放级别下,所有功能都必须保持可访问。
这个技能建议使用哪些单位?
rem、em 和百分比等相对单位,而不是固定像素。
详情
作者的原始描述
Use when reviewing rendered HTML, interactive components, or design-system patterns related to Support content reflow at 400% zoom. Check native semantics first, then inspect keyboard behavior, focus flow, accessible names, and screen-reader output where relevant.
热度
- GitHub 星标
- 75k
- 排名
- #3093
- 许可证
- MIT
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
frontendchecklist
75k使用命令行工具,依据 380 多条关于无障碍、速度、SEO 和安全的规则,检查前端代码和线上页面。
frontend-checklist-global
75k依据全部 386 条 Front-End Checklist 规则审查前端项目,并为发现的每个问题给出具体修复方法。
404-page
75k检查你的页面缺失提示是否提供有用的链接,并返回真正的 404 状态,帮助迷路的访客找到方向。
about-page
75k审查你的网站是否有清晰的关于页面,说明由谁运营,以建立访客和搜索引擎的信任。