1<!doctype html>
2<html>
3 <head>
4
5 <!--
6 This "script" is actually a template and is needed because we must remove the body in order to reproduce the bug.
7 If the content of this template would be placed in the body, it would be deleted when the body is removed.
8 -->
9 <script id="testResult" type="text/template">
10 <p>Bug <a href="https://bugs.webkit.org/show_bug.cgi?id=104517">104517</a>: [CSSRegions] Assertion failure
11 in Node::detach (!renderer || renderer->inRenderFlowThread())</p>
12 <p>This test PASSES if it does not CRASH or ASSERT.</p>
13 </script>
14
15 <script type="text/javascript">
16 if(window.testRunner){
17 window.testRunner.dumpAsText();
18 window.testRunner.waitUntilDone();
19 }
20
21 window.addEventListener("load",function(){
22 // This previously caused the ASSERT to be hit.
23 var p = document.body.parentNode;
24 p.removeChild(document.body);
25
26 // Display the human readable test result.
27 var b = document.createElement("body");
28 p.appendChild(b);
29 b.innerHTML = document.getElementById("testResult").innerHTML;
30
31 if(window.testRunner)
32 window.testRunner.notifyDone();
33 });
34 </script>
35
36 </head>
37
38 <body>
39 <div style="-webkit-flow-into: flow;">
40 <span>
41 a <p>b</p> a
42 </span>
43 </div>
44 <div id="region" style="-webkit-flow-from:flow;"></div>
45 </body>
46</html>