Kozea/WeasyPrint

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

Open

#2,215 建立於 2024年7月31日

在 GitHub 查看
 (4 留言) (0 反應) (0 負責人)Python (6,291 star) (630 fork)batch import
buggood first issue

描述

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?

貢獻者指南

@footnote::before and other broken at-rules not discarded · Kozea/WeasyPrint#2215 | Good First Issue