Spec-Zone.ru › SVG

cursor

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨December 2021⁩.

  • Learn more
  • See full compatibility
  • Report feedback

The cursor attribute specifies the mouse cursor displayed when the mouse pointer is over an element.

Note: As a presentation attribute, cursor also has a CSS property counterpart: cursor. When both are specified, the CSS property takes priority.

Usage context

Categories Presentation attribute
Value [ [ <FuncIRI>, ]* [ auto | crosshair | default | pointer | move | e-resize | ne-resize | nw-resize | n-resize | se-resize | sw-resize | s-resize | w-resize| text | wait | help ]] | inherit
Animatable Yes

Elements

The following elements can use the cursor attribute

  • Container elements
  • Graphics elements

Specifications

Specification
CSS Basic User Interface Module Level 4>
# cursor>

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Opera Safari Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet WebView Android WebView on iOS
cursor 1 12
1Starting in Firefox 67, the maximum size allowed for custom cursors is 32x32 pixels due to cursors being misused by certain malicious sites.
7 1.2 18 95 14 1 1.0 4.4 1

See also

  • CSS cursor property

© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/cursor

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API