monks/user_select
The user-select CSS property controls whether the user can select text. This doesn’t have any effect on content loaded as part of a browser’s user interface (its {{Glossary(“Chrome”, “chrome”)}}), except in textboxes.
Values
pub const all: #(String, String)
- : The content of the element shall be selected atomically: If a selection would contain part of the element, then the selection must contain the entire element including all its descendants. If a double-click or context-click occurred in sub-elements, the highest ancestor with this value will be selected.> [!NOTE]> The CSS basic user interface module defines a
containvalue for theuser-selectproperty to enable selection to start within the element to be contained by the bounds of that element, however, this is not supported in any browsers.
pub const auto_: #(String, String)
- : The used value of
autois determined as follows: - On the::beforeand::afterpseudo elements, the used value isnone- If the used value ofuser-selecton the parent of this element isnone, the used value isnone- Otherwise, if the used value ofuser-selecton the parent of this element isall, the used value isall- Otherwise, the used value istext
pub const none: #(String, String)
- : The text of the element and its sub-elements is not selectable. Note that the {{domxref(“Selection”)}} object can contain these elements.
pub const revert_layer: #(String, String)