跳到内容

特性

It's no secret that CSS is adding new features at a record rate – which is why we ended up asking about no less than 50 of them this year!
46
Total number of features in this year's shortened survey, compared to 63 in 2025.

:has(), aspect-ratio, and CSS Nesting are both the most-used and most-loved features mentioned in the survey.

Meanwhile, line-clamp once again got a lot of comments, most of them asking for a non-prefixed version of the feature. CSS Nesting also received its share of feedback, but unlike line-clamp almost all of it was positive.

The least-used features were Gap decorations and if(), no doubt due to limited browser support.

Speaking of browser support, one way to predict what CSS has in store for us is to look at the most-loved features with a “Limited Availability” Baseline status. In this case, both calc-size() and Anchor Positioning are being awaited with a lot of anticipation!

类别:

基准状态:

通过...分组:

根据此项排序:

1
其他特性
83.7%
12.3%
3.8%
3,822
2
布局
81.3%
12.3%
5.9%
4,244
3
其他特性
70.6%
23.8%
5.1%
3,820
4
交互
68.2%
18.3%
12.7%
4,208
5
布局
59.8%
24.7%
15%
4,240

经验

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

情绪(态度)

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

随时间变化的特性

The fact that even with limited browser support, Anchor Positioning is still the item with the single largest year-over-year usage increase (+15%) goes to show how much developers have been waiting for this feature.

Looking a awareness, the feature boasting the largest increase (+23%) is sibling-count, which will hopefully soon be supported in all major browsers.

It's also always interesting to look at items with low appreciation. For example, contrast-color()'s -13% ratio means that positivty among respondents who have actually used the feature is that much lower than the same metric among those that have merely heard about it.

使用度:

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

筛选:

0%
20%
40%
60%
80%
100%
2024
2025
2026
0%
20%
40%
60%
80%
100%
:has()
aspect-ratio
CSS 嵌套
scroll-behavior
小型、大型和动态视口单位
CSS Logical Properties
@supports
@container size queries
:where()
color-scheme
The Reading List lets respondents save items to learn about them after completing the survey. Gap decorations was saved by 55% of all respondents, which makes sense as it promises to solve a common pain point that currently requires a lot of cumbersome workarounds.
0%
20%
40%
60%
80%
100%
01
1,823
02
1,756
03
1,691
04
1,653
05
+2
1,618
06
+2
1,591
07
1,532
08
-4
1,513
09
1,505
10
+6
1,469
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.
感谢合作伙伴对我们的支持! 了解更多。