Here's the new 2025 reset.css:
h1 { margin-block: 0.67em; font-size: 2em; }
Thank you for adopting this on all your sites!
GitHub
Remove UA style for h1-h6 in section (et. al.) and hgroup · Issue #7867 · whatwg/htmlIf/when #7829 is merged, the following UA style doesn't make sense. Can it be removed? In the following CSS block, x is shorthand for the following selector: :is(article, aside, nav, section) @name...
The backstory here is
- h1 was specified to have automatic heading level based on the number of ancestor sections (or aside, article, nav).
- The default rendering was specified to (roughly) match, such that <section><h1> would have the same font-size and margin as h2
- cont...