Kozea/WeasyPrint

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

Chiusa

#2215 aperta il 31 lug 2024

 (4 commenti) (0 reazioni) (0 assegnatari)Python (630 fork)batch import
buggood first issue

Metriche repository

Star
 (6291 stelle)
Metriche merge PR
 (Merge medio 14g 23h) (10 PR mergiate in 30 g)

Descrizione

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?

Guida contributor