Related bug: spelling markers don't paint correctly under LTR text in RTL flow or RTL text in LTR flow inside a narrow text box with text-overflow: ellipsis set.
data:text/html, <div contenteditable style="width:40px; font: 12px; overflow:hidden; text-overflow:ellipsis;direction:rtl; white-space:nowrap">chorme</div>
The underline gets painted under the ellipsis instead of the word. I was hoping I could copy the spelling underline code and use it for composition markers since it handles all the composition-marker-basic.html cases, but unfortunately that breaks ellipsis-ltr-text-in-rtl-flow-underline-composition.html and ellipsis-rtl-text-in-ltr-flow-underline-composition.html.
Attaching the current behavior for a test case I'm about to add (testing LTR text in a truncated RTL box). Composition and spelling markers draw incorrectly (text match looks OK, assuming it's expected behavior to include the ellipsis).
Comment 1 by rlanday@chromium.org
, Aug 14 2017