summaryrefslogtreecommitdiffstats
path: root/layout/reftests/svg/as-image/nonuniform-scale-ref.html
blob: 9644d44e5402d111fbcb883eec36c9f98dffc071 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE html>
<!-- Any copyright is dedicated to the Public Domain.
   - http://creativecommons.org/publicdomain/zero/1.0/ -->
<head>
  <style>
    body {
      border:  0px;
      margin:  0px;
      padding: 0px;
    }
  </style>
</head>
<body>
  <img src="blue-square-in-square-par-none.svg">

  <script>
    var sizes = location.search.substring(1).split("&");

    // Apply the size to the image.
    var img = document.getElementsByTagName("img")[0];
    img.width = sizes[0];
    img.height = sizes[1];
  </script>
</body>