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

The modern approach is to do a universal rest:

  *, *:before, *:after {
    all: unset;
    display: revert;
    box-sizing: border-box;
  }


Would that actually work as a safeguard against this? What you're reverting and unsetting to is the very defaults we're talking about changing.


As I understand it, it won't protect you. What will protect is actually setting the value (and most sites do that, at least for those few commonly changed ones with bad defaults).




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

Search: