Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> I agree with this, but it would also be a nightmare for people trying to make their own styles. Even the current default styles are a bit annoying for this.

The obvious solution would be a CSS instruction that really reset (like everything to 0, none, etc. — not to default styles) all properties for the selected elements and its children. Something like:

    :root { default-style: none; } /* could be "none" for reset, or "default" to apply the user-agent default style */


Isn't what you want basically

   *, *::before, *::after { all: unset }

?


Ah, yes, I didn't know about the all property! Thanks :).


Doesn't `all: unset` do this already? As in, it even removes all user-agent default styles.


Indeed!




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: