1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-05 00:21:15 +03:00

Apply viewport_overflow when box.is_for_root_element

This commit is contained in:
Tontyna 2020-06-21 11:45:59 +02:00
parent 43a37fe4ff
commit 2d9482b913

View File

@ -186,7 +186,7 @@ def draw_stacking_context(context, stacking_context, enable_hinting):
box = stacking_context.box
# apply the viewport_overflow to the html box, see #35
if box.element_tag == 'html' and (
if box.is_for_root_element and (
stacking_context.page.style['overflow'] != 'visible'):
rounded_box_path(
context,