Skip to content

Support colored footnote marker & calls #2435

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

Open
anghenfil opened this issue Apr 17, 2025 · 1 comment
Open

Support colored footnote marker & calls #2435

anghenfil opened this issue Apr 17, 2025 · 1 comment
Labels
bug Existing features not working as expected

Comments

@anghenfil
Copy link

anghenfil commented Apr 17, 2025

Hey,

I'm having issues to set the colour of footnote markers/calls.

This doesn't work:

.footnote::footnote-call {
    content: counter(footnote, decimal) " ";
    color: green;
    vertical-align: super;
    font-size: 0.8em;
}
 
.footnote::footnote-marker {
    content: counter(footnote, lower-roman);
    font-size: 14pt;
    color: red;
    display: inline-block;
    width: 2em;
    padding-right: 1em;
    text-align: right;
}

You can find a full example here, with comparisons to other printcss engines.

Best
anghenfil

@liZe liZe added the bug Existing features not working as expected label Apr 18, 2025
@liZe
Copy link
Member

liZe commented Apr 18, 2025

Hi!

Thanks for the report.

It looks like there are 2 different problems:

  • .footnote::footnote-call and .footnote::footnote-marker don’t match the elements, but ::footnote-call and ::footnote-marker do. We have to check the specification to find exactly what’s supposed to work.
  • The color is not applied to the footnote marker. Maybe that’s related to the way we handle markers.

We’ll check that in depth and get back as soon as we understand what’s going on here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Existing features not working as expected
Projects
None yet
Development

No branches or pull requests

2 participants