diff options
| author | Viatrix | 2026-03-12 20:28:27 -0700 |
|---|---|---|
| committer | Viatrix | 2026-03-12 22:52:59 -0700 |
| commit | d79da3d0f945729ccba28b477fb2035e91041460 (patch) | |
| tree | 60716d0288aee14fef0ac2dd3cd97ef332320554 /tests | |
| parent | c29ac06954bf29f25c64f1f658d20b4e2a28d19e (diff) | |
Links going out of bounds now get cropped.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/data/refs/imagemap__--maptype__HTML__oob__svg.out | 1 | ||||
| -rw-r--r-- | tests/data/svg/oob.svg | 5 | ||||
| -rw-r--r-- | tests/test_imagemap_comparison.py | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/tests/data/refs/imagemap__--maptype__HTML__oob__svg.out b/tests/data/refs/imagemap__--maptype__HTML__oob__svg.out new file mode 100644 index 0000000..e62f2b7 --- /dev/null +++ b/tests/data/refs/imagemap__--maptype__HTML__oob__svg.out @@ -0,0 +1 @@ +<area shape=poly coords=50,25,0,58,0,75,75,75 href=http://example.com> diff --git a/tests/data/svg/oob.svg b/tests/data/svg/oob.svg new file mode 100644 index 0000000..d46ee63 --- /dev/null +++ b/tests/data/svg/oob.svg @@ -0,0 +1,5 @@ +<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> + <a xlink:href="http://example.com"> + <polyline points="50,25 75,75 -25,75"/> + </a> +</svg> diff --git a/tests/test_imagemap_comparison.py b/tests/test_imagemap_comparison.py index 445f981..994bc95 100644 --- a/tests/test_imagemap_comparison.py +++ b/tests/test_imagemap_comparison.py @@ -8,6 +8,7 @@ class ImageMapComparisonTest(ComparisonMixin, TestCase): 'svg/fillstroke.svg', 'svg/image.svg', 'svg/intersect.svg', + 'svg/oob.svg', 'svg/overlap.svg', 'svg/rounding.svg', 'svg/text.svg', |
