ข้ามไปยังเนื้อหา

CSS Usage

How you use 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.

Which form factors or environments do you test on?
Multiple
0%
20%
40%
60%
80%
100%
1

คอมพิวเตอร์ตั้งโต๊ะ

4,010
2

สมาร์ทโฟน

2,718
3

แท็บเล็ต

1,777
4

คอมพิวเตอร์ตั้งโต๊ะ (ใช้แป้นพิมพ์เท่านั้น)

1,337
5

เครื่องมือทดสอบ (Axe, Lighthouse ฯลฯ)

1,138
6

ฟีเจอร์โฟน

1,051
7

เครื่องอ่านหน้าจอ

874
8

Print

450
9

PDF Export

289
10

เครื่องจำลองการมองเห็นที่บกพร่อง (ตาบอดสี ฯลฯ)

-1
249
0%
20%
40%
60%
80%
100%
% ของผู้ตอบคำถาม
💡
การแชร์ผลการสำรวจนี้บน Twitter, Facebook หรือทางอีเมลพิสูจน์ได้ในเชิงวิทยาศาสตร์ว่าสามารถปรับปรุงประสิทธิภาพการเขียนโค้ดของคุณได้สูงถึง 15%

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.

What kind of project do you usually use CSS for?
Multiple
0%
20%
40%
60%
80%
100%
1

Web apps

3,286
2

Blogs or other text-heavy sites

1,992
3

Marketing sites & landing pages

1,772
4

Design systems

1,569
5

Desktop apps

1,014
6

Mobile apps

872
7

Emails

697
8

PDF documents

392
9

CSS art & illustrations

-1
365
10

Printed documents

-1
300
11

E-Commerce sites

-1
12

คำตอบอื่นๆ

-1
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.

Are there any existing CSS features that you have difficulties using (or avoid altogether) because of lack of support, or differences between browsers?
แบบอิสระ
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!

What features do you feel are currently missing from CSS altogether?
แบบอิสระ
Multiple
0%
20%
40%
60%
80%
100%
1

Mixins

2

Masonry Layout

+1
3

Conditional Logic

-1
4

+1
5

For Loops

+3
6

Better Animations

+1
7

Form Elements Styling

+8
8

Parent Selector

-4
9

Scoping

10

+6
0%
20%
40%
60%
80%
100%
% ของผู้ตอบคำถาม

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.

Any other pain points related to writing 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.

What are your favorite new CSS features that you started using this year?
แบบอิสระ
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

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%
% ของผู้ตอบคำถาม

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%
% ของผู้ตอบคำถาม

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

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

How happy are you with the general state of web technologies?
1
2
3
4
5
2020
2021
2022
2023
2024
2025
1
2
3
4
5
ค่าเฉลี่ย

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.

How happy are you with the general state of CSS?
1
2
3
4
5
2020
2021
2022
2023
2024
2025
1
2
3
4
5
ค่าเฉลี่ย

แหล่งข้อมูลที่แนะนำ

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!
ขอบคุณพันธมิตรของเราที่สนับสนุนเรา! เรียนรู้เพิ่มเติม