When clicking on footnote-reference, the corresponging footnote is not highlighted.
While the other way around, clicking on the back-reference, to footnote-reference in the text is nicely highlighted and stylable with CSS :focus…
The Reason seems to be, that :focus only works on interactive elements like links or inputs..
So I wonder if there's a way to make it work?
As far as I know elements can get focused if they have a tabindex, so that could be a solution.
Or the id of the footnote as part of a separate (pseudo-)interactive element, like an <a> without href:
Sorry, i'm not frontend developper and can't consult about css. The only thing i can say - you can modify generated markup as you wish, if you don't like default one.
When clicking on footnote-reference, the corresponging footnote is not highlighted. While the other way around, clicking on the back-reference, to footnote-reference in the text is nicely highlighted and stylable with CSS :focus…
The Reason seems to be, that :focus only works on interactive elements like links or inputs.. So I wonder if there's a way to make it work?
As far as I know elements can get focused if they have a tabindex, so that could be a solution.
Or the id of the footnote as part of a separate (pseudo-)interactive element, like an
<a>
without href:(While 'FN:' could also be a icon like ― or •)