title: Select text in ::before or ::after pseudo-element
body: <p>Look this very simple code</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;style&gt;
  p::before {
      content: "Before - ";
  }
  &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;p&gt;Hello&lt;/p&gt;
  &lt;p&gt;Bye&lt;/p&gt;   
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Css adds <code>¨Before -"</code> at the start of every <code>&lt;P&gt;</code> and renders like this</p>
  
  <p><img src="https://i.stack.imgur.com/YwabX.png" alt="enter image description here"></p>
  
  <p>If you use your mouse to select the text (for copy paste) you can select the original text, but not the Before or Aftter text added by css.</p>
  
  <p><img src="https://i.stack.imgur.com/w33jr.png" alt="enter image description here"></p>
  
  <p>I have a very specific requirement where I need to allow users to select with the mosue the Before text. How would you do it?</p>