Traps to Developers
A summarization of some traps to developers. There traps are unintuitive things that are easily misunderstood and cause bugs.
Summarization of traps​
HTML and CSS​
min-width is auto by default. min-width: auto makes min width determined by content. It has higher priority than many other CSS attributes including flex-shrink, overflow: hidden, width: 0 and max-width: 100%. It's recommended to set min-width: 0.
Horizontal and vertical are different in CSS:
Normally width: auto tries fill available ...
Read more at qouteall.github.io