News for hackers. Stuff that matters.
Re:What feature would improve the web? by paulirish on Friday October 21, 2011 @02:07PM (#3140915)
so the `initial` value can functionally replicate this. https://developer.mozilla.org/en/CSS/initial

You just apply that to each property you want to reset. You might think that applying it to EVERY property is a nightmare but in many cases you wouldnt need to. Disqus, for example, operates in your own CSS so it can look native to the page. They only have to override a few properties to assure their layout is good.

So yeah, while `inherit:none` would be awesome, I think `prop: initial` gets us most of the way there.

Also related: https://github.com/premasagar/cleanslate

Re:What feature would improve the web? by exogen on Friday October 21, 2011 @03:51PM (#3141365)
Hmm, you'd still have to ensure that your selector has higher specificity, right? That itself can be hard unless you're okay with adding !important to everything. I was thinking that inherit: none would somehow address this, but the rules would probably be pretty complicated.