Skip to content

Commit

Permalink
Improve consistency of attributes for relative positioning
Browse files Browse the repository at this point in the history
There’s no need to rely on the specified value when we’re supposed to have the
calculated value.
  • Loading branch information
liZe committed Feb 27, 2023
1 parent ec4c65e commit 8a48822
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weasyprint/layout/block.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def relative_positioning(box, containing_block):

if box.top != 'auto':
translate_y = box.top
elif box.style['bottom'] != 'auto':
elif box.bottom != 'auto':
translate_y = -box.bottom
else:
translate_y = 0
Expand Down

0 comments on commit 8a48822

Please sign in to comment.