content-without-css
它能做什么
这项技能检查页面在样式被移除或被用户自己的样式替换后,是否仍然有意义。适合希望内容对所有人都有效的设计师和开发者。
适用场景
- ✓当版式依赖视觉位置来表示接下来的内容时。
- ✓当标签或错误提示只通过装饰性样式才出现时。
- ✓当表单或一组步骤只是因为 CSS 才显得清晰时。
技能链接
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/content-without-css/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请关闭我注册页面的样式,检查标签、步骤和错误提示是否仍然清楚。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会检查页面的语义结构、阅读顺序和标签,并把关键说明放进真实的文字中,而不是依赖样式技巧。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Ensure content remains usable without CSS
Users can browse with custom styles, high contrast modes, reader tools, or failed stylesheets. If the page only makes sense visually, content order, instructions, and task flow break as soon as presentation changes.
Quick Reference
- Use semantic HTML so headings, lists, and form relationships survive without CSS
- Keep DOM order aligned with the reading and task-completion order
- Do not put essential labels, instructions, or required markers in CSS generated content
- Test key journeys with author styles disabled or overridden by user styles
Check
Find pages or components that rely on CSS for meaning. Verify the page still has a logical reading order, visible labels, instructions, error text, and operable primary actions when author styles are disabled or replaced by user styles.
Fix
Use semantic HTML and DOM order to preserve headings, lists, labels, field groups, helper text, and error messaging without relying on CSS positioning, pseudo-elements, or visual-only cues.
Explain
Explain why semantic HTML and meaningful DOM order let content remain understandable when CSS fails to load or users apply their own styles.
Code Review
Review templates, rendered HTML, and component markup related to Ensure content remains usable without CSS. Flag where meaning, reading order, labels, instructions, or task flow depend on CSS rather than semantics, and note how to verify the fix with styles disabled.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/accessibility/content-without-css
常见问题
页面为什么会失去 CSS?
这项技能说明,有些用户会应用自定义样式或高对比度模式,样式表也可能加载失败。
哪些内容不应依赖 CSS?
关键标签、说明文字、必填标记和错误提示文字。
HTML 的顺序重要吗?
重要。这项技能说明,HTML 中的顺序应与阅读和操作顺序一致。
详情
作者的原始描述
Use when reviewing rendered HTML, layout components, or design-system patterns that may depend on presentation for meaning. Check the DOM order, semantic structure, form relationships, and whether CSS generated content carries essential information.
热度
- GitHub 星标
- 75k
- 排名
- #2786
- 许可证
- MIT
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
frontendchecklist
75k使用命令行工具,依据 380 多条关于无障碍、速度、SEO 和安全的规则,检查前端代码和线上页面。
frontend-checklist-global
75k依据全部 386 条 Front-End Checklist 规则审查前端项目,并为发现的每个问题给出具体修复方法。
404-page
75k检查你的页面缺失提示是否提供有用的链接,并返回真正的 404 状态,帮助迷路的访客找到方向。
about-page
75k审查你的网站是否有清晰的关于页面,说明由谁运营,以建立访客和搜索引擎的信任。