image - SVG display difference between <img> and <object> -


what's difference between displaying svg image in <img> or <object> tag? facing problems using svg images in <img> tag on android 3.1:

enter image description here

the shape in upper example <img> tag , lowest example exact same image display in <object>. why displayed different way? , <object> cached <img>?

what guys suggest?

differences when svg used image (html <img> svg <image> or css background images)

  • no scripting
  • no interactivity
  • no external dependencies (complete in single file)
  • no dom (i.e. no script access them outside)
  • can copied canvas via drawimage

i suspect you're suffering no external dependencies rule. may want check svg data has preserveaspectratio attribute on root element , if value of attribute not none.


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -