summaryrefslogtreecommitdiffstats
path: root/layout/reftests/svg/as-image/image-orientation-viewbox-no-size.html
blob: 7875aeea22542b3255c30c9f3c529f82f168c84d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE>
<head>
  <style>
    body {
      border:  0px;
      margin:  0px;
      padding: 0px;
    }
    img {
      image-orientation: from-image;
    }
  </style>
</head>
<body>
  <img src="image-orientation-viewbox-no-size.svg">
  <script>
    let fromImage = location.search == "from-image";
    if (fromImage) {
      document.querySelector("img").style.imageOrientation = "from-image";
    }
  </script>
</body>