multicol-001.html (1042B)
1 <!DOCTYPE html> 2 <link rel="help" href="https://wicg.github.io/layout-instability/" /> 3 <script src="/resources/testharness.js"></script> 4 <script src="/resources/testharnessreport.js"></script> 5 <script src="resources/util.js"></script> 6 <div id="multicol" style="position:relative; columns:5; column-gap:0; column-gap:0; width:500px; height:1px;"> 7 <div style="contain:size; height:100px; background:hotpink;"></div> 8 <div style="contain:size; height:100px; background:hotpink;"></div> 9 <div style="contain:size; height:100px; background:hotpink;"></div> 10 <div style="contain:size; height:100px; background:hotpink;"></div> 11 <div style="contain:size; height:100px; background:hotpink;"></div> 12 </div> 13 <script> 14 15 promise_test(async () => { 16 const watcher = new ScoreWatcher; 17 await waitForAnimationFrames(2); 18 19 multicol.style.top = '100px'; 20 const expectedScore = computeExpectedScore(500 * (100 + 100), 100); 21 22 await watcher.promise; 23 assert_equals(watcher.score, expectedScore); 24 }, 'Move multicol container with overflow'); 25 26 </script>