css.properties

pointer-events

The pointer-events property specifies whether an element is visible to mouse events.

Formal Syntax

auto | bounding-box | visiblePainted | visibleFill | visibleStroke | visible | painted | fill | stroke | all | none

See specification

JavaScript Access

// Access via element.style
element.style.pointerEvents = 'auto';

Browser Support

standard | MDN · Spec · Spec

FeatureChromeFirefoxSafariEdge
pointer-events11.5412
all11.5412
auto11.5412
bounding-box331379
fill11.5412
html_elements23.6412
none11.5412
painted11.5412
stroke11.5412
visible11.5412
visibleFill≤31≤50412
visiblePainted≤31≤50412
visibleStroke≤31≤50412

Related Properties