<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/sources/web/best-of/2022" -->

---
title: Best web.dev posts of 2022 | daily.dev
description: The most upvoted web.dev posts of 2022, curated by the daily.dev community.
canonical: https://daily.dev/sources/web/best-of/2022
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:url: https://daily.dev/sources/web/best-of/2022
og:type: website
og:site_name: daily.dev
og:title: Best web.dev posts of 2022 | daily.dev
og:description: The most upvoted web.dev posts of 2022, curated by the daily.dev community.
og:image: https://media.daily.dev/image/upload/s--VAY5ToZt--/f_auto/v1724209435/public/daily.dev%20-%20open%20graph
---

# Best of web.dev — 2022

1. 1  
[](/posts/state-of-css-2022-kno9wxvcs "State of CSS 2022")  
[![web's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/177a1962a8a945468271068795ff0134)](/sources/[source]/best-of/[year])  
31m read time • May 11, 2022  
### State of CSS 2022  
The year 2022 is set to be one of CSS's greatest years, in both features and cooperative browser feature releases. The goals for 2021, driven by developer feedback via surveys, were to stabilize current features, improve the test suite and increase passing scores of browsers for five features.

+1  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/8b8630c37bee9d46c4fef9d129aa56d7)  
144  
5
2. 2  
[](/posts/css-border-animations-zbkxiwzn9 "CSS border animations")  
[![web's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/177a1962a8a945468271068795ff0134)](/sources/[source]/best-of/[year])  
4m read time • Aug 01, 2022  
### CSS border animations  
There are a few methods available to set a border on an element: border, outline, and box-shadow. Each approach comes with its own advantages and disadvantages, especially when it comes to animating the borders. The main reason to not use a proper CSS border is for animation purposes. The border-image does not follow the border-radius. does not following the border radius.

+4  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/85bde7ab35f169434fb8fa75c06d29c6)  
83  
3
3. 3  
[](/posts/building-an-adaptive-favicon-qhdxdnnc "Building an adaptive favicon")  
[![web's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/177a1962a8a945468271068795ff0134)](/sources/[source]/best-of/[year])  
5m read time • Feb 09, 2022  
### Building an adaptive favicon  
A custom favicon is a great way to polish a web project. Traditionally this has been done with the .ico file type, but recently browsers have allowed use of SVG, a vector format. Using progressive enhancement you can serve well supported .ico favicons, and upgrade to an .svg if available.

+2  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/93571cde4dd4c5c64e9eef2120c0642c)  
71  
3
4. 4  
[](/posts/css-animated-grid-layouts-x3imzwggl "CSS Animated Grid Layouts")  
[![web's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/177a1962a8a945468271068795ff0134)](/sources/[source]/best-of/[year])  
2m read time • Oct 25, 2022  
### CSS Animated Grid Layouts  
The rendering engine will automatically detect the type of the targeted property’s value, and use that information to smoothly transition to the new value. The same applies to CSS animations, where the browser will do value interpolation between keyframes. With the transition property in place, the grid smoothly interpolates between values.

+1  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/156bceaf0e6f5cbb61a1e786c207a26b)  
46
5. 5  
[](/posts/introducing-learn-html-ilordewos "Introducing Learn HTML")  
[![web's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/177a1962a8a945468271068795ff0134)](/sources/[source]/best-of/[year])  
1m read time • Sep 27, 2022  
### Introducing Learn HTML  
Learn HTML is a brand new course written by Estelle Weyl that will take you through all you need to know about HTML today. We're landing the first five modules today, the rest will follow in staged launches over the next couple of months.

+2  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/7b0c506abd063ba39262e69b257ec16a)  
34
6. 6  
[](/posts/gov-uk-drops-jquery-from-their-front-end--r95gctfy7 "GOV.UK drops jQuery from their front end.")  
[![web's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/177a1962a8a945468271068795ff0134)](/sources/[source]/best-of/[year])  
2m read time • May 19, 2022  
### GOV.UK drops jQuery from their front end.  
GOV.UK dropped their jQuery dependency from their front end. You'll never guess what happened. Nearly 84% of mobile pages used in 2021 will use jQuery. GOV. UK provides services and information online for The United Kingdom. Don't shortchange your users if the web platform can easily do the job a framework can.

+3  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/ce9e00e5ab24d8e907b568262734b222)  
31  
1
7. 7  
[](/posts/the-large-small-and-dynamic-viewport-units-qr--72i4j "The large, small, and dynamic viewport units")  
[![web's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/177a1962a8a945468271068795ff0134)](/sources/[source]/best-of/[year])  
4m read time • Nov 29, 2022  
### The large, small, and dynamic viewport units  
The large, small, and dynamic viewport units are new CSS units that account for mobile viewports with dynamic toolbars. The units landed in browsers with these additional units = 1% of the size of the viewport’s inline axis. They ship in Chrome 108, joining Safari and Firefox which already have support.

+2  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/d28aa28e9e1aae993e9afb315d7179d5)  
17  
1
8. 8  
[](/posts/speedy-css-tip-animated-gradient-text-ajhh1xwca "Speedy CSS Tip! Animated Gradient Text")  
[![web's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/177a1962a8a945468271068795ff0134)](/sources/[source]/best-of/[year])  
3m read time • Nov 03, 2022  
### Speedy CSS Tip! Animated Gradient Text  
Use the markup for your text to create an animated Gradient Text. Create two custom properties for the colors we're going to use. Apply a linear- gradient to the background using those colors and rotate it by 90 degrees.

+2  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/c1a17381af97d834abb822a605b19dd8)  
15  
1
9. 9  
[](/posts/optimize-long-tasks-zpg6qjhno "Optimize long tasks")  
[![web's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/177a1962a8a945468271068795ff0134)](/sources/[source]/best-of/[year])  
13m read time • Sep 30, 2022  
### Optimize long tasks  
Tasks involve work such as rendering, parsing HTML and CSS, running the JavaScript code you write. The main thread is where most tasks are run in the browser. When tasks stretch beyond a certain point, they're classified as long tasks. Using setTimeout here is problematic, because the ergonomics of it make it difficult to implement.

+1  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/d841e7b5e1ad61ef377ae9c82706680a)  
11

[See all web.dev archives](/sources/web/best-of)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@graph":[{"@type":"CollectionPage","@id":"https://daily.dev/sources/web/best-of/2022#page","url":"https://daily.dev/sources/web/best-of/2022","name":"Best web.dev Posts of 2022","description":"The most upvoted web.dev posts of 2022, curated by the daily.dev community.","isPartOf":{"@type":"WebSite","url":"https://daily.dev"}},{"@type":"ItemList","@id":"https://daily.dev/sources/web/best-of/2022#items","numberOfItems":9,"itemListElement":[{"@type":"ListItem","position":1,"url":"https://daily.dev/posts/state-of-css-2022-kno9wxvcs","name":"State of CSS 2022"},{"@type":"ListItem","position":2,"url":"https://daily.dev/posts/css-border-animations-zbkxiwzn9","name":"CSS border animations"},{"@type":"ListItem","position":3,"url":"https://daily.dev/posts/building-an-adaptive-favicon-qhdxdnnc","name":"Building an adaptive favicon"},{"@type":"ListItem","position":4,"url":"https://daily.dev/posts/css-animated-grid-layouts-x3imzwggl","name":"CSS Animated Grid Layouts"},{"@type":"ListItem","position":5,"url":"https://daily.dev/posts/introducing-learn-html-ilordewos","name":"Introducing Learn HTML"},{"@type":"ListItem","position":6,"url":"https://daily.dev/posts/gov-uk-drops-jquery-from-their-front-end--r95gctfy7","name":"GOV.UK drops jQuery from their front end."},{"@type":"ListItem","position":7,"url":"https://daily.dev/posts/the-large-small-and-dynamic-viewport-units-qr--72i4j","name":"The large, small, and dynamic viewport units"},{"@type":"ListItem","position":8,"url":"https://daily.dev/posts/speedy-css-tip-animated-gradient-text-ajhh1xwca","name":"Speedy CSS Tip! Animated Gradient Text"},{"@type":"ListItem","position":9,"url":"https://daily.dev/posts/optimize-long-tasks-zpg6qjhno","name":"Optimize long tasks"}]},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Sources","item":"https://daily.dev/sources"},{"@type":"ListItem","position":3,"name":"web.dev","item":"https://daily.dev/sources/web"},{"@type":"ListItem","position":4,"name":"Best of","item":"https://daily.dev/sources/web/best-of"},{"@type":"ListItem","position":5,"name":"2022"}]}]}
```

