image-preserveAspectRatio-01-svg.svg 532 B

12345678910111213
  1. <!-- Test to make sure "preserveAspectRatio" value is applied correctly on
  2. <image> tag, when the width:height ratio is less than the image's
  3. nativeWidth:nativeHeight -->
  4. <svg xmlns="http://www.w3.org/2000/svg"
  5. xmlns:xlink="http://www.w3.org/1999/xlink">
  6. <script xlink:href="util.js" type="text/javascript"/>
  7. <script>
  8. var grid = generateImageGrid("blueRect10x10-viewBox.svg", 20, 40);
  9. grid.setAttribute("transform", "translate(10, 10)");
  10. document.documentElement.appendChild(grid);
  11. </script>
  12. </svg>