Index: PerformanceTests/Layout/multicol/tall-content-short-columns.html |
diff --git a/PerformanceTests/Layout/multicol/tall-content-short-columns.html b/PerformanceTests/Layout/multicol/tall-content-short-columns.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ab6f4ab236e06ba9cf3fd931fec945e648d9dcec |
--- /dev/null |
+++ b/PerformanceTests/Layout/multicol/tall-content-short-columns.html |
@@ -0,0 +1,28 @@ |
+<!DOCTYPE html> |
+<script src="../../resources/runner.js"></script> |
+<body style="overflow:scroll;"> <!-- don't want auto scrollbars to affect the number of layout passes. --> |
+ <pre id="log"></pre> |
+ <div id="target" style="position:absolute; top:0; left:0; display:none; -webkit-columns:2; column-fill:auto; width:40em; height:2em;"> |
+ <div style="height:1234567890px;">xxxxxxxxxx</div> |
+ </div> |
+ <script> |
+ var target = document.getElementById("target"); |
+ var style = target.style; |
+ |
+ function test() { |
+ style.display = "block"; |
+ PerfTestRunner.forceLayoutOrFullFrame(); |
+ |
+ // Do some hit-testing. |
+ document.caretRangeFromPoint(10, 10); |
+ |
+ style.display = "none"; |
+ PerfTestRunner.forceLayoutOrFullFrame(); |
+ } |
+ |
+ PerfTestRunner.measureRunsPerSecond({ |
+ description: "Measures performance of multicol layout with many columns.", |
+ run: test |
+ }); |
+ </script> |
+</body> |