跳到内容

特性

语法,关键字,和其他语言特性。
80%
Percentage of respondents who have used `:has()`.

Of all the features included in the survey, :has() is both the most-used and the most-loved one. Also worth pointing out: Subgrid gets second place in the most-loved rankings, while aspect-ratio is #2 in usage and #3 in sentiment.

After Subgrid, line-clamp got the most comments, many of them from respondents with a negative opinion of the feature.

The least-used features were sibling-count and sibling-index, which makes sense since their browser support is still very new and limited. And the least-loved feature overall was Trigonometric Functions… no doubt due to the “trigonometry” part!

Finally, be sure to filter by “Widely Available” Baseline Status to see what features are available to use right now!

Category:

Baseline Status:

通过...分组:

根据此项排序:

1

80.4%
15%
4.3%
4,085
2

76.2%
14.7%
8.6%
5,375
3

75%
15.1%
9.4%
4,784
4

69.3%
20%
10.1%
4,134
5

67.9%
18.5%
13%
4,287

经验

  • <span aria-hidden="true">🤓</span> 用过: 使用过此项目的受访者。
  • <span aria-hidden="true">👀</span> 有听说过: 听说过此项目,但没有使用过此项目的受访者。
  • <span aria-hidden="true">🤷</span> 没听说过: 从未听说过此项目的受访者。

情绪(态度)

  • 积极: 有兴趣了解此技术,或者愿意再次使用它的受访者
  • 中立: 未对此技术发表看法的受访者
  • 消极: 对此技术不感兴趣,或者使用此技术有糟糕体验的受访者
23%
Year-over-year percentage increase in respondents who had heard about `light-dark()`.

Features Over Time

Looking at trends over time and in context paints quite an interesting picture. The feature with the single largest year-over-year usage increase is text-wrap: pretty, while the one with the largest awareness increase is light-dark().

Color functions also stand out for placing towards the bottom of the chart in terms of usage, which might mean they haven't yet found their audience.

Finally, the Appreciation tab lets us look at the difference in positivity between respondents interested in a feature and those who have actually used it. Anchor positioning shows a -12% drop-off, which could mean that the API isn't as user-friendly as people expect.

使用度:

使用过某个项目的受访者比例

Presets:

Sections:

0%
20%
40%
60%
80%
100%
2024
2025
0%
20%
40%
60%
80%
100%
:has()
aspect-ratio
尺寸局限
CSS 比较函数
scroll-behavior
backdrop-filter
CSS 嵌套
@supports
text-wrap: balance
小型、大型和动态视口单位
We asked members of the CSS community to share their “pick of the year”

My 2025 Pick: linear() Easing Generator

Description: The linear() timing function has quickly become one of my favourite modern features, and this lovely tool makes it easy to quickly generate CSS springs from JS logic!
We asked members of the CSS community to share their “pick of the year”

Josh W. Comeau

Indie developer and educator

Layout Pain Points

While Grid is undeniably powerful, that power also comes with a steep learning curve that can turn using this fairly complex feature into a real pain point.

Further down the rankings, dealing with height, overflow, positioning, and alignment still all prove to be common issues for CSS developers.

What are your top CSS pain points related to layout?
(自由提问)
Multiple
0%
20%
40%
60%
80%
100%
1

2

Flexbox issues

3

浏览器支持

4

Height issues

5

Overflow issues

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

Shapes & Graphics Pain Points

Now that we're fairly comfortable with rectangles, we've started looking towards the wider world of triangles, circles, and polygons. Sadly drawing these complex shapes remains tough with CSS only.

Which is why many of us resort to SVG–which is not without its own issues.

What are your top CSS pain points related to shapes & graphics?
(自由提问)
Multiple
0%
20%
40%
60%
80%
100%
1

Shape drawing issues

2

SVG issues

3

浏览器支持

4

Gradient issues

5

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

Colors Pain Points

Many respondents would like CSS to go beyond the light/dark dichotomy, and actually provide more tools for managing full-fledged theming, as well as do a better job ensuring proper contrast when picking colors.

And while new color spaces such as oklch() are certainly powerful, they also come with their own range of issues.

What are your top CSS pain points related to handling colors?
(自由提问)
Multiple
0%
20%
40%
60%
80%
100%
1

Theming issues

2

Contrast issues

3

浏览器支持

4

5

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

Interactions Pain Points

While many of us are waiting for better browser support for scroll-driven animations, others are pointing out potential accessibility issues with new interaction patterns such as carousels.

Another common pain point was the difficulty of “animating to auto”, something that is thankfully now possible!

What are your top CSS pain points related to interactions?
(自由提问)
Multiple
0%
20%
40%
60%
80%
100%
1

浏览器支持

2

Animations

3

Scrolling issues

4

5

无障碍

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

My 2025 Pick: text-wrap: balance;

I can’t remember the last time a new CSS property was introduced that I could just add to any stylesheet new and old. It’s a little magic one liner that makes your titles much nicer with zero downsides. Add it to your css resets!
We asked members of the CSS community to share their “pick of the year”

Typography Pain Points

Controlling vertical text alignment (a.k.a. leading) in the browser has been an issue for as long as I can remember. Thankfully text-box-edge and text-box-trim promise to give us more granular tools to properly set type online.

What are your top CSS pain points related to typography?
(自由提问)
Multiple
0%
20%
40%
60%
80%
100%
1

line-height issues

2

浏览器支持

3

4

5

Font sizing issues

6

Responsive design

7

其他答案

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

Math Features Pain Points

Many respondents has gripes about calc(), especially when it comes to handling units inside calculations.

What are your top CSS pain points related to math features?
(自由提问)
Multiple
0%
20%
40%
60%
80%
100%
1

2

Handling units

3

Lack of random() function

4

其他答案

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

Other Features Pain Points

No surprise here, but Browser Support remains the top pain point for the CSS features mentioned in this section.

What are your top CSS pain points related to the features mentioned above?
(自由提问)
Multiple
0%
20%
40%
60%
80%
100%
1

浏览器支持

2

3

4

Excessive complexity

5

6

其他答案

匹配“其他答案”的答案 182
0%
20%
40%
60%
80%
100%
受访者百分比
We asked members of the CSS community to share their “pick of the year”

My 2025 Pick: Font Clamp Generators

My pick of the year is all the font clamp generators that people have been creating and sharing. What’s great about them is that they are all so different so it accommodates different learning styles. Especially, if reading documentation alone doesn’t help understanding how something works.
We asked members of the CSS community to share their “pick of the year”

Little-known ::target-text (only 82% of respondents had never heard of it) tops the Reading List rankings of the features respondents were most curious about.

0%
20%
40%
60%
80%
100%
1

881
2

868
3

810
4

-2
809
5

795
6

-5
789
7

-4
783
8

760
9

757
10

753
0%
20%
40%
60%
80%
100%
受访者百分比
每个项目被添加到受访者阅读列表的次数,该功能可让受访者在参与调查时了解更多有关特定主题的信息。
Ultimate CSS Grid & Layout Techniques, v3
Jen Kramer
AnnieCannons

Ultimate CSS Grid & Layout Techniques, v3

CSS Grid is the most important tool in a modern web developer's toolkit for laying out web pages. With its two-dimensional structure, precise positioning, and overlapping elements, you’ll learn to achieve complex layouts with minimal code.
CSS Animations and Transitions
David Khourshid
Microsoft

CSS Animations and Transitions

Learn CSS animation basics and transition to advanced concepts like orchestration and choreography.
感谢合作伙伴对我们的支持! 了解更多。