Kozea/WeasyPrint

@footnote::before and other broken at-rules not discarded

Geschlossen

#2.215 geöffnet am 31.07.2024

 (4 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Python (630 Forks)batch import
buggood first issue

Repository-Metriken

Stars
 (6.291 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

The spec mentions the "footnote rule", but doesn't actually specify how to create it.

I tried to create a 20% wide rule with @footnote::before:

@page
   @footnote::before {
        display: block;
        width: 20%;
        border-top: solid 0.2mm;
    }
}

but the "::before" seems to be stripped and the rule applied to the entire area instead:

ss

Is it reasonable to expect "::before" to apply to the footnote area?

Contributor Guide