SVG files inline in HTML, when shown through the SVG foreignObject tag fail to size properly. Firefox and Edge browsers display perfectly, WebKit does not. This can be confirmed by visiting my web site: http://svgdesign.guru Sincerely; James Deering
Created attachment 262027 [details] Visual display This is what the display looks like with this bug. Not good.
Created attachment 262028 [details] Visual Display 2 As can be seen WebKit is way out of whack when dealing with SVG in HTML and SVG foreignObject.
<rdar://problem/23058999>
Created attachment 263090 [details] reduction I am attaching a reduced test case. It has an svg with viewBox="0, 0, 2000, 1000". In WebKit, the svg does not resize with the window resize. In FireFox, the svg is resized with the window resizing till it exceeds 2000x1000 then it does not scale.
Created attachment 263094 [details] reduction
Created attachment 263099 [details] 4k 16:9 aspect ratio test case
Comment on attachment 263099 [details] 4k 16:9 aspect ratio test case Keep in mind that the foreignObject is designed to display the ATSC HD standard 16:9 aspect ratio. Don't know if it is important to the solution, but to be safe I changed your test case to reflect a 4k 16:9 aspect ratio.
*** Bug 202659 has been marked as a duplicate of this bug. ***
Web site has changed. To view the problem use https://www.svg.guru for a test case. Chromium based browsers or FireFox render perfectly. WebKit browsers do not.