Page MenuHomePhabricator

Syntax highlighting moves cursor out from the actual writing place when using New Wikitext Mode at euwiki
Closed, ResolvedPublicBUG REPORT

Description

Steps to Reproduce:

Actual Results:
(look how the red underline is not below the actual word)

irudia.png (137×1 px, 17 KB)

Expected Results:
(look how the red underline is below the word)

irudia.png (135×1 px, 16 KB)

Event Timeline

Aklapper updated the task description. (Show Details)

@Theklan, Hi! How is the underlining bug in the task description related to the "cursor" mentioned in the task summary?

If this task is about the position red underline, that is done by your (unmentioned) browser I think...?

No, the red underline is a guide of where the cursor should be in relation with the word. I have tried with Firefox and Chrome, logged in and out, deleting my cookies, with a secret mode tab and also from another computer, with the same results.

JTannerWMF subscribed.

Thanks for creating this task @Theklan, at this time the Editing-team can not prioritize fixing this bug.

matmarex edited projects, added VisualEditor (Current work); removed VisualEditor.
matmarex subscribed.

@JTannerWMF moved this task from To Triage to Freezer on the VisualEditor board.

At the time, we assumed this is yet another of the syntax highlighting bugs which are impossible to fix (without a big rewrite) due to how the "real" surface and the syntax-highlighted surface are displayed.

But today I noticed this problem myself when editing an article, while I could never reproduce the other issues, so I decided to have a closer look.

This is actually a regression from https://gerrit.wikimedia.org/r/c/mediawiki/extensions/VisualEditor/+/536371. Apparently the "negligible difference" of 0.3333 pixels of padding is enough to cause this misalignment :D and we never updated the styles for the syntax-highlighted surface to apply the same padding change.

Change 557018 had a related patch set uploaded (by Bartosz Dziewoński; owner: Bartosz Dziewoński):
[mediawiki/extensions/CodeMirror@master] VE: Update padding to match VisualEditor changes

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

Change 557018 merged by jenkins-bot:
[mediawiki/extensions/CodeMirror@master] VE: Update padding to match VisualEditor changes

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