Page MenuHomePhabricator

In Chrome/ium, block images skipped when cursoring right but not when cursoring left
Closed, ResolvedPublic1 Estimated Story Points

Description

Load the following HTML into VE standalone:

<p>Hello</p>
<figure><img src="VisualEditor-logo.svg" width="641" height="225" alt="VE logo"><figcaption>VE logo</figcaption></figure>
<p>world</p>

Cursor through the document from left to right. The image is skipped: the cursor goes straight from Hello| to |world. If you cursor back from right to left, the image is not skipped. The same thing happens with up/down arrow: down arrow skips the image, but up arrow doesn't.

This also happens in VE-MW with MWBlockImage nodes.

Event Timeline

It looks like there is no cursor holder between <p>Hello</p> and <figure>, but there is a cursor holder between </figure> and <p>world</p>. Investigating why [not].

Also, this affects Chromium but not Firefox (because of the differences in how they treat ce=false).

dchan renamed this task from Block images skipped when cursoring right but not when cursoring left to In Chromium, block images skipped when cursoring right but not when cursoring left.Apr 26 2016, 5:19 AM
dchan claimed this task.

Change 285335 had a related patch set uploaded (by Divec):
Update cursor holders in showModelSelection

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

Jdforrester-WMF renamed this task from In Chromium, block images skipped when cursoring right but not when cursoring left to In Chrome/ium, block images skipped when cursoring right but not when cursoring left.Apr 26 2016, 3:27 PM
Jdforrester-WMF triaged this task as Medium priority.
Jdforrester-WMF set the point value for this task to 1.

Change 285335 merged by jenkins-bot:
ce.Surface#showModelSelection: Update cursor holders

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