Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /svg/embedded/image-embedding-svg-viewref-with-viewbox.svg - WPT Dashboard Interop Dashboard
<title><image> referencing SVG image with <view> with 'viewBox'</title>
<h:link rel="match" href="reference/green-rect-100x100.svg"/>
<rect x="-355" y="-1110" width="455" height="1210" fill="red"/>
<image preserveAspectRatio="none" x="-355" y="-1110" width="455" height="1210"
xlink:href="data:image/svg+xml,
%3cview id='view' preserveAspectRatio='none' viewBox='0 0 455 1210'/%3e
%3crect width='455' height='1210' fill='green'/%3e
%3c/svg%3e#view"/>
</svg>