First mentioned in T239725#5709390. Here is a minimal example that creates broken numbers in Firefox:
* <ref>x</ref> <references />
Firefox renders a "2." down in the <references> section. Chrome renders a "1.", as expected.
This means the CSS counters we are using are somehow messing with the build-in numbering of the numbered list in Firefox. This should not happen.