Html – How to get size of image inside SVG in JavaScript/TypeScript
How can I get the real height and width of an image inside a SVG element in HTML, when the width attribute of it is expressed in percentage? HTML code: <svg id="svg-container" xmlns="http://www.w3.org/2000/svg"> <image id="content-image" href="page-003.jpg" width="90%"> </image> </svg> JS…