4 ms·
This is nice but it's not what I would call a "reset". It does make arbitrary choices for the value of some properties. It may be very good as "saner defaults",
by p4bl0 2y ago
This is nice but it's not what I would call a "reset". It does make arbitrary choices for the value of some properties. It may be very good as "saner defaults", but for examples it doesn't even reset headers' font-size, or the margin above headers for example while it does reset the margin under headers (why?).
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; }
- deleted 2y ago[deleted]
- aloisdg 2y agowait head, style and script are not none be default?
- p4bl0 2y agoBy default (meaning the browser's default CSS) they are, but when you set all properties to unset, which is not equivalent to none, even the `display` property is concerned, so their content is displayed as text on the web page just like the content of a p or a div is.
- 9dev 2y agoThey are, until you reset them by setting all: unset. In this case, * applies to script and style too, and all includes display, so you’ll need to revert this right after.