Upstream version 5.34.92.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / regions / cssom / webkit-named-flow-collection-crash.html
1 <!doctype html>
2 <html>
3     <head>
4         <style>
5             #content { -webkit-flow-into: flow; }
6             #container { -webkit-flow-from: flow; width: 100px; height: 100px;}
7         </style>
8     </head>
9     <script src="../../../resources/js-test.js"></script>
10     <body>
11         <div id="content"></div>
12         <div id="container"></div>
13         <script>
14         if (window.testRunner)
15             testRunner.dumpAsText();
16         var namedFlowCollection = document.webkitGetNamedFlows();
17         document.body.removeChild(document.getElementById("content"));
18         document.body.removeChild(document.getElementById("container"));
19         
20         // Force a re-layout event, which forces the deletion of the underlying NamedFlow.
21         document.body.offsetTop;
22         
23         var namedFlow = namedFlowCollection.flow;
24         if (namedFlow.name == "flow")
25             document.body.innerText = "PASS";
26         else
27             document.body.innerText = "FAIL";
28         </script>
29     </body>
30 </html>