Page MenuHomePhabricator

VisualEditor: Selection highlighting breaks if an inline alien wraps
Closed, ResolvedPublic

Description

wrapped inline alien: incorrect highlighting in chromium

If an inline alien gets word wrapped, then selecting it leads to incorrect highlighting.

Reproducing: make a <tt> ... </tt> with enough content to word wrap. Select with the mouse (or use CTRL+A).

In chromium, the highlighter erroneously draws a box enclosing the first character and the last (see first attachment).

In firefox, the highlighter erroneously highlights to the end of the first line only (see second attachment).


Version: unspecified
Severity: normal

Attached:

wrapped-inline-alien-chromium.png (429×921 px, 54 KB)

Details

Reference
bz52339

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 2:08 AM
bzimport set Reference to bz52339.

Created attachment 13035
wrapped inline alien: incorrect highlighting in firefox

attachment wrapped-inline-alien-firefox.png ignored as obsolete

Created attachment 13036
wrapped inline alien: incorrect highlighting in firefox

Attached:

wrapped-inline-alien-firefox.png (491×687 px, 58 KB)

Change 139805 had a related patch set uploaded by Esanders:
Shields are dead, long live getClientRects

https://gerrit.wikimedia.org/r/139805

Change 139805 merged by jenkins-bot:
Shields are dead, long live getClientRects

https://gerrit.wikimedia.org/r/139805

  • Bug 67062 has been marked as a duplicate of this bug. ***