<rdar://problem/10098679> Assertion failure in RenderLayer::paintPaginatedChildLayer()
[WebKit-https.git] / LayoutTests / fast / dynamic / layer-no-longer-paginated.html
1 <body style="overflow: hidden;">
2     <p>
3         Test for <i><a href="rdar://problem/10098679">&lt;rdar://problem/10098679></a>
4         Assertion failure in <tt>RenderLayer::paintPaginatedChildLayer()</tt></i>.
5     </p>
6     <p>
7         The test passes if it does not cause an assertion failure or a crash.
8     </p>
9     <!-- specifying opacity < 1 so that the transition from having columns
10          to not having columns does not cause the layer to go away -->
11     <div id="target" style="-webkit-column-count: 2; opacity: 0.5; height: 20px;">
12         <div style="position:relative;"></div>
13     </div>
14     <div id="widener" style="height: 10px; width: 200%;"></div>
15     <script>
16         function test()
17         {
18             document.getElementById("widener").style.removeProperty("width");
19             document.getElementById("target").style.removeProperty("-webkit-column-count");
20         }
21  
22                window.scrollBy(1, 0);
23
24         if (window.layoutTestController) {
25             layoutTestController.display();
26             layoutTestController.dumpAsText();
27             test();
28         } else
29             setTimeout(test, 500);
30
31     </script>
32 </body>