Of course, if you change the default CSS now that 30 years of HTML have been written to rely on these defaults, almost every website will break.
Of course, if you change the default CSS now that 30 years of HTML have been written to rely on these defaults, almost every website will break.
I personally just don't see the point. There are a lot of bare bone frameworks around and if you're doing a static website (which would likely be the only type to benefit from that)... The <10 kilobytes gzipped css won't matter for the most part.
Browsers used to default to adding margin/padding automatically to documents (Quirks Mode), but modern html includes a doctype to use "Standards Mode" which is more sane.
At the same time it would be nice to default to sans-serif typeface and line-height around 1.5 but it starts getting arbitrary very quickly and it's nice to build on something that doesn't change over time.
IMHO it's a fairly big miss that default styling is bad, we're missing basic controls like drag & drop, and there's no native layouts like heros or hamburger menus and so on. A lot of cumulative effort has gone into reimplementing these things thousands of times.
> 30 years of HTML
holy fucking shit
Anyway, the browsers still can update the CSS and add a "reverse read mode" button that changes it back.
*, *:before, *:after {
all: unset;
display: revert;
box-sizing: border-box;
}