Web platform features explorer

::selection

Limited availability
Tags: css Groups: CSS > Selectors Selection

The ::selection CSS pseudo-element selects text a user has highlighted.

Learn more

Browser support (view on caniuse.com)

  • Chrome 1 Released on 2008-12-11
  • Chrome Android 18 Released on 2012-06-27
  • Edge 12 Released on 2015-07-29
  • Firefox 62 Released on 2018-09-05
  • Firefox for Android 62 Released on 2018-09-05
  • Safari 1.1 Released on 2003-10-24
  • Safari on iOS

Baseline availability blocked since September 2018 by Safari on iOS (82 months)