Chuyển đến nội dung
Skillpedia
Website và giao diện (frontend)75k · #3054

text-resizing

Skill này làm gì

Skill này kiểm tra văn bản trên trang có thể lớn lên mà không bị cắt hoặc chồng lên nhau không. Skill dành cho lập trình viên và nhà thiết kế muốn site mà người có thị lực kém có thể đọc được.

Khi nào nên dùng

  • ✓Khi một trang có các khung chiều cao cố định làm cắt văn bản khi phóng to.
  • ✓Khi cỡ chữ đặt bằng pixel cố định và bỏ qua cài đặt của người dùng.
  • ✓Khi kiểm thử site ở mức thu phóng 200 phần trăm trước khi ra mắt.

Liên kết skill

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/text-resizing/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/text-resizing/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Một phần chữ của tôi bị cắt khi tôi thu phóng trình duyệt. Bạn có thể kiểm tra CSS xem có kích thước cố định không?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent tìm các kích thước pixel cố định và các khung có chiều cao cố định. Sau đó agent chuyển sang các đơn vị linh hoạt và cho phép khung giãn theo văn bản.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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

Câu hỏi thường gặp

Kiểm tra 200 phần trăm kiểm tra điều gì?

Nó kiểm tra mọi nội dung vẫn hiển thị và sử dụng được khi văn bản được phóng gấp đôi trong cài đặt trình duyệt.

Vì sao kích thước pixel cố định là vấn đề?

Chúng bỏ qua cỡ chữ mà người dùng đã chọn, nên văn bản không thể lớn lên theo nhu cầu của họ.

Skill khuyên dùng đơn vị nào?

Skill khuyên dùng rem và em cho cỡ chữ.

Chi tiết

Mô tả gốc của tác giả

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.

repo: thedaviddias/Front-End-Checklist

Độ phổ biến

Sao GitHub
75k
Vị trí xếp hạng
#3054
Giấy phép
MIT
Cập nhật
31/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự