This POC tests range.getBoundingClientRect()
across different browsers, particularly focusing on Safari's behavior with text wrapping.
There is an interesting bug in Safari where when the text is wrapped, the range.getBoundingClientRect()
will return two rects, one for the selected range and one for the before. The range before has a width of 0.
This POC shows this by highlighting the bounding rects of the selected range. But if the width of the range before is 0, it will use a width of 10px and a red color.