1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-04 07:57:52 +03:00

Fix footnote style test condition

This commit is contained in:
Guillaume Ayoub 2021-11-26 11:14:30 +01:00
parent c90886c58a
commit b633bef1a7

View File

@ -533,8 +533,9 @@ def make_page(context, root_box, page_type, resume_at, page_number,
initial_containing_block = page
footnote_area_style = context.style_for(page_type, '@footnote')
footnote_area = boxes.FootnoteAreaBox(
page, footnote_area_style or AnonymousStyle(page.style))
if footnote_area_style is None:
footnote_area_style = AnonymousStyle(page.style)
footnote_area = boxes.FootnoteAreaBox(page, footnote_area_style)
resolve_percentages(footnote_area, page)
footnote_area.position_x = page.content_box_x()
footnote_area.position_y = page_content_bottom