mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
783f0d51f8
Filetypes changed: .cpp .gif .h .html .list .png .svg .x-ccmap .xbl .xhtml .xul
35 lines
1.0 KiB
XML
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>
|