Upstream version 5.34.98.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / regions / region-styling / set-box-style-in-region-crash.html
1 <!doctype html>
2 <html>
3     <head>
4         <style>
5             .regionBox2 { width: 280px; height: 100px; }
6
7             #article { -webkit-flow-into: flow; }
8             #region { -webkit-flow-from: flow; }
9
10             @-webkit-region #region { span { background-color: red } };
11         </style>
12         <script>
13             if (window.testRunner) {
14                 window.testRunner.dumpAsText();
15                 testRunner.waitUntilDone();
16             }
17
18             function test()
19             {
20                 try {
21                     child = document.getElementById("li");
22                     child.parentNode.removeChild(child);
23                 } catch(e) {
24                 }
25
26                 if (window.testRunner)
27                     testRunner.notifyDone();
28             }
29
30             setTimeout("test()", 0);
31         </script>
32     <body>
33         <p> Bug <a href="https://bugs.webkit.org/show_bug.cgi?id=78298">78298</a>: Crash in RenderFlowThread::setRegionBoxesRegionStyle</p>
34         <p> This test PASSES if it does not CRASH or ASSERT.</p>
35         <div id="article">
36             <li id="li">
37                 <p id="p"></p>
38             </li>
39         </div>
40         <div id="region" class="regionBox2"></div>
41     </body>
42 </html>