Sometimes I see this kind of code in the very beginning of the document:
html {
box-sizing: border-box;
}
*, *:before, *:after {
box-sizing: inherit;
}
I don't understand the purpose of :before and :after pseudo-elements in it. Why isn't the
*{
box-sizing: border-box;
}
just enough?
Thanks :)