I was wondering, is it possible to restore all styles to default?
HTML
<div class="test">
<h1>Should be bold</h1>
</div>
CSS
* {
border: 0;
font: inherit;
font-size: 100%;
margin: 0;
padding: 0;
vertical-align: baseline;
}
In this example I'm expecting that solution make h-tag bold, with default font-size and margins(problem bigger than just h-tag, i wanna all tags inside div to be restored to defaults :) ).
I've tried both all: initial
and all: unset
, but these approaches just reset styles, when I want to restore them to defaults.
Thank you in advance!