← Back to release summary

Capability Elements Icon-only mode

Category
DOM
Type
New or changed feature
Status
Proposed (Chrome Proposed)
Intent stage
None

Summary

Introduces two new attributes to render Capability Elements(<camera>, <microphone>, <geolocation> and <usermedia>) as compact icon buttons without text using the `display-mode` attribute and choose curated designs with the `icon-variant` 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 and curated icon variants allows developers to integrate capability elements seamlessly into space-constrained designs while fully preserving browser-mediated security guarantees.

Standards & signals

Explainers: https://github.com/w3c/mediacapture-extensions/blob/main/media-capture-elements-explainer.md

View on chromestatus.com