Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<title>Reference: Ignoring an SVG root's preserveAspectRatio for an image element does not affect an img showing the same SVG</title>
<link rel="author" title="Sam Weinig" href="mailto:sam@webkit.org">
<style>
body { margin: 0; }
</style>
<div style="position: absolute; left: 10px; top: 10px; width: 200px; height: 100px; background-color: rgb(0,128,0)"></div>
<div style="position: absolute; left: 60px; top: 130px; width: 100px; height: 100px; background-color: rgb(0,128,0)"></div>