Windows 10 will reach EOS (end of support) on October 14, 2025. For more information, see this article.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

User-Agent Stylesheet

  • 2 பதிலளிப்புகள்
  • 0 இந்த பிரச்னைகள் உள்ளது
  • 25 views
  • Last reply by Paul

In May 2025 all browsers should have removed the default styling for the h1 element when it is nested in a sectioning element (article, aside, nav, section). I went into Firefox Dev Editions user-agent style sheet and noticed that the styling for nested h1 elements is still the same. I'm wondering why that is the case, since I was under the impression that all the major browsers had completed make the necessary adjustments at the end of May 2025.

In May 2025 all browsers should have removed the default styling for the h1 element when it is nested in a sectioning element (article, aside, nav, section). I went into Firefox Dev Editions user-agent style sheet and noticed that the styling for nested h1 elements is still the same. I'm wondering why that is the case, since I was under the impression that all the major browsers had completed make the necessary adjustments at the end of May 2025.

தீர்வு தேர்ந்தெடுக்கப்பட்டது

Hi Paul, the MDN article says this was rolled out to all users in Firefox 140:

https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/Heading_Elements => Browser Compatibility section

During the rollout, the change was controlled by a temporary preference. Can you check your about:config to confirm:

layout.css.h1-in-section-ua-styles.enabled => false

If you check the source of Firefox 140 and Firefox 141 beta, you'll notice the nesting is gated by the value of that preference at:

A change has already been checked in to Nightly to delete the temporary preference and that rules section in Firefox 142: https://bugzilla.mozilla.org/show_bug.cgi?id=1976196

Since you are acquainted with this change, if you notice any problems with the implementation, please file a new bug.

Read this answer in context 👍 0

All Replies (2)

தீர்வு தேர்ந்தெடுக்கப்பட்டது

Hi Paul, the MDN article says this was rolled out to all users in Firefox 140:

https://developer.mozilla.org/docs/Web/HTML/Reference/Elements/Heading_Elements => Browser Compatibility section

During the rollout, the change was controlled by a temporary preference. Can you check your about:config to confirm:

layout.css.h1-in-section-ua-styles.enabled => false

If you check the source of Firefox 140 and Firefox 141 beta, you'll notice the nesting is gated by the value of that preference at:

A change has already been checked in to Nightly to delete the temporary preference and that rules section in Firefox 142: https://bugzilla.mozilla.org/show_bug.cgi?id=1976196

Since you are acquainted with this change, if you notice any problems with the implementation, please file a new bug.

Helpful?

Thanks for the quick response.

I checked the setting and you are right it is turned off.

Helpful?

கேள்வி எழுப்பு

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.