Capability Elements Icon-only mode
- Category
- DOM
- Type
- New or changed feature
- Status
- Proposed (Chrome Proposed)
- Intent stage
- None
Summary
Introduces a new attribute to render Capability Elements(<camera>, <microphone> and <geolocation>) as compact icon buttons without text using a `displayhint` attribute. This gives developers flexible UI density for spatial layouts such as map controls and video floating trays while preserving native security guarantees and full screen reader accessibility. This is an extension to the recently released Capability Elements https://chromestatus.com/feature/5153829504024576
Motivation
Capability elements currently default to a horizontal button layout containing an icon and mandatory localized text that cannot be removed or customized. However, modern web layouts such as interactive maps and video conferencing floating trays rely heavily on compact, icon-only UI patterns. Providing a declarative display mode allows developers to integrate capability elements seamlessly into space-constrained designs while fully preserving browser-mediated security guarantees.
Standards & signals
- Specification: https://github.com/w3c/mediacapture-extensions/pull/184
- Firefox: No signal
- Safari: No signal
- Web developers: No signals
- Tracking bug: https://g-issues.chromium.org/issues/583741580
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=capability-elements-icon-only-mode
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+Capability%20Elements%20Icon-only%20mode
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=Capability%20Elements%20Icon-only%20mode
- Baseline status: https://webstatus.dev/?q=Capability%20Elements%20Icon-only%20mode
Explainers: https://github.com/w3c/mediacapture-extensions/blob/main/media-capture-elements-explainer.md