Page MenuHomePhabricator

Sub-reference numbers are displayed incorrectly in the reference list in (some?) mobile browsers
Closed, ResolvedPublicBUG REPORT

Assigned To
Authored By
Johannes_Richter_WMDE
Dec 2 2025, 10:28 AM
Referenced Files
F71453561: IMG_2680.PNG
Jan 6 2026, 9:31 AM
F71453548: IMG_2679.PNG
Jan 6 2026, 9:31 AM
F71453546: IMG_2677.PNG
Jan 6 2026, 9:31 AM
F71453547: IMG_2678.PNG
Jan 6 2026, 9:31 AM
F71343530: IMG_2674.PNG
Dec 29 2025, 11:13 AM
F71343531: IMG_2673.PNG
Dec 29 2025, 11:13 AM
F71343532: IMG_2672.PNG
Dec 29 2025, 11:13 AM
F70816944: IMG_2623.PNG
Dec 2 2025, 10:28 AM

Description

Steps to replicate the issue:

  • Open an article with sub-references on a mobile device (probably just iOS?)

What happens?:

  • Observe that sub-ref footnote numbers are displayed correctly in the article (e.g. [3.1.]), but not in the reference list:

IMG_2623.PNG (1×750 px, 161 KB)

What should have happened instead?:

  • Display the sub-ref numbers correctly just like in desktop view

Other information:

  • I can reproduce the issue on an iOS device using Chrome / Safari / Firefox and also on a MacOS device using Chrome / Safari / Firefox (choosing mobile instead of desktop view).
  • Cannot reproduce it on my Linux laptop using Chrome / Firefox and mobile view
Background
  • This seems to be related to a WebKit issue where that browser engine lacks some CSS support https://bugs.webkit.org/show_bug.cgi?id=204163 .
  • Other browsers on iOS also need to use the WebKit engine so that's why Firefox on iOS is also affected
Next steps
  • Try to validate and reproduce the issue ( might be caching )
  • Look into possible solutions ( might be a CSS issue )
Demo

https://1fda1bec93.catalyst.wmcloud.org/wiki/Ludwig_Boltzmann#Einzelnachweise

Event Timeline

@Johannes_Richter_WMDE can you please link a few articles where you are able to reproduce the issue. Thanks!

@Johannes_Richter_WMDE can you please link a few articles where you are able to reproduce the issue. Thanks!

I took the screenshot from https://de.wikipedia.org/wiki/Hohlleiter but the issue occurs with any random sub-ref article, e.g. https://de.wikipedia.org/wiki/Aachener_Rathaus or https://en.wikipedia.beta.wmcloud.org/wiki/General_Data_Protection_Regulation. The issue was first observed by one of the participants in recent VE mobile user testing.

WMDE-Fisch renamed this task from Sub-reference numbers are displayed incorrectly in the reference list in (some?) mobile browssers to Sub-reference numbers are displayed incorrectly in the reference list in (some?) mobile browsers.Dec 10 2025, 10:51 AM

Unfortunately I'm unable to reproduce this. Here is what I could find so far:

  • The code responsible for the correct sub-ref numbers can be seen in patch https://gerrit.wikimedia.org/r/1191389 (tracked via T405581). That code was added about 1 month ago.
  • One way to make the wrong sub-ref number appear is to manually disable that ::marker code. But how can this happen in a prod environment?
  • One theory is that you sometimes get an old, cached version of the CSS file that didn't had the necessary ::marker code.
  • Another theory is an outdated or buggy browser that fails rendering the ::marker and falls back to the default "1.", "2." and so on.
  • Another theory is that we have a problem with the selector ol.references .mw-subreference-list > li::marker being to specific and not getting activated. However, I cannot think of a way to mess this up.

@Johannes_Richter_WMDE, can you check again if you can still reproduce this? In case you cannot (the default 30 days should be over now) it might have been a caching issue.

I'm using the latest iOS version (26.1) and all of the browsers I tested are up to date (Firefox version 146.1, Chrome version 143.0.7499.151, Safari version 26)

I took new screenshots today (from https://de.wikipedia.org/wiki/Gregor_Mendel) and the bug still exists in all three browsers – sub-refs have been added to the article just a few hours ago therefore it cannot be a caching issue.

IMG_2672.PNG (1×750 px, 360 KB)

IMG_2673.PNG (1×750 px, 370 KB)

IMG_2674.PNG (1×750 px, 186 KB)

Note that the issue has been originally reported during @ElineWMDE's VE mobile user testing by another iOS user, it might be specific to Apple devices.

Let's link this under the epic T378570: [Epic] Render explicit reflist numbers in read mode, without relying on browser <li> which will solve this entire family of issues, as well as stabilize the localization.

::marker compatibility is worse than I had expected: https://caniuse.com/?search=%3A%3Amarker reports that Safari has a long-standing lack of support, and cannot see ::marker content which we rely on for these numbers. The gory details are in https://bugs.webkit.org/show_bug.cgi?id=204163 , there is no hint of future support.

I wonder if we can use @supports selector( :marker ) and fall back to :before on these browsers?

Change #1223217 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[mediawiki/extensions/Cite@master] Temporary workaround for missing sub-ref markers in Safari

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

Test wiki created on Patch demo by Thiemo Kreuz (WMDE) using patch(es) linked to this task:
https://628b2fdc24.catalyst.wmcloud.org/w/

@Johannes_Richter_WMDE, can you check if the sub-ref numbers on the patch-demo page https://628b2fdc24.catalyst.wmcloud.org/wiki/Ludwig_Boltzmann appear in Safari? I tried a CSS hack but cannot verify it with my machines.

Definitely worth trying! But I think it's tricky to use @supports because Safari does know about ::marker, it just incompletely implements it.

@Johannes_Richter_WMDE, can you check if the sub-ref numbers on the patch-demo page https://628b2fdc24.catalyst.wmcloud.org/wiki/Ludwig_Boltzmann appear in Safari? I tried a CSS hack but cannot verify it with my machines.

It's "fixed" by removing the sub-ref numbers entirely on iOS browsers...

Safari:

IMG_2678.PNG (1×750 px, 248 KB)

Google Chrome:

IMG_2677.PNG (1×750 px, 121 KB)

By the way I just noticed that the issue also occurs in the desktop version of iOS browsers (but not in the desktop version of MacOS browsers) – that's true both for production and your patch demo:

IMG_2679.PNG (1×750 px, 702 KB)

IMG_2680.PNG (1×750 px, 430 KB)

Test wiki on Patch demo by Thiemo Kreuz (WMDE) using patch(es) linked to this task was deleted:

https://628b2fdc24.catalyst.wmcloud.org/w/

Change #1223217 merged by jenkins-bot:

[mediawiki/extensions/Cite@master] Temporary workaround for missing sub-ref markers in Safari

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