OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../../resources/runner.js"></script> |
| 3 <style> |
| 4 #target div { display:table; } |
| 5 #target span { display:block; break-inside:avoid; height:2em; } |
| 6 </style> |
| 7 <pre id="log"></pre> |
| 8 <!-- We only want to measure layout performance, so try to avoid irrelevant thin
gs, such as painting. --> |
| 9 <div style="overflow:hidden; width:0; height:0;"> |
| 10 <div id="target" style="columns:3; column-fill:auto; width:40em; height:13em
; line-height:2em;"> |
| 11 <div> |
| 12 <span></span> |
| 13 <div> |
| 14 <span></span> |
| 15 <div> |
| 16 <span></span> |
| 17 <div> |
| 18 <span></span> |
| 19 <div> |
| 20 <span></span> |
| 21 <div> |
| 22 <span></span> |
| 23 <div> |
| 24 <span></span> |
| 25 <div> |
| 26 <span></span> |
| 27 <div> |
| 28 <span></span> |
| 29 <div> |
| 30 <span></span> |
| 31 <div> |
| 32 <span></span> |
| 33 <div> |
| 34 <span></span> |
| 35 <div> |
| 36 <span></span> |
| 37 </div> |
| 38 </div> |
| 39 </div> |
| 40 </div> |
| 41 </div> |
| 42 </div> |
| 43 </div> |
| 44 </div> |
| 45 </div> |
| 46 </div> |
| 47 </div> |
| 48 </div> |
| 49 </div> |
| 50 </div> |
| 51 </div> |
| 52 <script> |
| 53 var target = document.getElementById("target"); |
| 54 var style = target.style; |
| 55 |
| 56 function test() { |
| 57 style.width = "41em"; |
| 58 PerfTestRunner.forceLayout(); |
| 59 style.width = "40em"; |
| 60 PerfTestRunner.forceLayout(); |
| 61 } |
| 62 |
| 63 PerfTestRunner.measureRunsPerSecond({ |
| 64 description: "Measures performance of multicol layout in deeply nested t
ables.", |
| 65 run: test |
| 66 }); |
| 67 </script> |
OLD | NEW |