Skip to content

Commit

Permalink
Add test of SVG with no explicit size
Browse files Browse the repository at this point in the history
  • Loading branch information
liZe committed Sep 25, 2024
1 parent 37002a5 commit 3d2d15d
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/draw/svg/test_bounding_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,3 +309,22 @@ def test_bounding_box_path_s(assert_pixels):
</g>
</svg>
''')


@assert_no_logs
def test_svg_empty_size(assert_pixels):
assert_pixels('''
BBB__
BBB__
BBB__
BBB__
_____
''', '''
<style>
@page { size: 5px }
svg { display: block }
</style>
<svg xmlns="http://www.w3.org/2000/svg">
<rect x="0" y="0" width="3" height="4" fill="blue" />
</svg>
''')

0 comments on commit 3d2d15d

Please sign in to comment.