Bug 1941128 - Turn off network.dns.native_https_query on Mac again
[gecko.git] / dom / svg / test / test_text_dirty.html
blobdfcef6c811b9a5aefabfb1c0d31f4f3be7546409
1 <!DOCTYPE html>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=886230
5 -->
6 <head>
7 <title>Test for Bug 886230</title>
8 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
9 <script src="/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
11 <style type="text/css">
12 </style>
13 </head>
14 <body>
15 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=886230">Mozilla Bug 886230</a>
16 <p id="display">
17 <svg>
18 <mask id="m"><text id="t">x</text></mask>
19 <rect width="600" height="400" mask="url(#m)"/>
20 </svg>
21 </p>
22 <div id="content" style="display: none">
23 </div>
24 <pre id="test">
25 <script class="testbody" type="text/javascript">
26 async function runTest() {
27 var svgText = document.getElementById("t");
29 // Dirty the frames.
30 document.getElementById("display").style.width = "700px";
31 svgText.firstChild.remove();
33 // Paint without flushing layout. If the test fails, we'll trigger
34 // an assertion.
35 await SpecialPowers.snapshotWindowWithOptions(window, undefined, undefined, { DRAWWINDOW_DO_NOT_FLUSH: true });
37 ok(true);
38 SimpleTest.finish();
41 window.addEventListener("load", runTest);
43 SimpleTest.waitForExplicitFinish();
44 </script>
45 </pre>
46 </body>
47 </html>