pointer-events property
Sets or retrieves a value that specifies under what circumstances a given graphics element can be the target element for a pointer event in Scalable Vector Graphics (SVG).
![]() ![]() |
Syntax
pointer-events: visiblePainted | visibleFill | visibleStroke | visible | painted | fill | stroke | all | none | inherit
Property values
visiblePainted-
Default. The given element can be the target element for pointer events when the visibility property is set to
visibleand when the pointer is over a painted area. The pointer is over a painted area if it is over the interior (that is, fill) of the element and the fill property has an actual value other thannoneor it is over the perimeter (that is, stroke) of the element and the stroke property is set to a value other thannone. visibleFill-
The given element can be the target element for pointer events when the visibility property is set to
visibleand when the pointer is over the interior (that is, fill) of the element. The value of the fill property does not affect event processing. visibleStroke-
The given element can be the target element for pointer events when the visibility property is set to visible and when the pointer is over the perimeter (that is, stroke) of the element. The value of the stroke property does not affect event processing.
visible-
The given element can be the target element for pointer events when the visibility property is set to
visibleand the pointer is over either the interior (that is, fill) or the perimeter (that is, stroke) of the element. The values of the fill and stroke do not affect event processing. painted-
The given element can be the target element for pointer events when the pointer is over a painted area. The pointer is over a painted area if it is over the interior (that is, fill) of the element and the fill property has an actual value other than
noneor it is over the perimeter (that is, stroke) of the element and the stroke property has an actual value other thannone. The value of the visibility property does not effect event processing. fill-
The given element can be the target element for pointer events when the pointer is over the interior (that is, fill) of the element. The values of the fill and visibility properties do not affect event processing.
stroke-
The given element can be the target element for pointer events when the pointer is over the perimeter (that is, stroke) of the element. The values of the stroke and visibility properties do not affect event processing.
all-
The given element can be the target element for pointer events whenever the pointer is over either the interior (that is, fill) or the perimeter (that is, stroke) of the element. The values of the fill, stroke and visibility properties do not affect event processing.
none-
The given element does not receive pointer events.
inherit-
A value that indicates that the property takes the same computed value as the property for the element's parent.
CSS information
| Applies To | graphics elements |
|---|---|
| Media | visual |
| Inherited | 1 |
| Initial Value | visiblePainted |
Standards information
- Scalable Vector Graphics: Interactivity, Section 16.6
Remarks
The pointerEvents property affects the circumstances under which the following are processed:
- User interface events, such as mouse clicks
- Dynamic pseudo-classes (that is, :hover, :active, and :focus)
- Hyperlinks (that is, the a element)
See also
- CSSStyleDeclaration
- currentStyle
- style
- SVGCircleElement
- SVGEllipseElement
- SVGImageElement
- SVGLineElement
- SVGPathElement
- SVGPolygonElement
- SVGPolylineElement
- SVGRectElement
- SVGTextElement
- SVGUseElement
Build date: 11/21/2012


