The HTML spec contains a list of special rules for <h1> tags nested within <article>, <aside>, <nav>, or <section> tags: https://html.spec.whatwg.org/multipage/rendering.html#sections-and-headings These special rules are deprecated, because they cause accessibility issues. Namely, they visually reduce the font size for nested <h1>s so that they "look" like <h2>s, but nothing in the accessibility tree reflects this demotion.
None
None
Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?
None
None
No milestones specified
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAM%3DNeDjZLhF5dL%2BsLWC2RqgZ2SnM2pBh9y7Y5CZFKFThG0RbQg%40mail.gmail.com.
This Intent is missing a lot of fields we usually require:
- Explainer
- Specification
- Motivation
- TAG review
- Gecko/WebKit signals
- Web developer signals
- Web platform tests
- Finch feature name
- Estimated milestones
Please fill those out and send an updated Intent when they are ready. (Or let us know why you think they're appropriate to omit.)
The kicker: the chromestatus tool only gives you one shot at creating the intent email. Now that I've done it once, that button is gone. In order to send another email, it seems that I'd have to create an entirely new chromestatus entry, and I'm loath to do that. Let me know if it's enough to point you to the chromestatus page itself to see the updated sections? Sorry.
The HTML spec contains a list of special rules for <h1> tags nested within <article>, <aside>, <nav>, or <section> tags: https://html.spec.whatwg.org/multipage/rendering.html#sections-and-headings These special rules are deprecated, because they cause accessibility issues. Namely, they visually reduce the font size for nested <h1>s so that they "look" like <h2>s, but nothing in the accessibility tree reflects this demotion.
The current behavior is an accessibility problem: the font size is reduced as if an <h2> is being used, but the a11y tree still shows the item as an <h1>. By removing these special rules, we'll nudge developers to do the "better" thing of actually using an <h2>.
Use counters are relatively high: https://chromestatus.com/metrics/feature/timeline/popularity/4272 However, analysis from Mozilla shows that perhaps the impact is not as large as the use counters would suggest: https://github.com/whatwg/html/issues/7867#issuecomment-2595987424
Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?
None
No Finch flag yet - this is just at the "Intent to Deprecate" stage, not the "Removal" stage. Only warnings will be shown for now.
DevTrial on desktop | 136 |
DevTrial on Android | 136 |
Thanks very much Mason (and Jason).It wasn't clear to me that this was just in the initial "deprecate" stage, not the "remove" stage: I wish ChromeStatus tooling separated those more cleanly (like it does Dev Trial vs. Ship). Given that you're still in the preparatory deprecation stage, this level of detail seems fine!I do think a short explainer-like thing will be desirable before we get to the removal stage. Maybe just a few paragraphs detailing what's changing, what impact it might have on developers, and how they can adapt. Hopefully Mozilla can help put that together. A reasonable place for that to live would be the top message of the spec PR.
On Wed, Mar 5, 2025 at 9:36 AM Mason Freed <mas...@chromium.org> wrote:
Thanks Jason! Here's the new/updated email:
Contact emailsmas...@chromium.org
ExplainerNone
SpecificationNone
Design docs
https://github.com/whatwg/html/issues/7867#issue-1218728578
SummaryThe HTML spec contains a list of special rules for <h1> tags nested within <article>, <aside>, <nav>, or <section> tags: https://html.spec.whatwg.org/multipage/rendering.html#sections-and-headings These special rules are deprecated, because they cause accessibility issues. Namely, they visually reduce the font size for nested <h1>s so that they "look" like <h2>s, but nothing in the accessibility tree reflects this demotion.
Blink componentBlink>CSS
MotivationThe current behavior is an accessibility problem: the font size is reduced as if an <h2> is being used, but the a11y tree still shows the item as an <h1>. By removing these special rules, we'll nudge developers to do the "better" thing of actually using an <h2>.
Initial public proposalNone
TAG reviewNone
TAG review statusNot applicable
Risks
Interoperability and CompatibilityUse counters are relatively high: https://chromestatus.com/metrics/feature/timeline/popularity/4272 However, analysis from Mozilla shows that perhaps the impact is not as large as the use counters would suggest: https://github.com/whatwg/html/issues/7867#issuecomment-2595987424
Gecko: Shipped/Shipping (https://github.com/whatwg/html/issues/7867#issuecomment-2541654834) Firefox has shipped this removal in Nightly since ~March 2024, and is the one driving this deprecation.
WebKit: Positive (https://github.com/whatwg/html/issues/7867#issuecomment-2124317504) This isn't a standards position, just a github comment.
Web developers: No signals No signals
Other signals:
WebView application risksDoes this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?
None
DebuggabilityNone
Is this feature fully tested by web-platform-tests?Yeshttps://wpt.fyi/results/html/rendering/non-replaced-elements/sections-and-headings
Flag name on about://flagsNone
Finch feature nameNone
Non-finch justificationNo Finch flag yet - this is just at the "Intent to Deprecate" stage, not the "Removal" stage. Only warnings will be shown for now.
Requires code in //chrome?False
Tracking bughttps://issues.chromium.org/issues/394111284
Estimated milestonesDevTrial on desktop136DevTrial on Android136
Link to entry on the Chrome Platform Statushttps://chromestatus.com/feature/6192419898654720?gate=5420483144843264
Use counter is 0.6% but judging from the comment https://github.com/whatwg/html/issues/7867#issuecomment-1977647444 the effect seems smaller. Of 30-ish sites investigated there, 15 were unaffected and the rest had seemingly minor changes.
The high counter might be because linkedin triggers it, and linkedin was seemingly not affected.
This does not mean that it's safe to remove the slightly (to me) unexpected quirk, but it might be.
/Daniel
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/db4cf7ef-eea7-4aed-b0b0-2402c6e3826cn%40chromium.org.
Re TAG: I don't believe we need a TAG review for deprecations or removals.
On Tuesday, March 4, 2025 at 8:54:00 PM UTC-5 Domenic Denicola wrote:It wasn't clear to me that this was just in the initial "deprecate" stage, not the "remove" stage: I wish ChromeStatus tooling separated those more cleanly (like it does Dev Trial vs. Ship). Given that you're still in the preparatory deprecation stage, this level of detail seems fine!
I do think a short explainer-like thing will be desirable before we get to the removal stage. Maybe just a few paragraphs detailing what's changing, what impact it might have on developers, and how they can adapt. Hopefully Mozilla can help put that together. A reasonable place for that to live would be the top message of the spec PR.
Interoperability and CompatibilityUse counters are relatively high: https://chromestatus.com/metrics/feature/timeline/popularity/4272 However, analysis from Mozilla shows that perhaps the impact is not as large as the use counters would suggest: https://github.com/whatwg/html/issues/7867#issuecomment-2595987424
For posterity, it looks like about 0.6% of page loads would be affected, and that seems to have a gradual trend up.A deprecation seems fine here. What do you estimate a removal timeline to be? Ideally we can reduce the usecounters as much as we can before a removal.
Again for posterity, it seems like there was a single report about this, which was fixed on the author's side:
Use counter is 0.6% but judging from the comment https://github.com/whatwg/html/issues/7867#issuecomment-1977647444 the effect seems smaller. Of 30-ish sites investigated there, 15 were unaffected and the rest had seemingly minor changes.
The high counter might be because linkedin triggers it, and linkedin was seemingly not affected.
This does not mean that it's safe to remove the slightly (to me) unexpected quirk, but it might be.
This looks good, but I'm not sure I understand the plan. Is it to deprecate (w/ console warnings) for some period of time? Are you going to propose a reverse-OT? Or removal once usage falls below some threshold?
The thing that gives me pause is the nature of the console warning. It isn't that <h1> within, say, <article> is deprecated, it's the fact that the special rules will be removed and thus the font size may look different. I'm not sure what action would be suggested for the authors. Can you comment on that? Is the recommendation to switch to <h2> to keep the current look? Or to just be aware of the change?
The website has an <h1> tag within an <article>, <aside>, <nav>, or <section>, and relies on deprecated UA stylesheet rules for the resulting font size. See the second block of 'x h1' styles in https://html.spec.whatwg.org/multipage/rendering.html#sections-and-headings. These special rules are deprecated and will be removed. See https://github.com/whatwg/html/issues/7867.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAM%3DNeDiq9dDw-po-DKJ-Oh6Bm8Z1sBSio1_KnT-nBN9Z%3D4ESRw%40mail.gmail.com.
LGTM2(Note: this LGTM is just for deprecation, please come back again for approval to remove.)
On Thu, Mar 20, 2025 at 8:25 AM Vladimir Levin <vmp...@chromium.org> wrote:LGTM1 to deprecate. This console message may be interpreted as noise if the author decides that they are OK with the deprecation, but would not be able to silence the warning. Because of this, the API owners strongly suggest that we try to limit the deprecation to 3 milestones and either proceed with removal or re-evaluate.
On Thu, Mar 20, 2025 at 7:22 AM Simon Pieters <zco...@mozilla.com> wrote:Firefox has a similar console warning which reads:Found a sectioned h1 element with no specified font-size or margin properties. More information: https://developer.mozilla.org/docs/Web/HTML/Element/Heading_Elements#specifying_a_uniform_font_size_for_h1
On Thu, Mar 20, 2025 at 9:06 AM Chris Harrelson <chri...@chromium.org> wrote:LGTM2(Note: this LGTM is just for deprecation, please come back again for approval to remove.)Will do. And yeah I didn't think I needed LGTMs to deprecate, only to remove, right? Akin to I2P not needing LGTM, but I2S needing them?