Styling sequential ::footnote-calls
Like #1545, this feels like a missing feature from the footnote spec (so perhaps I should be filing issues there / instead), but it doesn't seem to be possible to select a ::footnote-call that immediately follows another ::footnote-call in CSS in WeasyPrint - and may simply not be possible as specified.
The current behavior means that two sequential footnotes will appear as 12, rather than 1, 2. I'd like to be able to add some sort of ::footnote-call + ::footnote-call::before rule to catch this and add a new element with content: ", ", but I can't see a way to do that. Do you have advice on how that might be managed?
Again, this may not be a WeasyPrint issue, but since you've recently implemented footnotes, you might have ideas on what can be done that I've missed.
Again, this may not be a WeasyPrint issue, but since you've recently implemented footnotes, you might have ideas on what can be done that I've missed.
Unfortunately, I think that it’s currently impossible. ::footnote-call are pseudo-elements that don’t match any real element, so adding any combinator behind never matches. It’s actually forbidden by Selectors level 3. It may be accepted in some cases by level 4, but I’m not even sure that it would be enough for this case.
The W3C and other implementations may be interested by this question!