Skip to content

Add regression test for SVG length unit conversion#121

Open
rursache wants to merge 1 commit intoswhitty:mainfrom
rursache:fix/42-svg-length-units
Open

Add regression test for SVG length unit conversion#121
rursache wants to merge 1 commit intoswhitty:mainfrom
rursache:fix/42-svg-length-units

Conversation

@rursache
Copy link

Summary

  • Adds a test verifying SVG root width/height attributes with units (cm, in) are correctly converted to pixels
  • The unit conversion was already implemented (10cm → 377px, 2in → 192px) but lacked a specific test for SVG root element parsing

Test plan

  • Added svgWithUnits() test verifying width="10cm" → 377 and height="2in" → 192
  • All 194 tests pass

Relates to #42

Unit conversion for SVG root width/height attributes already works
correctly (10cm → 377px, 2in → 192px). Adding regression test.

Relates to swhitty#42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant