CSS Ecosystem In the Spotlight
Written by Janet Swift   
Wednesday, 06 November 2024

The 2024 edition of the State of CSS has been posted, revealing that the latest features of the language not only do away with extra tooling, but even start taking on tasks that previously required complex JavaScript workarounds.

Although this the first time we have reported on it, this survey was instigated in 2019 and this is its sixth edition. This time around it reached 9,704 developers around the world with USA (17%) and Germany (9%) being the largest demographics.

The peak age group for respondents was 30-39 with 42% and in terms of experience 46% said they'd been using it for between 5 and 14 years. 2% said they had used it for over 30 years and so must have been doing so ever since it was proposed in 1994 by Håkon Wium Lie, three years after HTML was invented in 1991 by Tim Berners-Lee. 

CSS exp

Asked what they used CSS for, unsurprisingly the vast majority, 85%, chose web apps, with blogs or other text heavy sites coming second (48%) closely followed by marketing sites & landing pages (45%):

CSS Usage

According to Sacha Greif, the co-creator and maintainer of this survey and of the longer established State of JavaScript which we've reported on since 2017 CSS has reached an important phase in its evolution. In the introduction to  The State of CSS 2024 he writes:

Let me make a prediction: we'll look back at 2024 as the turning point between “CSS Classic” and “New CSS”.

CSS Classic is how most of us have been writing CSS for years: using a limited set of features, and compensating for the language's limitations using outside tools such as libraries, pre- and post-processors, and strict methodologies.

New CSS on the other hand is an approach that embraces Subgrid, :has(), variables, container queries, and the many new and exciting CSS features introduced in recent years to not only do away with extra tooling, but even start taking on tasks that previously required complex JavaScript workarounds.

In the Features section of the report he notes that, due to the record rate at which CSS is adding new features, this year's survey asked question about 50 of them.

For each feature respondents were asked about their Experience of them with three options, Used it; Heard of it but haven't used it; Never heard of it. In the chart below these are shown in dark turquoise, light turquoise and grey respectively.

The chart is sorted by sentiment as follows:

  • Positive (thin green lower bar): Respondents who are interested in learning more about a technology; or are willing to use it again.
  • Neutral (transparent lower bar): Respondents who did not indicate any sentiment about a technology.
  • Negative (red lower bar): Respondents who are not interested in learning more about a technology; or have used it and had a negative experience.

CSS-Features

Filter Effects (blur()contrast(), etc.) were the unexpected most-used CSS feature of 2024, with 75.4% of respondents having used them; with the :has() selector a close second with 72.8%. When ranking for sentiment on the other hand, Subgrid turned out to be the most loved feature, with 51.5% of respondents willing to use it again. The least-used feature? None other than hanging-punctuation, with 84.7% of respondents never having even heard about it!

For the other features refer to the report. Helpfully when you click on a feature name an information  panel opens with a code snippet to show it in use, links to MDN and CanIUse and information from Baseline about when it was introduced and support by the four main browsers.

For even more help the survey allowed you save items you want to learn more about after the survey is complete to a Reading List and the report notes:

it's no coincidence that the least-known-about feature, hanging-punctuation, also tops our Reading List rankings as the item developers saved the most!

In fact 1,712 respondents wanted to know more about this feature.

Like the JavaScript survey, questions were asked about which Libraries and Tools respondents use and for the Frameworks it was Tailwind CSS that was ahead other, more traditional, competitors:

CSS frameworks

With regard to browsers, Chrome dominates, but it's nice to see Firefox used by over half of respondents:

browsers

The report notes:

While the big four browsers dominate this chart, Arc is slowly creeping up the browser rankings, going from 7.8% to 12% usage year over year.

The browser names are links, so if Arc is new to you you can go directly to its website to learn about it and download it. 

Like its JavaScript and HTML counterparts this is a well-designed and well-presented survey. There's also a State of React 2024 survey which is now open so if you use React as part of your job, as a student, or just for fun, check it out and join in to make you opinions count.

State_of_CSS_sq.jpg

More Information

The State of CSS 2024 

Related Articles 

The Ongoing State Of JavaScript

JavaScript Ecosystem Under Scrutiny (2017)

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

 

Banner


52nd Mersenne Prime Found
27/10/2024

It has been nearly six years since the last Mersenne prime was discovered. Now, at last, we have Mersenne prime number 52 and it has 41,024,320 digits!



Check Your APIs With Zuplo's Rate My OpenAPI
15/10/2024

Zuplo has launched a new suite of tools that rates the quality of your API, based on its OpenAPI specification. We put it through its paces and find it useful.


More News

espbook

 

Comments




or email your comment to: comments@i-programmer.info

Last Updated ( Wednesday, 06 November 2024 )