Kozea/WeasyPrint

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

クローズ

#2,215 opened on 2024/07/31

 (4 件のコメント) (0 件のリアクション) (0 人の担当者)Python (630 件のフォーク)batch import
buggood first issue

Repository metrics

Stars
 (6,291 個のスター)
PR merge metrics
 (平均マージ 14d 23h) (30d で 10 merged PRs)

説明

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?

コントリビューターガイド