W3cubDocs

/CSS

-ms-touch-select

Non-standard
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

The -ms-touch-select CSS property is a Microsoft extension that toggles the gripper visual elements that enable touch text selection.

Initial value grippers
Applies to all elements
Inherited yes
Media interactive
Computed value as specified
Animation type discrete
Canonical order the unique non-ambiguous order defined by the formal grammar

Syntax

Values

grippers

The grippers are always on. In addition, selection will start even if an onclick, onmsgesturetap, or onmouseup handler is present. This is the initial value.

none

The grippers are always off and default touch selection functionality is not provided.

Formal syntax

grippers | none

Specifications

Not part of any specification.

Remarks

This property requires Windows 8 or later.

The -ms-touch-select property should only be used by applications that provide their own selection experience. Most other applications should use the -ms-user-select property instead.

If you choose to hide the grippers, you should ensure that users have a mechanism for selecting text via touch. To find out how to do this using JavaScript, see the HTML5 Selection APIs.

This property has no effect on mouse, keyboard, or touchpad interaction.

© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/CSS/-ms-touch-select