You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of the guidelines, regarding which properties a parent component can alter and which it cannot, implicitly assumes box-sizing: border-box:
properties related to positioning and dimensions (e.g. position, margin, display, width, float, z-index etc) are OK
In particular, width and margin may be unsafe to alter (or at least have unexpected effects) unless the element has box-sizing: border-box.
I wouldn't recommend anything other than box-sizing: border-box these days, but it's still something that can trip people up, especially if they're not using a global reset/normalize.
The text was updated successfully, but these errors were encountered:
One of the guidelines, regarding which properties a parent component can alter and which it cannot, implicitly assumes
box-sizing: border-box
:In particular,
width
andmargin
may be unsafe to alter (or at least have unexpected effects) unless the element hasbox-sizing: border-box
.I wouldn't recommend anything other than
box-sizing: border-box
these days, but it's still something that can trip people up, especially if they're not using a global reset/normalize.The text was updated successfully, but these errors were encountered: