Backed out 6 changesets (bug 1921980) for causing wrench bustages. CLOSED TREE
[gecko.git] / layout / reftests / svg / suspend-08.svg
blob363842911e689f0eb67855f1f763d7c5c5b3ea0b
1 <?xml version="1.0"?>
2 <!--
3 Any copyright is dedicated to the Public Domain.
4 http://creativecommons.org/licenses/publicdomain/
5 -->
6 <svg xmlns="http://www.w3.org/2000/svg" class="reftest-wait" onload="f()">
7 <title>Test that unsuspendRedrawAll works</title>
8 <!-- https://bugzilla.mozilla.org/show_bug.cgi?id=615146 -->
10 <script>
11 function f() {
12 var svg = document.documentElement;
13 setTimeout(function() {
14 svg.suspendRedraw(10000);
15 setTimeout(function() {
16 var r = document.createElementNS("http://www.w3.org/2000/svg", "rect");
17 r.setAttribute("width", "100%");
18 r.setAttribute("height", "100%");
19 r.setAttribute("fill", "lime");
20 svg.appendChild(r);
21 svg.unsuspendRedrawAll();
22 svg.removeAttribute("class");
23 }, 1);
24 }, 1);
26 </script>
27 <rect width="100%" height="100%" fill="red"/>
28 </svg>