mirror of
https://github.com/Kozea/WeasyPrint.git
synced 2024-10-05 00:21:15 +03:00
Draw the replaced elements into the content box (not padding box)
This commit is contained in:
parent
71fc11ea97
commit
c3b2f2f440
@ -541,7 +541,7 @@ def draw_replacedbox(context, box):
|
||||
if box.style.visibility == 'hidden':
|
||||
return
|
||||
|
||||
x, y = box.padding_box_x(), box.padding_box_y()
|
||||
x, y = box.content_box_x(), box.content_box_y()
|
||||
width, height = box.width, box.height
|
||||
pattern, intrinsic_width, intrinsic_height = box.replacement
|
||||
scale_width = width / intrinsic_width
|
||||
|
Loading…
Reference in New Issue
Block a user