CSS interactivity Property
The interactivity property can make an element and its contents inert, like the HTML inert attribute, with the value inert.
Description
The interactivity property makes an element and its descendants inert from CSS. With interactivity: inert the content cannot be focused, clicked, selected or found with find-in-page, and it is hidden from assistive technology, exactly like the HTML inert attribute.
Because it is a CSS property, inertness can now depend on styles, for example making the slides of a carousel that are scrolled out of view inert, or disabling the rest of a page while a custom drawer is open. The property is inherited, but a descendant can set interactivity: auto only if it is not inert for another reason, such as the inert attribute or a modal dialog.
Inert content is still visible, so it is good practice to also change its appearance, for example with reduced opacity, to make the state clear to sighted users.
Definition
- Initial value
- auto
- Applies to
- all elements
- Inherited
- yes
- Computed value
- as specified
- Animatable
- discrete
- JavaScript syntax
- object.style.interactivity
Interactive Demo
Syntax
interactivity: auto | inert;
Values
- autoThe default. The element is interactive unless it is inert for another reason.
- inertThe element and its descendants become inert: they cannot receive focus or pointer events and are hidden from assistive technology.
- initialSets the property to its initial value.
- inheritTakes the computed value of the parent element.
Example
Browser Support
The following information will show you the current browser support for the CSS interactivity property. Hover over a browser icon to see the version that first introduced support for this CSS property.
Desktop





Tablets & Mobile





