Skip to content

docs(accessibility): add a page on the inert attribute#60

Draft
jdevalk wants to merge 1 commit into
mainfrom
standards-scan/inert-attribute-2026-06-26
Draft

docs(accessibility): add a page on the inert attribute#60
jdevalk wants to merge 1 commit into
mainfrom
standards-scan/inert-attribute-2026-06-26

Conversation

@jdevalk

@jdevalk jdevalk commented Jun 26, 2026

Copy link
Copy Markdown
Owner

What

Adds a new spec page — The inert attribute — under accessibility.

inert is 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

  • Baseline Widely Available since April 2023 — supported across all major browsers, so it is safe to recommend.
  • Genuinely uncovered: a repo-wide grep finds no existing page (or even a mention) of inert. It sits naturally in the focus-management cluster alongside keyboard-navigation, focus-indicators, and skip-links.
  • Closes a real accessibility gap: aria-hidden alone hides background content from screen readers but leaves it focusable, so keyboard focus still escapes an overlay. inert fixes both at once.

Status

recommended — the web platform contract does not break without it (a modal <dialog> opened with showModal() already makes the rest of the document inert automatically), but a modern site should use it for non-<dialog> overlays. Not required.

Primary sources

Also in this PR

  • Wires inert-attribute into relatedSlugs of keyboard-navigation, focus-indicators, skip-links, native-interactive-elements.
  • Changelog entry (added) for 2026-06-26.
  • OG images: the new per-page image plus the count-driven og-default / checklist / spec / accessibility-category images.

npm run build passes (151 pages indexed). Opened as a draft for maintainer review — not for auto-merge.

🤖 Generated with Claude Code

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>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying specification-website with  Cloudflare Pages  Cloudflare Pages

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

View logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant