title: Getting selected text position
body: <p>Currently I'm getting the selected text in the browser doing this:</p>
  
  <pre><code>window.getSelection();
  </code></pre>
  
  <p>Now I need to show a tooltip above that text when pressing a custom key(note that the mouse could not be over the text anymore), so in order to do that I need the absolute position of that selected text.</p>
  
  <p>Is there a way to do that, maybe wrapping that text inside a tag and then getting the offsets? It just has to work in Chrome, not all browsers.</p>