Bug 1839315: part 4) Link from `SheetLoadData::mWasAlternate` to spec. r=emilio DONTBUILD
[gecko.git] / layout / style / test / test_bug1232829.html
blob65bea2014d5bd0ca84a9af6f46fe9fb4fbf6cd19
1 <!DOCTYPE html>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=1232829
5 -->
6 <head>
7 <meta charset="utf-8">
8 <title>Test for Bug 1232829</title>
9 <script src="/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
11 <script>
13 /** Test for Bug 1232829 **/
15 // This should be a crashtest but it relies on using a pop-up window which
16 // isn't supported in crashtests.
17 function boom() {
18 var popup = window.open("data:text/html,2");
19 setTimeout(function() {
20 var frameDoc = document.querySelector("iframe").contentDocument;
21 frameDoc.write("3");
22 requestAnimationFrame(function() {
23 popup.close();
24 ok(true, "Didn't crash");
25 SimpleTest.finish();
26 });
27 }, 0);
30 SimpleTest.waitForExplicitFinish();
31 </script>
32 </head>
33 <body onload="boom()">
34 <iframe srcdoc="<style>@keyframes a { to { opacity: 0.5 } }</style>
35 <div style='animation: a 1ms'></div>"></iframe>
36 </body>
37 </html>