Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Counter dysfunction in footnote pseudo list #245

Open
cirisus opened this issue Feb 11, 2024 · 0 comments
Open

Counter dysfunction in footnote pseudo list #245

cirisus opened this issue Feb 11, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@cirisus
Copy link

cirisus commented Feb 11, 2024

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.
@cirisus cirisus added the bug Something isn't working label Feb 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants