-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[ember 3.1.0-beta.1] viewBox attribute on SVG component has incorrect capitalization #16477
Comments
looks like this also applies to the 3.1.0 release possibly #16311 is related |
Yes, I agree I believe #16311 is related. |
Copied over from #16311 as it seems this apply to this issue only
|
Thank you for all that sleuthing @st-h, it is very helpful! |
This (along with some changes to Ember that I will also PR) solves emberjs/ember.js#16311 and emberjs/ember.js#16477 This is not ready to go yet because I'm also going to refactor so we don't compute the normalized property name twice.
This (along with some changes to Ember that I will also PR) solves emberjs/ember.js#16311 and emberjs/ember.js#16477
@rwjblue happy that this was helpful. I tried to fix that issue yesterday, but came along way too many questions regarding which direction things should actually go and what has been intended and what not. Tried to get some help on slack, but I guess everybody was busy. Happy to see that this is fixed now. |
This (along with some changes to Ember that I will also PR) solves emberjs/ember.js#16311 and emberjs/ember.js#16477 (cherry picked from commit 014ed47)
FYI - The fix for this has been pulled into release (for 3.1.x release) and beta (for 3.2.0-beta.x release). The latest builds (in 10-15 minutes) to the release, beta, and canary channels should include the fix (you can get the latest tarball URL via ember-source-channel-url). |
Summary
When rendering a component with
tagName
ofsvg
and a boundviewBox
attribute, the resulting DOM element has attributeviewbox
(without the capital B).Impact: the SVG will have the wrong size. (Observed in Chrome).
Here is a reproduction of the issue.
(I couldn't figure out how to JSBin or Ember-Twiddle it).
This problem does not exist in ember 3.0.0.
Similar past issue: #10303
The text was updated successfully, but these errors were encountered: