The Anti-Reset (to Reset to User Agent Styles)
Post from August 17, 2020 (❠December 14, 2021), filed under Web Development (feed).
I advise against resets. You donât need them. (We donât need them.) I think theyâre dying. (The reset detection extension barely registers anymore, though that also has other reasons.)
I advise against resets even though, vanity note, Iâve been one of the ones to come up with and promote them. That was in 2004, but Iâve never gone beyond that âuniversal reset.â
Whatâs the opposite of that universal reset? Of all resets? The anti-reset. You can write it yourself. It looks something like this, with force but not without flaws (I was impatient and am not sure I included just the needed pseudo-classes, and then thereâs incomplete support at least for revert
):
*,
::after,
::before,
::first-letter,
::first-line,
::selection,
:active,
:checked,
:disabled,
:enabled,
:focus,
:hover,
:indeterminate,
:target,
:visited {
all: revert !important;
}
Hereâs the gist. Hereâs the bookmarklet. Hereâs a test page. Firefox, yes, may offer best support. Chrome does not.
I advise against anti-resets đ That makes no sense now. But the reset of a reset is not no reset. Itâs two resets. But thatâs not the same as 0 Ă 0, itâs more like 1 + 1, when really you want 0, because you already have 1 (style sheet), and no more, old school, and so you donât want 1 + 1 + 1 but 1 + 0, or 1 + 0 + 0, and that is just getting a bit very complicated now.
I advise against resets. I advise against anti-resets. You donât need them. (Unless you do. Do whatever you deem appropriate.) See you around.
About Me

Iâm Jens, and Iâm an engineering lead and author. Iâve worked as a technical lead for Google, Iâm close to W3C and WHATWG, and I write and review books for OâReilly. I love trying things, sometimes including philosophy, art, and adventure. Here on meiert.com I share some of my views and experiences.
If you have a question or suggestion about what I write, please leave a comment (if available) or a message. Thank you!
Read More
Maybe this is interesting to you, too:
- Next: Website Optimization Measures, Part X
- Previous: Caring About Comments
- More under Web Development, or from 2020
- Most popular posts
Looking for a way to comment? Comments have been disabled, unfortunately.

Get a good look at web development? Try The Web Development Glossary (2020). With explanations and definitions for literally thousands of terms from Web Development and related fields, building on Wikipedia as well as the MDN Web Docs. Available at Apple Books, Kobo, Google Play Books, and Leanpub.