Page MenuHomePhabricator

Rounding issue on `line-height` caused the CodeMirror 6 overlay to be misaligned gradually
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:

The CodeMirror overlay misaligned gradually, shorter than the edit surface. Somehow the issue is specific to the Timeless skin.

Line height of the CM overlay:

image.png (651×461 px, 54 KB)

Line height of the edit surface:

Screenshot 2024-12-12 002447.png (648×342 px, 44 KB)

Changed to unitless:
Screenshot 2024-12-12 002517.png (639×361 px, 44 KB)

What should have happened instead?:

The CodeMirror overlay is aligned with the edit surface.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Chromium only

Event Timeline

Restricted Application added subscribers: Stang, Aklapper. · View Herald Transcript

Change #1102361 had a related patch set uploaded (by Func; author: Func):

[mediawiki/extensions/CodeMirror@master] styles: Make sure the `line-height` property is identical

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

Change #1102361 merged by jenkins-bot:

[mediawiki/extensions/CodeMirror@master] styles: Make sure the `line-height` property is identical

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

Bhsd moved this task from Bugs to Done on the MediaWiki-extensions-CodeMirror board.