You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SVG elements are rendering incorrectly (alpha.38) #4506
With alpha.46, all SVG attributes are now rendered correctly. Yay!
However, SVG element names still are converted to lower-case. I'm seeing this with feOffset, feGaussianBlur, feComposite, or feFlood. SVG elements referencing such a <filter> are not rendered (Firefox) or don't show the filter (Edge).
I'm also seeing an error with some bound properties (eg. height) on SVGs: Cannot set property height of #<SVGSVGElement> which has only a getter EDIT: have to use [attr.height]. My bad.
Activity
vicb commentedon Oct 4, 2015
must be linked to the new compiler
/cc @tbosch
rolandjitsu commentedon Oct 4, 2015
👍 I have the same issue.
xbtequila commentedon Oct 5, 2015
Same here.
Using this for current Workaround:
tbosch commentedon Oct 5, 2015
Yes, this is a know issue. Working on this right now.
markharding commentedon Oct 6, 2015
@tbosch - @xbtequila fix works well but should be extended to include polygon, polyline etc
4 remaining items
cajoy commentedon Oct 25, 2015
Is there any updates on the issue? As it looks like new compiler breaks not just svg but some other CSS calculations..
tbosch commentedon Oct 28, 2015
Quick update: A similar hotfix has just landed on master, the real fix is still open though...
larrifax commentedon Oct 29, 2015
@tbosch binding to the
xlink:hrefattribute still does not seem to work. Example:Tragetaschen commentedon Oct 30, 2015
Let's handle it here then:
A component in 2.0.0-alpha.45 with
arrives in the DOM as
Note the lower-case
bofviewbox. That way, the SVG doesn't render correctly.As a workaround, I'm using an
ElementRefin the constructor to manually set the correct property.wfalkwallace commentedon Oct 30, 2015
@Tragetaschen wow, that's annoying. I didn't see that for the longest time and was wracking my brain figuring out what was going wrong. Thanks!
Tragetaschen commentedon Nov 3, 2015
And because it's so annoying (and cost me again some hair :) )
stdDeviationin afeGaussianBluralso loses its capitalization.Tragetaschen commentedon Nov 12, 2015
With alpha.46, all SVG attributes are now rendered correctly. Yay!
However, SVG element names still are converted to lower-case. I'm seeing this with
feOffset,feGaussianBlur,feComposite, orfeFlood. SVG elements referencing such a<filter>are not rendered (Firefox) or don't show the filter (Edge).wfalkwallace commentedon Nov 13, 2015
I'm also seeing an error with some bound properties (eg. height) on SVGs:EDIT: have to use [attr.height]. My bad.Cannot set property height of #<SVGSVGElement> which has only a getterbradlygreen commentedon Nov 30, 2015
Reported working, YAY!
angular-automatic-lock-bot commentedon Sep 7, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.