concept
Atomic text selection — CSS reference
Atomic selection treats a short text region as one unit during user selection. It is useful for tokens or identifiers; it is not a security mechanism.
Formal Syntax & Structure
css syntaxcss
user-select: all;Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>Atomic text selection</title><style>body{margin:0}#a{padding:8px;background:rgb(232,237,241);color:rgb(0,0,0);box-sizing:border-box}#a{user-select:all}</style><body><code id="a">CSS-123</code></body></html>