Skip to content

Conversation

@Amyuan23
Copy link
Contributor

@Amyuan23 Amyuan23 commented Nov 3, 2025

Image elements with dimensions specified in rem units were not rendered at the correct size in the generated SVG. This occurred because the SVG did not inherit the document's root font-size, causing the browser to use the default 16px instead of the actual root font-size.

This fix ensures that all elements using rem units (images, text, borders, etc.) are rendered at the correct size, matching the original document's appearance.

@tinchox5
Copy link
Member

tinchox5 commented Nov 3, 2025

@Amyuan23 thank you very much! I'm going to perform some tests using real demos because this part un code may produce unexpected side effects.

@Amyuan23
Copy link
Contributor Author

Amyuan23 commented Nov 4, 2025

@tinchox5 Thank you! Looking forward to your test results.

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.

2 participants