html - SVG changes color when rotated in Safari 10 -


i've run weird problem shows in safari 10. have playing cards, svg images, rotated using transform:rotate(xdeg).

the card i'm using has red block pattern. when it's not rotated, or rotated @ right angles, i.e. 90, 180, 270, looks normal. but, other angle , background pattern turns blue! got report 1 of users , have never seen weird. other browsers work normally, safari 9 normally.

i'm guessing weird bug in safari 10, ideas how work around it? i've created minimal repro at:

https://jsfiddle.net/2zv4garu/1/

weird bug indeed. performing transformation in wrapping g element svg transform not resolve issue.

however, performing 3d rotation instead of of 2d one, i.e. inlinecard.style.transform = 'rotate3d(0,0,1,' + e.currenttarget.value + 'deg)'; resolve issue, can see here.

https://jsfiddle.net/qe00s1mg/

enter image description here


Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -