Không có "CSS4". CSS hiện nay phát triển theo **Module Level** độc lập.
Lịch sử phiên bản monolithic
| Phiên bản | Năm REC | Nội dung |
|---|---|---|
| CSS1 | 12/1996 | Font, color, text, box model cơ bản. |
| CSS2 | 05/1998 | Media types, positioning, @font-face, generated content. |
| CSS2.1 | 06/2011 | Sửa lỗi CSS2, chuẩn thực tế lâu năm. |
CSS3 = Modules (từ 1999)
Mỗi module có level và trạng thái riêng:
| Module | Level hiện tại | Trạng thái | Tính năng chính |
|---|---|---|---|
| Selectors | Level 3 (REC), Level 4 (WD) | REC / WD | :nth-child, :not(), ::before, attribute selectors |
| Color | Level 3 (REC), Level 4 (WD), Level 5 (ED) | REC / WD | rgba, hsl, opacity, color(), lab, lch |
| Flexbox | Level 1 (REC) | REC | Flex layout 1 chiều |
| Grid | Level 1 (REC), Level 2 (WD) | REC / WD | Grid layout 2 chiều |
| Media Queries | Level 3 (REC), Level 4 (CR), Level 5 (WD) | REC / CR | Responsive, prefers-color-scheme, pointer |
| Animations | Level 1 (WD) | WD | @keyframes, animation-* |
| Transforms | Level 1 (WD), Level 2 (WD) | WD | rotate, scale, translate, 3D |
| Fonts | Level 3 (REC), Level 4 (WD) | REC / WD | @font-face, font-display, variable fonts |
Kiểm tra hỗ trợ
Dùng Can I use hoặc MDN để xem trình duyệt hỗ trợ module/level nào.