Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I still believe there should be a `unset user agent styles` that could be set somewhere in the document. Why make devs ship reset CSS if they are going to be undoing all your pretty janky default styles anyway? Here's a list of arguments and refutations I know this suggestion is going to get:

> But a browser should have a minimal set of default styles!

They always have done. My suggestion does not affect that.

> Websites shouldn't be able to turn off default stylings!

Many already literally are, either through CSS resets or simply doing h1 { color: red }.

> What's the point!?

There's a dozen or so popular CSS resets that literally overrides all the browser default styles. It would save time and data to not ship the same styles over and over again.

> It's impossible!

No, no it is not. Simply inform the browser to apply no styling at all. This would be a straightforward feature for browser implementors to create.



What about

     all: unset;


That works.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: