text-resizing
它能做什么
这项技能检查页面文字放大后是否会被截断或重叠。适用于希望低视力人群也能阅读的开发者和设计师。
适用场景
- ✓当页面中固定高度的框在文字放大时把文字裁切掉的时候。
- ✓当字号使用固定像素,忽略了用户设置的时候。
- ✓当你在上线前以 200% 缩放检测网站的时候。
技能链接
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/text-resizing/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我把浏览器放大时,部分文字会被截断。请帮我检查 CSS 中的固定尺寸。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会查找固定像素尺寸和固定高度的容器,然后改用灵活的单位,并让容器随文字增长。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Support text resizing to 200%
Users with low vision need larger text—if your layout breaks at 200% zoom or clips text in fixed containers, they can't read your content.
Quick Reference
- Use rem/em units for font sizes instead of fixed px
- Avoid fixed-height containers that clip text
- Ensure containers grow when text size increases
- Test at 200% zoom—all content should remain visible
Check
Resize text to 200% using browser text-only zoom settings and verify no content is clipped, truncated, or overlaps. Confirm all functionality remains accessible and text containers expand appropriately.
Fix
Use relative units (rem, em) for font sizes instead of fixed pixels. Ensure containers can grow with text content. Avoid fixed-height containers that clip overflowing text. Test with browser text-size preferences.
Explain
Explain how users with low vision adjust text size through browser settings, and why fixed pixel sizes or clipping containers prevent users from accessing content at their preferred reading size.
Code Review
Review the rendered markup and interactive states that affect Support text resizing to 200%. 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/text-resizing
常见问题
200% 检查测试的是什么?
它检查当浏览器设置中的文字放大一倍时,所有内容是否仍然可见、可以使用。
为什么固定像素是个问题?
它们忽略了用户选择的尺寸,使文字无法按用户的需要放大。
这项技能推荐使用哪些单位?
推荐字号使用 rem 和 em 单位。
详情
作者的原始描述
Use when reviewing rendered HTML, interactive components, or design-system patterns related to Support text resizing to 200%. Check native semantics first, then inspect keyboard behavior, focus flow, accessible names, and screen-reader output where relevant.
热度
- GitHub 星标
- 75k
- 排名
- #3054
- 许可证
- MIT
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
frontendchecklist
75k使用命令行工具,依据 380 多条关于无障碍、速度、SEO 和安全的规则,检查前端代码和线上页面。
frontend-checklist-global
75k依据全部 386 条 Front-End Checklist 规则审查前端项目,并为发现的每个问题给出具体修复方法。
404-page
75k检查你的页面缺失提示是否提供有用的链接,并返回真正的 404 状态,帮助迷路的访客找到方向。
about-page
75k审查你的网站是否有清晰的关于页面,说明由谁运营,以建立访客和搜索引擎的信任。