web-platform-tests / web-platform-tests/interop
Computed Heading Level
Nobody has claimed this yet.
- 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
- https://wpt.fyi/results/html/rendering/sections?label=master&label=experimental&aligned
- https://wpt.fyi/results/html/semantics/sections?label=master&label=experimental&aligned
- https://wpt.fyi/results/css/selectors/heading.html?label=experimental&label=master&aligned
Additional Signals
No response
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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