web-platform-tests / web-platform-tests/interop

Computed Heading Level

Open
#1,412 3 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

focus-area-proposal
Dominant language
JavaScript
Stars
524
Forks
35
Avg merge
1d 4h
Merged PRs (30d)
10

Description

Description

The headingoffset and headingreset attributes lets you increase the level of descendant headings within that element, allowing you to adjust the headings of an HTML include (e.g. converted from markdown). A :heading() CSS selector allows for targeting computed headings.

Allowing the heading algorithm to work with externally included content is expected to improve the a11y properties of the web.

Specification

https://html.spec.whatwg.org/#heading-levels-&-offsets

web-feature

heading-offset

Test Links
Additional Signals

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the HTML specification section on heading levels and offsets, then review the linked WPT results for html/rendering/sections and html/semantics/sections. The named CSS coverage is css/selectors/heading.html. Done means the heading-offset feature and computed-heading selector behavior are covered consistently with the specification and the linked tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, html
Domain
accessibility, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.