Skip to content

Commit 5ae1aab

Browse files
committed
Improve and document page name inheritance
Related to #1897.
1 parent 1ffe534 commit 5ae1aab

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

weasyprint/formatting_structure/boxes.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -377,10 +377,11 @@ def get_wrapped_table(self):
377377

378378
def page_values(self):
379379
start_value, end_value = super().page_values()
380+
# TODO: We should find Class A possible page breaks according to
381+
# https://drafts.csswg.org/css-page-3/#propdef-page
382+
# Keep only children in normal flow for now.
380383
children = [
381-
c for c in self.children
382-
if not (c.is_absolutely_positioned() or c.is_running())
383-
]
384+
child for child in self.children if child.is_in_normal_flow()]
384385
if children:
385386
if len(children) == 1:
386387
page_values = children[0].page_values()

0 commit comments

Comments
 (0)