interactivity

An experimental property that can make an entire section of a page 'inert' (unclickable and ignored by assistive technology), similar to the 'inert' HTML attribute but via CSS.

It is documented as part of the CSS Basic User Interface specification. This is an experimental technology. The syntax and behavior are still subject to change.

/* Usage Example */
.modal-backdrop {
  /* Makes everything behind the modal non-interactive */
  interactivity: inert;
}

/* Syntax */
interactivity: auto;
interactivity: inert;

/* Global values */
interactivity: inherit;
interactivity: initial;
interactivity: revert;
interactivity: revert-layer;
interactivity: unset;
Limited availability Since 2020 69% global usage

This feature is not Baseline because it does not work in some of the most widely-used browsers.

135+
135+
Kinsta

Your first month is free

Managed WordPress hosting for faster sites.

Learn more

New CSS drops.

Join 600+ readers who've survived clearfix hacks.

ESC