Wednesday, 3 October 2018

SVG elements without width/height attributes in IMG

Hi,

I just noticed when testing a beta website in NS that doing

<img src="foo.svg">

with foo.svg having only a viewPort but no width and height attributes
seems to render as 1x1 image. Shouldn't it fallback to the viewport boungs?

François.

No comments:

Post a Comment