When an edit marker (ins/del) shown on Special:MobileDiff includes leading/trailing whitespace, the whitespace is not displayed, showing as if the whitespace is missing from the edit. See e.g. this randomly chosen diff with no space between the commas and the green “no” words.
The page source does contain the spaces, the HTML code reads For example,<ins> no</ins> researchers. However, the ins tag uses display: inline-block which causes the browser (tested in Firefox and Edge) to drop the leading whitespace. The desktop version uses explicit white-space: pre-wrap which prevents the problem. (Cf. the example in the desktop version.)
Developers
The spaces are inside the ins and del tags but are being dropped. I think all that's needed is a
ins, del { white-space: pre-wrap; }
or
ins, del { white-space: break-spaces; }
qa steps
- Pick a random page on https://en.m.wikipedia.beta.wmflabs.org/
- add or remove a space from the page
- click last modified bar at bottom of page and view diff
- confirm space is visible in diff
QA Results
AC | Status | Details |
---|---|---|
1 | ✅ | T243783#5856549 |