pointer-events

Specifies under what circumstances (if any) a particular graphic element can become the target of pointer events (like clicks or hovers).

Quick example

.overlay-ignore {
  pointer-events: none;
  /* clicks will pass through this element to the content underneath */
}

Quick facts

Initial value
auto
Inherited
Yes
Applies to
all elements
Animation type
discrete

Values

autononevisibleaintedilltrokepaintedfillstrokeallinherit

pointer-events Browser Support

Widely available Since 2015 96% global usage

This feature is well established and works across many devices and browser versions. It has been available across browsers since 2015.

Safe to use without fallbacks.

1+
1.5+
4+
12+
ESC