Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-viewport/zoom/iframe-zoom.sub.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>iframe in an element with CSS zoom</title>
<link rel="author" title="Yotam Hacohen" href="mailto:yotha@chromium.org">
<link href="reference/iframe-zoom-ref.html" rel="match">
<head>
<style>
body {
overflow: hidden;
}
div {
margin: 0px;
padding: 0px;
}
iframe {
height: 80px;
width: 80px;
border: none;
}
</style>
</head>
<body>
<div id="no_zoom">
<iframe src="resources/iframe_content.html"></iframe>
</div>
<div id="with_zoom" style="zoom: 3;">
<iframe src="resources/iframe_content.html"></iframe>
</div>
<div id="another_with_zoom" style="zoom: 3;">
<iframe src="http://{{hosts[alt][]}}:{{ports[http][0]}}/css-viewport/zoom/resources/iframe_content.html"></iframe>
</div>
</body>