I have created an SVG with foreignObject text and linked it in my HTML page using the img tag.
The issue is that the width of the svg is scaled as per device but the height is fixed around 153px. I have set the svg width and height to 100%.
I cannot provide fixed height for svg because I want the text part to be responsive and scale as per device.
So the foreignObject text content gets cut off as the image doesn't show the height in full.
I have tried the viewBox and preserveAspectRatio unsuccessfully.
here is the Jsfiddle example
<img src="http://treebliss.com/shipping.svg" style="width: 100%; height: 100%"/>
I cannot use any JS for any solution in this situation.