It shouldn't be !important — that reads to engineers as “not important”. We should have picked another way to write this.
Maybe @important. Alternatively @specificity(0, 0, 0) with custom values. And allow it to be applied to both rules and selectors. That would have been cool.
I know it's bad practice to use !important anyway, but a quick way to customize specificity inline is useful for testing.
4 Comments
BleakBluets@lemmy.world · 5 pts · 1y
Maybe
@important. Alternatively@specificity(0, 0, 0)with custom values. And allow it to be applied to both rules and selectors. That would have been cool.I know it's bad practice to use
!importantanyway, but a quick way to customize specificity inline is useful for testing.Rokin@lemm.ee · 1 pts · 1y
Hear, hear.
barrett9h@lemmy.zip · 0 pts · 1y
maybe a reboot is in order, and CSS4 could ditch backwards compatibility?
Rokin@lemm.ee · 1 pts · 1y
That would break the internet.