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:

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
Post a Comment