Inherit box-sizing

Let box-sizing be inherited from html:

  1. html {
  2. box-sizing: border-box;
  3. }
  4. *,
  5. *::before,
  6. *::after {
  7. box-sizing: inherit;
  8. }

This makes it easier to change box-sizing in plugins or other components that leverage other behavior.

Demo