In a Cordova app I am working on, I'd like to force hardware acceleration to render certain elements. A common way to achieve this is by using translate3d(0,0,0)
CSS rule, as described here.
However, when I use this, SVG images no longer appear. Interesting part is when I use values other than 0s for translate3d()
, for instance translate3d(1,1,1)
, the images start appearing again.
I am not sure if this is a bug with Webkit browsers (as it's evidenced in both Chrome and Safari), or there's something about using 0's for translate3d()
that makes SVGs no longer appear.
Any insights would be appreciated.