CSS initial doesn’t do what you think it does

Another great video by Kevin Powell on one of those things in CSS that many may have heard of, but most likely don’t understand entirely (I know I didn’t for a very long time ?). We often think initial sets something back to how it started, but it actually does a lot more than that. …

Another great video by Kevin Powell on one of those things in CSS that many may have heard of, but most likely don’t understand entirely (I know I didn’t for a very long time ?).

We often think initial sets something back to how it started, but it actually does a lot more than that. Often, we’re looking for unset or revert instead.

The gist of the video is written down in this Twitter thread:


Print Share Comment Cite Upload Translate
APA
Bramus! | Sciencx (2024-03-29T05:48:28+00:00) » CSS initial doesn’t do what you think it does. Retrieved from https://www.scien.cx/2021/09/27/css-initial-doesnt-do-what-you-think-it-does/.
MLA
" » CSS initial doesn’t do what you think it does." Bramus! | Sciencx - Monday September 27, 2021, https://www.scien.cx/2021/09/27/css-initial-doesnt-do-what-you-think-it-does/
HARVARD
Bramus! | Sciencx Monday September 27, 2021 » CSS initial doesn’t do what you think it does., viewed 2024-03-29T05:48:28+00:00,<https://www.scien.cx/2021/09/27/css-initial-doesnt-do-what-you-think-it-does/>
VANCOUVER
Bramus! | Sciencx - » CSS initial doesn’t do what you think it does. [Internet]. [Accessed 2024-03-29T05:48:28+00:00]. Available from: https://www.scien.cx/2021/09/27/css-initial-doesnt-do-what-you-think-it-does/
CHICAGO
" » CSS initial doesn’t do what you think it does." Bramus! | Sciencx - Accessed 2024-03-29T05:48:28+00:00. https://www.scien.cx/2021/09/27/css-initial-doesnt-do-what-you-think-it-does/
IEEE
" » CSS initial doesn’t do what you think it does." Bramus! | Sciencx [Online]. Available: https://www.scien.cx/2021/09/27/css-initial-doesnt-do-what-you-think-it-does/. [Accessed: 2024-03-29T05:48:28+00:00]
rf:citation
» CSS initial doesn’t do what you think it does | Bramus! | Sciencx | https://www.scien.cx/2021/09/27/css-initial-doesnt-do-what-you-think-it-does/ | 2024-03-29T05:48:28+00:00
https://github.com/addpipe/simple-recorderjs-demo