Gå til innhold

Funksjoner

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.

All Features

: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!

Category:

Baseline Status:

Gruppér etter:

Sorter etter:

1
Andre funksjoner
83.7%
12.3%
3.8%
3,822
2
Layout
81.3%
12.3%
5.9%
4,244
3
Andre funksjoner
70.6%
23.8%
5.1%
3,820
4
Interactions
68.2%
18.3%
12.7%
4,208
5
Layout
59.8%
24.7%
15%
4,240

Erfaring

  • Brukt det: Respondents who have used an item.
  • Hørt om det: Respondents who have heard about an item, but haven't used it.
  • Aldri hørt om det: Respondents who have never heard about an item.

Oppfatning

  • Positiv: Respondenter som er interessert i å lære mer om en teknologi; eller er villige til å bruke den igjen.
  • Nøytral: Respondenter som hadde en nøytral oppfatning av en teknologi.
  • Negativ: Respondenter som ikke er interessert i å lære mer om en teknologi; eller har brukt den og hatt en negativ opplevelse.
22%
Year-over-year percentage increase in respondents who had heard about sibling-count().

Features Over Time

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.

Bruk:

Proportion of respondents having used an item

Filters:

0%
20%
40%
60%
80%
100%
2024
2025
2026
0%
20%
40%
60%
80%
100%
:has()
aspect-ratio
CSS Nesting
scroll-behavior
Small, Large, and Dynamic Viewport Units
CSS Logical Properties
@supports
@container size queries
:where()
color-scheme

Lestelisten

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%
% besvarelser på spørsmål
Hvor mange ganger hvert element ble lagt til en respondentens leseliste, funksjoner som lar folk lære mer om spesifikke emner mens de tar undersøkelsen.

Anbefalte ressurser

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.
Takk til våre partnere for deres bidrag! Lær mer.