summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/zoom/reference/iframe-zoom-ref.html
blob: 43bc3e24cf832079f56772747f4b493c121a7c59 (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
25
26
27
28
29
30
31
<!DOCTYPE html>
<title>ref for iframe in an element with css zoom</title>
<link rel="author" title="Yotam Hacohen" href="mailto:yotha@chromium.org">
<link rel="author" title="Google" href="http://www.google.com/">
<link rel="help" href="https://drafts.csswg.org/css-viewport/">

<head>
  <style>
    iframe {
      border: none;
      margin: 0px;
      padding: 0px;
    }
  </style>
</head>

<body>

  <div id="no_zoom">
    <iframe style="height: 80px;" srcdoc='<body style="margin: 0;"><div id="target" style="background-color: aqua; width: 64px; height: 64px;"></div></body>'></iframe>
  </div>

  <div id="with_zoom">
    <iframe style="height: 248px;" srcdoc='<body style="margin: 0;"><div id="target" style="background-color: aqua; width: 64px; height: 64px; zoom: 3;"></div></body>'></iframe>
  </div>

  <div id="another_with_zoom">
    <iframe style="height: 240px;" srcdoc='<body style="margin: 0;"><div id="target" style="background-color: aqua; width: 64px; height: 64px; zoom: 3;"></div></body>'></iframe>
  </div>

</body>