3 ms·
This could have worked magic when we used to develop and design many embeddable widgets—the days of `!important` at the end of each line. Today, someone can be
by Brajeshwar 2y ago
This could have worked magic when we used to develop and design many embeddable widgets—the days of `!important` at the end of each line.
Today, someone can become pretty good with CSS without ever considering how the Box Model will impact a container/wrapper.
- jwarren 2y agoIt won't override global scope, it's just a hint the layout engine that your container's paint and/or size won't change, and thus it can optimise it's performance. Wholly agree with your second point, it's something I see from a lot of junior devs. They just reach straight for flex/grid, and tbh I don't blame them. They are more predictable layout algorithms that are largely unshackled from legacy layout decisions.