Skip to content

Suggest specifying font-size and margin-block on h1#37827

Merged
chrisdavidmills merged 5 commits intomdn:mainfrom
zcorpan:patch-5
Jan 29, 2025
Merged

Suggest specifying font-size and margin-block on h1#37827
chrisdavidmills merged 5 commits intomdn:mainfrom
zcorpan:patch-5

Conversation

@zcorpan
Copy link
Copy Markdown
Contributor

@zcorpan zcorpan commented Jan 27, 2025

See whatwg/html#7867

Description

Add a new section to help developers avoid the special h1 in section default styling.

Motivation

We're trying to remove the special default styling in the spec and in Firefox. Devtools will have a warning, but the warning should have a link to help developers know what to do and why. My plan is to link to this new section.

Additional details

https://bugzilla.mozilla.org/show_bug.cgi?id=1937568

Related issues and pull requests

@zcorpan zcorpan requested a review from a team as a code owner January 27, 2025 14:02
@zcorpan zcorpan requested review from chrisdavidmills and removed request for a team January 27, 2025 14:02
@github-actions github-actions Bot added Content:HTML Hypertext Markup Language docs size/s [PR only] 6-50 LoC changed labels Jan 27, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 27, 2025

Preview URLs

External URLs (2)

URL: /en-US/docs/Web/HTML/Element/Heading_Elements
Title: <h1>–<h6>: The HTML Section Heading elements

(comment last updated: 2025-01-29 09:56:16)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Copy link
Copy Markdown
Member

@estelle estelle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

language and link suggestions

Comment thread files/en-us/web/html/element/heading_elements/index.md Outdated
Copy link
Copy Markdown
Contributor

@chrisdavidmills chrisdavidmills left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zcorpan couple more quick comments for you. Thanks for making this update!

Comment thread files/en-us/web/html/element/heading_elements/index.md Outdated
Comment thread files/en-us/web/html/element/heading_elements/index.md Outdated
zcorpan and others added 2 commits January 28, 2025 21:47
Co-authored-by: Chris Mills <chrisdavidmills@gmail.com>
Co-authored-by: Simon Pieters <zcorpan@gmail.com>
Copy link
Copy Markdown
Member

@estelle estelle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you.

Comment thread files/en-us/web/html/element/heading_elements/index.md Outdated
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@chrisdavidmills chrisdavidmills left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM2; thanks @zcorpan!

@chrisdavidmills chrisdavidmills merged commit 28b9521 into mdn:main Jan 29, 2025
zcorpan added a commit to zcorpan/content that referenced this pull request Jan 30, 2025
Josh-Cena pushed a commit that referenced this pull request Jan 30, 2025
@Josh-Cena Josh-Cena mentioned this pull request Jan 30, 2025
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Feb 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Content:HTML Hypertext Markup Language docs size/s [PR only] 6-50 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants