Fix broken reference list numbering in Firefox

Same as Ib6e9de6.

We must reset the build-in "list-item" counter to make this code behave
sane in Firefox. It looks like this is even described in the CSS spec
and it is not Firefox having a bug, but Chrome being "clever" and not
following the spec.

Bug: T229307
Change-Id: I955786e2b68d087c819a962ded3c571946c61f78
(cherry picked from commit d18c0871a8)
This commit is contained in:
Thiemo Kreuz 2019-12-09 10:10:54 +01:00 committed by Edward Chernenko
parent 1463f47280
commit db87fdc6ce

View file

@ -64,7 +64,9 @@ span.mw-reflink-text {
/* Style for linkbacks from <references> to <ref>s */
ol.mw-references {
counter-reset: mw-ref-linkback;
/* Resetting *any* counter on an <ol> element messes the build-in numbering in Firefox up.
Explicitely resetting the build-in "list-item" counter fixes this. */
counter-reset: mw-ref-linkback list-item;
}
ol.mw-references li {