You can’t make a pseudo-element selectable, as it doesn’t exist in the DOM.
5.10 Pseudo-elements and pseudo-classes
Neither pseudo-elements nor pseudo-classes appear in the document source or document tree.
More Related Contents:
- Is it possible to set the stacking order of pseudo-elements below their parent element? [duplicate]
- How can I write a ‘:hover’ condition for ‘a:before’ and ‘a:after’?
- Why do the :before and :after pseudo-elements require a ‘content’ property?
- CSS :after not adding content to certain elements
- Font Awesome 5 Choosing the correct font-family in pseudo-elements
- Why don’t :before and :after pseudo elements work with `img` elements? [duplicate]
- What is the difference between a pseudo-class and a pseudo-element in CSS?
- Font Awesome 5, why is CSS content not showing?
- Can I change the height of an image in CSS :before/:after pseudo-elements?
- CSS :before on inline SVG
- Can I target a :before or :after pseudo-element with a sibling combinator?
- Should I use single or double colon notation for pseudo-elements?
- Add line break to ::after or ::before pseudo-element content
- Universal selector * and pseudo elements
- Can I have multiple :before pseudo-elements for the same element?
- Z-index with before pseudo-element
- Are CSS3 ::before and ::after pseudo elements supported by IE9 or not?
- ::before pseudo-element stacking order issue
- CSS Pseudo Element Counters: can you increment an alphabet letter “a”, “b”, “c”, etc instead of a number?
- CSS3 ::selection behaves differently in FF & Chrome
- Vertically centering content of :before/:after pseudo-elements
- “text-decoration” and the “:after” pseudo-element, revisited
- css rotate a pseudo :after or :before content:”” [duplicate]
- Should I use single colons (:) or double colons (::) for before, after, first-letter and first-line pseudo-elements?
- Can you apply a width to a :before/:after pseudo-element (content:url(image))?
- prevent a pseudo element from triggering hover?
- Purpose of *:before, *:after rule without content property
- Apply webkit scrollbar style to specified element
- What is the difference between pseudo-classes and pseudo-elements?
- CSS3 transitions on pseudo-elements (:after, :before) not working?