Steps to Reproduce:
- enable "New wikitext mode"
- https://www.mediawiki.org/w/index.php?title=Manual:Varnish_caching&action=edit&useskin=minerva
- Enable highlighting in hamburger menu if it's not already
- Select first line of text: SHIFT-DOWN. The first visible line of text should be highlighted.
- Select all text: CTRL-A. All lines should be highlighted.
Actual Results:
The highlights are 1.5em above and to the left of the text which it's supposed to highlight.
Expected Results:
Highlights are placed at the same location as the text.
Solution:
Unset padding: .skin-minerva .ve-init-mw-desktopArticleTarget .CodeMirror { padding: unset; }
Related
The task that revealed this bug: T245476: [SPIKE] How to make source editors' font-size responsive
Screenshot
Note the text selection with light blue background is 1.5em above and left from the text.