3 ms·
There’s two interpretations of this that are possible, one of which is very dangerous: When making styles for dynamic content, CSS should accommodate a decent
by haburka 3y ago
There’s two interpretations of this that are possible, one of which is very dangerous:
When making styles for dynamic content, CSS should accommodate a decent variety of possible text lengths and image sizes.
This is obviously a good thing.
The improper interpretation is to write CSS so it’s future proof. Don’t do this - you don’t know what future will happen. Solve the problem you have today, cleanly. If someone else comes along and has to edit your CSS and sees all of this extra rules for a problem that doesn’t exist, they’re going to have a hard time knowing what they can and can not change. In general CSS test coverage is especially poor, and so it’s much easier to edit if all CSS is useful.