docs(accessibility): add a page on the inert attribute#60
Draft
jdevalk wants to merge 1 commit into
Draft
Conversation
Adds src/content/spec/accessibility/inert-attribute.md documenting the WHATWG HTML `inert` global attribute — Baseline Widely Available since April 2023 — as the declarative replacement for focus-trap scripting when an overlay is open. Status: recommended (the platform does not break without it; modal <dialog> supplies it automatically). Wires inert-attribute into the relatedSlugs of keyboard-navigation, focus-indicators, skip-links, and native-interactive-elements; adds the changelog entry and OG images. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Deploying specification-website with
|
| Latest commit: |
78b0019
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://ab34d227.specification-website.pages.dev |
| Branch Preview URL: | https://standards-scan-inert-attribu.specification-website.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a new spec page — The inert attribute — under
accessibility.inertis a boolean global attribute that makes an element and its descendants non-interactive: removed from the tab order, removed from the accessibility tree, unfocusable, and skipped by find-in-page. It is the declarative replacement for the fragile focus-trap scripting authors used to write to keep keyboard and screen-reader focus inside an open dialog/menu/panel.Why now
inert. It sits naturally in the focus-management cluster alongsidekeyboard-navigation,focus-indicators, andskip-links.aria-hiddenalone hides background content from screen readers but leaves it focusable, so keyboard focus still escapes an overlay.inertfixes both at once.Status
recommended— the web platform contract does not break without it (a modal<dialog>opened withshowModal()already makes the rest of the document inert automatically), but a modern site should use it for non-<dialog>overlays. Notrequired.Primary sources
Also in this PR
inert-attributeintorelatedSlugsof keyboard-navigation, focus-indicators, skip-links, native-interactive-elements.added) for 2026-06-26.npm run buildpasses (151 pages indexed). Opened as a draft for maintainer review — not for auto-merge.🤖 Generated with Claude Code