1
1
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:
Guillaume Ayoub 2012-06-04 17:42:58 +02:00
parent 71fc11ea97
commit c3b2f2f440

View File

@ -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