OLD | NEW |
| (Empty) |
1 <!doctype html> | |
2 <html> | |
3 <style> | |
4 #article { -webkit-flow-into: flow; } | |
5 #region { -webkit-flow-from: flow; } | |
6 @-webkit-region #region { | |
7 #article { color: #00ff00; } | |
8 } | |
9 </style> | |
10 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=106191">WebKit
Bug 106191</a> Crash when an anonymous block in a flow thread is deleted because
it has only block children. </p> | |
11 <p>The test passes if it does not crash or assert.</p> | |
12 <p>PASS</p> | |
13 <div id="article"> | |
14 <em style="display: block;"></em> | |
15 Text color styled in region: #00ff00. | |
16 <em id="em">Em color styled in region: #008000.</em> | |
17 </div> | |
18 <div id="region"></div> | |
19 <script> | |
20 if (window.testRunner) | |
21 window.testRunner.dumpAsText(); | |
22 | |
23 document.body.offsetTop; | |
24 var elem = document.getElementById("em"); | |
25 var new_elem = document.createElement("table"); | |
26 elem.parentNode.insertBefore(new_elem, elem); | |
27 document.body.offsetTop; | |
28 document.getElementById("article").style.visibility = "hidden"; | |
29 </script> | |
30 </html> | |
OLD | NEW |