Skip to content

Counter dysfunction in footnote pseudo list #245

@cirisus

Description

@cirisus

Describe the issue:
When a link with the href that has a value of javascript:; is used in footnote block (usually an undefined anchor like [# 123]), it is selected by the attribute selector in the following style sheet snippet and incorrectly assigned the ::before pseudo-element with the conter(footnote) value, thus disturbing the normal ordering and interfering with the display.

.footnotes-footer a[href*=javascript]:before {
    content: counter(footnotes)".";
    ...
}

Screenshot showcasing the issue:
A failure sample:
2024-02-11 20 07 15
2024-02-11 20 00 25

Simply modifying all attribute selectors in that section like:

.footnotes-footer a[onclick*=scrollToReference]:before {
    ....
}

should work.

Device information:

  • Device: Laptop
  • OS: macOS Sonoma
  • Browser: Edge & Safari
    This bug should be client-independent though.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions