-
Notifications
You must be signed in to change notification settings - Fork 49
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
Elements inside SVG don’t scale #45
Comments
Oh weird, so if you do But since The technical answer is use It looks like all SVG attributes are case sensitive. |
Oh, thanks! Was not aware it’s actually |
Added to the docs thanks! |
Because it’s case-sensitive, and Bel doesn’t correct it, please see https://github.com/shama/bel/wiki#svg and choojs/nanohtml#45
* Don’t convert SVG viewBox attribute to lowercase Because it’s case-sensitive, and Bel doesn’t correct it, please see https://github.com/shama/bel/wiki#svg and choojs/nanohtml#45 * viewbox --> viewBox * don’t convert to lowercase, since some attributes are case-sensetive, classname --> className
Thank you for your work in bel and yo-yo 👍
Consider this SVG:
The
circle
should scale up to fill SVG’s, according to itsviewbox
, but when the element is created withbel
,circle
doesn’t scale.Live example: http://requirebin.com/?gist=32979ca8d3231e3a86ac872260fa3322 — the second element is created manually and scales like it should. In DOM they look identical, must be some SVG behind-the-scenes magic?
The text was updated successfully, but these errors were encountered: