4 ms·
If the intention had been to comply with laws, why use “!important” as the keyword?
by sfblah 5y ago
If the intention had been to comply with laws, why use “!important” as the keyword?
- akersten 5y agoFor the same reason we call it "accessible entrance" and not "government-mandated alternative door with ramp." Making the phrase more general is just good design.
- bigyikes 5y agoBut nobody is saying that accessible entrances should only be used for disabled persons and nothing else. Here, the author is asserting that there is only one valid use case of !important, and that it shouldn’t be used in the general case. If it shouldn’t be used generally, having a general name is bad design.
- jraph 5y agoIt should have been "!legally-required", or "lawful-font-size:" or the React way, "!enforce--only-use-this-for-legal-font-size-or-you-will-be-fired"
- isitmadeofglass 5y agoLikely because they felt the law is “not important”.