OLD | NEW |
| 1 <script src="../../resources/run-after-display.js"></script> |
1 <body style="overflow: hidden;"> | 2 <body style="overflow: hidden;"> |
2 <p> | 3 <p> |
3 Test for <i><a href="rdar://problem/10098679"><rdar://problem/1009867
9></a> | 4 Test for <i><a href="rdar://problem/10098679"><rdar://problem/1009867
9></a> |
4 Assertion failure in <tt>RenderLayer::paintPaginatedChildLayer()</tt></i
>. | 5 Assertion failure in <tt>RenderLayer::paintPaginatedChildLayer()</tt></i
>. |
5 </p> | 6 </p> |
6 <p> | 7 <p> |
7 The test passes if it does not cause an assertion failure or a crash. | 8 The test passes if it does not cause an assertion failure or a crash. |
8 </p> | 9 </p> |
9 <!-- specifying opacity < 1 so that the transition from having columns | 10 <!-- specifying opacity < 1 so that the transition from having columns |
10 to not having columns does not cause the layer to go away --> | 11 to not having columns does not cause the layer to go away --> |
11 <div id="target" style="-webkit-column-count:2; column-count:2; column-fill:
auto; opacity: 0.5; height: 20px;"> | 12 <div id="target" style="-webkit-column-count:2; column-count:2; column-fill:
auto; opacity: 0.5; height: 20px;"> |
12 <div style="position:relative;"></div> | 13 <div style="position:relative;"></div> |
13 </div> | 14 </div> |
14 <div id="widener" style="height: 10px; width: 200%;"></div> | 15 <div id="widener" style="height: 10px; width: 200%;"></div> |
15 <script> | 16 <script> |
16 function test() | 17 function test() |
17 { | 18 { |
18 document.getElementById("widener").style.removeProperty("width"); | 19 document.getElementById("widener").style.removeProperty("width"); |
19 document.getElementById("target").style.removeProperty("-webkit-colu
mn-count"); | 20 document.getElementById("target").style.removeProperty("-webkit-colu
mn-count"); |
20 } | 21 } |
21 | |
22 window.scrollBy(1, 0); | |
23 | 22 |
24 if (window.testRunner) { | 23 window.scrollBy(1, 0); |
25 testRunner.display(); | 24 if (window.testRunner) |
26 testRunner.dumpAsText(); | 25 testRunner.dumpAsText(); |
27 test(); | 26 runAfterDisplay(test); |
28 } else | |
29 setTimeout(test, 500); | |
30 | |
31 </script> | 27 </script> |
32 </body> | 28 </body> |
OLD | NEW |