跳到内容

CSS 使用情况

你如何使用 CSS。

While testing environments don't show much change year over year, it's encouraging to see a small increase in respondents testing with keyboard-only and screen readers.

It's also interesting to note that when comparing with company size, larger companies tend to test using screen readers at a higher rate.

您会在哪些设备或环境中进行测试?
Multiple
0%
20%
40%
60%
80%
100%
1

个人电脑

4,010
2

智能手机

2,718
3

平板

1,777
4

仅带键盘的台式机

1,337
5

测试工具

1,138
6

非智能手机

1,051
7

屏幕阅读器

874
8

打印机

450
9

PDF Export

289
10

视觉模拟题

-1
249
0%
20%
40%
60%
80%
100%
受访者百分比
💡
科学证明,在Twitter、Facebook或电子邮件上分享这项调查, 可以让你的 JavaScript 性能提高15%。

你主要使用CSS做什么?

While CSS started its life as a document layout system, it's now clear that interactive apps represent its primary use case–a fact that has been no doubt driving the language's recent evolution.

你通常使用CSS做什么样的项目?
Multiple
0%
20%
40%
60%
80%
100%
1

网络应用

3,286
2

博客或其他文本密集型网站

1,992
3

营销网站和登录页

1,772
4

设计系统

1,569
5

桌面应用

1,014
6

移动应用程序

872
7

电子邮件

697
8

PDF documents

392
9

插图

-1
365
10

印刷文件

-1
300
11

E-Commerce sites

-1
12

其他答案

68
0%
20%
40%
60%
80%
100%
受访者百分比
We asked members of the CSS community to share their “pick of the year”

My 2025 Pick: Combining features

My pick not as much a single feature that changes things, as it is the way multiple features can be used together.

For example, subgrid + the new corner-shape (or the shape() clip-path function) to get content-dependant shapes with concave roundings that aren't necessarily circular.

We asked members of the CSS community to share their “pick of the year”

Ana Tudor

CSS Mad Scientist

Many of us are building tools destined to be used internally within the developer community, which makes it much easier to adopt new features without worrying as much about browser compatibility.

你在哪个行业工作?
Multiple
0%
20%
40%
60%
80%
100%
1

编程和技术工具

1,264
2

咨询服务

798
3

电子商务与零售

596
4

营销/销售/分析工具

477
5

教育

460
6

金融

385
7

娱乐

337
8

新闻、媒体和博客

316
9

卫生保健

280
10

政府

250
0%
20%
40%
60%
80%
100%
受访者百分比
9%
Year-over-year percentage increase in respondents who wish they could use Anchor Positioning.

浏览器不兼容性

Not only did Anchor Positioning keep its number one spot, but the percentage of respondents citing it almost doubled.

The View Transition API also climbed to number 3, while Container style queries gained a whopping 11 spots in the rankings.

On the other hand, CSS Nesting and :has() both lost ground, which makes sense since these features are now supported in all major browsers.

你是否有因为浏览器之间的差异, 导致在使用 CSS 时遇到困难?
(自由提问)
Multiple
0%
20%
40%
60%
80%
100%
1

2

3

+2
4

Browser support

+5
5

Safari issues

6

+11
7

-3
8

-5
9

10

Scoping

0%
20%
40%
60%
80%
100%
受访者百分比
We asked members of the CSS community to share their “pick of the year”

My 2025 Pick: CSS Math Functions

Math is the language of the universe, of life itself, and without it, we wouldn’t be able to describe, measure, or build anything with clarity.

So the fact that we can now use these functions natively in CSS only strengthens our capabilities and opens up a whole world of new possibilities.

We asked members of the CSS community to share their “pick of the year”

Amit Sheen

Web Developer & Creative Coder

缺失的功能

Mixins are still the feature developers wish for the most, closely followed by Masonry Layout. Both have long been possible using workarounds such as pre-processors or JavaScript, but it would be nice to see them natively supported in CSS!

您认为 CSS 目前完全缺少哪些功能?
(自由提问)
Multiple
0%
20%
40%
60%
80%
100%
1

Mixins

2

砖石布局

+1
3

Conditional Logic

-1
4

+1
5

For Loops

+3
6

Better Animations

+1
7

Form Elements Styling

+8
8

父选择器

-4
9

Scoping

10

+6
0%
20%
40%
60%
80%
100%
受访者百分比

其他 CSS 痛点

Browser Support may still be the dominant CSS pain point in 2025, but the fact that only a relatively small 10% of question respondents mentioned it is a testament to recent improvements in this domain.

写 CSS 的时候是否还有其他痛点?
(自由提问)
Multiple
0%
20%
40%
60%
80%
100%
1

