A More Modern CSS Reset (2019)
piccalil.li
piccalil.li
It's probably inefficient due to the use of the joker selector, but in modern CSS, I believe an actual reset would be as simple as:
* { all: unset; }
head, style, script { display: none; }Stuff affected by CSS resets rarely comes up when I'm sticking to the standard set of UI components for the project, and when it does, I need to do just as much debugging with the CSS reset as I would have to do without a reset.
For me, especially when managing non-typographic layout, ensuring that all browser-default margins and padding are gone, as well as a consistent font size and line height for every element are important.
I also think that the `dvh` unit is really helpful if you’re going to be working with full-screen layouts that target any iOS browser.
The goal of this project is to make itself obsolete.