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:
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.
Comments
Post a Comment