* {
box-sizing: border-box;

Doesn’t apply it to ::before and ::after pseudoelements. You have to specifically declare it again for those. e.g.,

.someClass::before {
box-sizing: border-box;

· · Web · 3 · 4 · 7

*, *::before, *::after {...}
should work, right?

@aral standard rule in all of my stylesheets: *, *::before, *::after { box-sizing: border-box; }

Sign in to participate in the conversation
Aral’s Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!