Browser support

2

Speed of change

3

Excessive complexity

5

Excessive Tailwind usage

6

Debugging

7

Hard-to-remember syntax

8

Conditional Logic

9

Layout & positioning

10

其他答案

匹配“其他答案”的答案 431
0%
20%
40%
60%
80%
100%
受访者百分比

最喜爱的新功能

While :has() is still number one, it did lose a bit of ground, as the View Transition API and especially Anchor Positioning (which gained 8 spots) start seeing wider adoption.

您最喜欢今年开始使用的 CSS 新功能是什么?
(自由提问)
Multiple
0%
20%
40%
60%
80%
100%
1

2

+1
3

4

+2
5

+8
6

-2
7

+4
8

-1
9

-4
10

+4
0%
20%
40%
60%
80%
100%
受访者百分比
We asked members of the CSS community to share their “pick of the year”

My 2025 Pick: Picalilli

I've been following Piccalili for a while and I love that they have free technical articles alongside more in-depth paid courses so you can pick what flavor of learning you're up for. And as a business, they're so thoughtful about understanding the web community and making ethical business decisions that allow them to do great work without feeling icky about how they make money.
We asked members of the CSS community to share their “pick of the year”

Saron Yitbarek

Web Evangelist at Apple

Game-changing Feature

Every new CSS feature has its use, but only a few of them are real game-changers. It turns out Grid, :has(), and CSS Nesting are the features that most changed how we write CSS in recent years.

Over the past 5 years, which feature has had the biggest impact on how you write CSS?
0%
20%
40%
60%
80%
100%
1

2

3

4

5

6

7

8

9

10

0%
20%
40%
60%
80%
100%
受访者百分比

Baseline Awareness

We wanted to see how familiar respondents are with the Baseline browser compatibility indicator (which you can see in use throughout these very survey results!).

Despite our clever traps in the form of fake answers, the vast majority of you successfuly negotiated the question! Younger respondents in particular showed higher awareness of Baseline, no doubt due to the recent Baseline integration in Fortnite (…just kidding).

Quiz time! Web Platform Baseline is…
0%
20%
40%
60%
80%
100%
1

A set of new text layout features

46
2

An in-browser performance testing tool

40
3

A set of web features and APIs supported by all major browsers

2,741
4

A set of code examples to reuse across projects

23
5

I have no idea

1,007
0%
20%
40%
60%
80%
100%
受访者百分比

Pace of Change

Adopting a new feature is usually a multi-stage process: first, you hear about it a few times over the course of months or years, until you form a solid idea of what it does. Then, you might try it out on an experimental side project, before finally adopting it in production.

This chart shows that most of us are squarely in the middle of this journey, having learned about and tried out only part of the feature set presented in this survevy.

How well are you generally able to keep up with new CSS features, such as those mentioned in this survey?
0%
20%
40%
60%
80%
100%
1

I haven't learned about or tried out most features

541
2

I've learned about some of the features; but haven't tried them out

942
3

I've learned about and tried out some of the features

1,324
4

I've learned about most of the features and tried out some of them

804
5

I've learned about and tried out most of the features

244
0%
20%
40%
60%
80%
100%
受访者百分比
We asked members of the CSS community to share their “pick of the year”

My 2025 Pick: The light-dark() Function

Once using color-scheme in CSS, using light-dark() to declare colors based upon whether light or dark mode is currently in use feels like a no-brainer. I'm currently enjoying following this discussion thread about what further logic we may use in the future, to query color-scheme and change CSS conditionally.
We asked members of the CSS community to share their “pick of the year”

Sara Joy

Front End Developer

Web 技术满意度

Happiness with the web has been fairly stable over the past years, neither going up or down.

您对 Web 技术的整体状况感到满意吗?
1
2
3
4
5
2020
2021
2022
2023
2024
2025
1
2
3
4
5
平均 {axis}

On the other hand, happiness with CSS specifically shows a clear upwards trend in recent years, which happens to align nicely with the language's own rapid pace of improvement.

您对 CSS 的整体状况感到满意吗?
1
2
3
4
5
2020
2021
2022
2023
2024
2025
1
2
3
4
5
平均 {axis}
Getting Started with CSS, v2
Jen Kramer
AnnieCannons

Getting Started with CSS, v2

Build a modern portfolio with CSS! Learn the foundations of layout and UI design as you explore semantic HTML markup, navigation styles, media queries, and CSS custom properties.
SVG Essentials & Animation, v2
Sarah Drasner
Google

SVG Essentials & Animation, v2

In this course, you'll learn to create immersive graphics and make them alive with animations!
感谢合作伙伴对我们的支持! 了解更多。