Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / PerformanceTests / Layout / flexbox-column-nowrap.html
blob9db61c9745efae49763b73e42918b83d524c4ba3
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../resources/runner.js"></script>
5 </head>
6 <body style="overflow-y: scroll">
8 <div id="flexbox" style="height: 400px; flex-direction: column; justify-content: center; align-items: center;">
9 <div style="flex: 1 auto">1</div>
10 <div style="flex: 2 auto">2 2</div>
11 <div style="flex: 3 auto">3 3 3</div>
12 <div style="flex: 4 auto">4 4 4 4</div>
13 <div style="flex: 5 auto">5 5 5 5 5</div>
14 <div style="flex: 6 auto">6 6 6 6 6 6</div>
15 <div style="flex: 7 auto">7 7 7 7 7 7 7</div>
16 <div style="flex: 8 auto">8 8 8 8 8 8 8 8</div>
17 <div style="flex: 9 auto">9 9 9 9 9 9 9 9 9</div>
18 <div style="flex: 10 auto">10 10 10 10 10 10 10 10 10</div>
19 </div>
21 </body>
22 <script>
23 function runTest()
25 document.getElementById("flexbox").style.display = 'flex';
26 PerfTestRunner.forceLayoutOrFullFrame();
27 document.getElementById("flexbox").style.display = '';
28 PerfTestRunner.forceLayoutOrFullFrame();
31 PerfTestRunner.measureRunsPerSecond({
32 description: "Measures performance of flexbox with no wrapping (column).",
33 run: runTest,
34 done: function() {
35 document.getElementById("flexbox").style.display = 'none';
37 });
38 </script>
39 </html>