Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
BrainVirus
on Sept 25, 2022
|
parent
|
context
|
favorite
| on:
58 bytes of CSS to look great nearly everywhere
The modern approach is to do a universal rest:
*, *:before, *:after { all: unset; display: revert; box-sizing: border-box; }
marginalia_nu
on Sept 25, 2022
[–]
Would 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
on Sept 26, 2022
|
parent
[–]
As 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).
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: