Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Svgelement automatically assigns height #213

Open
mehditvk8 opened this issue Jan 31, 2023 · 1 comment
Open

Svgelement automatically assigns height #213

mehditvk8 opened this issue Jan 31, 2023 · 1 comment

Comments

@mehditvk8
Copy link

mehditvk8 commented Jan 31, 2023

Hi. I parsed svg that had a rect object that has no height attribute. But svgelement return me an rectangle with height 100000. Is there anyway to solve this or recognize if rect element has height or not?

@tatarize
Copy link
Member

A rectangle without a height has a default value of 0 which is degenerate and shouldn't render. Can you give some example code or svg showing behavior which is inconsistent with the spec.

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

No branches or pull requests

2 participants