mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-13 17:53:09 +00:00
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:
parent
1463f47280
commit
db87fdc6ce
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue