Using a build on or after r216107, load data:text/html;charset=utf8,<style>::selection { background-color: #ff6b53; color: #fff; }</style><div style="font-size: 900%">%D8%B4%D8%B3%DB%8C%D8%B4%D8%B3%DB%8C and then select text from r-to-l then unselect l-to-r, or select text from l-to-r and then unselect r-to-l. Either selection rect bits remain behind or parts of glyphs are not repainted.
<rdar://problem/32001279>