Gå til innhold

Funksjoner

Syntaks, nøkkelord og andre språkfunksjoner.
80%
Percentage of respondents who have used `:has()`.

All Features

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:

Gruppér etter:

Sorter etter:

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

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

Bruk:

Proportion of respondents having used an item

Presets:

Sections:

0%
20%
40%
60%
80%
100%
2024
2025
0%
20%
40%
60%
80%
100%
:has()
aspect-ratio
Intrinsinc Sizing Keywords
CSS Comparison Functions
scroll-behavior
backdrop-filter
CSS Nesting
@supports
text-wrap: balance
Small, Large, and Dynamic Viewport Units
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?
Fritekstformat
Multiple
0%
20%
40%
60%
80%
100%
1

2

Flexbox issues

3

Browser Support

4

Height issues

5

Overflow issues

0%
20%
40%
60%
80%
100%
% besvarelser på spørsmål

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?
Fritekstformat
Multiple
0%
20%
40%
60%
80%
100%
1

Shape drawing issues

2

SVG issues

3

Browser Support

4

Gradient issues

5

0%
20%
40%
60%
80%
100%
% besvarelser på spørsmål

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?
Fritekstformat
Multiple
0%
20%
40%
60%
80%
100%
1

Theming issues

2

Contrast issues

3

Browser Support

4

5

0%
20%
40%
60%
80%
100%
% besvarelser på spørsmål

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?
Fritekstformat
Multiple
0%
20%
40%
60%
80%
100%
1

Browser Support

2

Animations

3

Scrolling issues

4

5

Accessibility

0%
20%
40%
60%
80%
100%
% besvarelser på spørsmål
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?
Fritekstformat
Multiple
0%
20%
40%
60%
80%
100%
1

line-height issues

2

Browser Support

3

4

5

Font sizing issues

6

Responsive design

7

Andre svar

Svar som matcher “Andre svar” 255
0%
20%
40%
60%
80%
100%
% besvarelser på spørsmål

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?
Fritekstformat
Multiple
0%
20%
40%
60%
80%
100%
1

2

Handling units

3

Lack of random() function

4

Andre svar

Svar som matcher “Andre svar” 151
0%
20%
40%
60%
80%
100%
% besvarelser på spørsmål

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?
Fritekstformat
Multiple
0%
20%
40%
60%
80%
100%
1

Browser Support

2

3

4

Excessive complexity

5

6

Andre svar

Svar som matcher “Andre svar” 182
0%
20%
40%
60%
80%
100%
% besvarelser på spørsmål
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”

Lestelisten

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