4 ms·
The modern approach is to do a universal rest: *, *:before, *:after { all: unset; display: revert; box-sizing: border-box; }
by BrainVirus 4y ago
The modern approach is to do a universal rest:
*, *:before, *:after {
all: unset;
display: revert;
box-sizing: border-box;
}
- marginalia_nu 4y agoWould that actually work as a safeguard against this? What you're reverting and unsetting to is the very defaults we're talking about changing.
- marcosdumay 4y agoAs I understand it, it won't protect you. What will protect is actually setting the value (and most sites do that, at least for those few commonly changed ones with bad defaults).