gecko/layout/reftests/svg/moz-only/zoomed-svg-with-viewBox-01.svg
Daniel Holbert 783f0d51f8 (No code changes) Change a bunch of non-executable files in layout/ to have non-executable mode.
Filetypes changed: .cpp .gif .h .html .list .png .svg .x-ccmap .xbl .xhtml .xul
2008-07-11 11:54:06 -07:00

35 lines
1.0 KiB
XML

<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/licenses/publicdomain/
-->
<svg xmlns="http://www.w3.org/2000/svg" onload="handleLoad();"
width="40" height="30" viewBox="20 20 40 30">
<!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=407959 -->
<title>Test that zooming isn't broken when we have a viewBox</title>
<script type="text/javascript">
function handleLoad()
{
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
var shell = document.defaultView
.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
.getInterface(Components.interfaces.nsIWebNavigation)
.QueryInterface(Components.interfaces.nsIDocShell);
var viewer = shell.contentViewer
.QueryInterface(Components.interfaces.nsIMarkupDocumentViewer)
// set onload - setting globally somehow triggers reftest load failure*s*?!
viewer.fullZoom = 3;
}
</script>
<ellipse cx="40" cy="35" rx="20" ry="15" fill="blue"/>
</svg>