This page is Not Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

::selection


The ::selection pseudo-element is the UI element fragments pseudo-element. It is used to select any part of the page that the user has highlighted, including text within an editable text field. This pseudo-element supports the color and background-color properties.

It was proposed as part of CSS3 Selectors, but was removed due to concerns of undefined behaviors (e.g. for nested elements).

Notes


Related specifications

Selectors Level 3
Abandonned in 2009

See also

Related articles

Pseudo-Elements

Selectors





































Attributions