←back to thread

197 points OuterVale | 2 comments | | HN request time: 0.394s | source
Show context
eviks ◴[] No.46229213[source]
> That should be corrected if anyone invents a time machine. :P

Why can't this be dealt with with CSS versioning/features where you can opt into your current-color and a lot of more substantive style behavior while leaving currentColor functional?

replies(1): >>46230890 #
1. Timwi ◴[] No.46230890[source]
A lot of the behaviors should just have a toggle to turn them off. For example, there are many situations where margin collapsing is in the way and I keep wondering why there isn't simply a `margin-collapse: none`. It would also be nice to have something like `default-styles: none` that will remove all the default styling for h1/h2/etc. and em/strong/cite/etc. so I don't have to deal with browsers having differing defaults.
replies(1): >>46233614 #
2. shiomiru ◴[] No.46233614[source]
> It would also be nice to have something like `default-styles: none` so I don't have to deal with browsers having differing defaults.

This already exists:

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