Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Side by Side Diff: LayoutTests/fast/multicol/newmulticol/multicol-becomes-regular-block.html

Issue 341103002: [New Multicolumn] Remove unnecessary calls to setRegionBasedColumnsEnabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Change multicol to regular block</title> 4 <title>Change multicol to regular block</title>
5 <script> 5 <script>
6 if (window.internals)
7 internals.settings.setRegionBasedColumnsEnabled(true);
8 function test() { 6 function test() {
9 var elm = document.getElementById('elm'); 7 var elm = document.getElementById('elm');
10 elm.offsetTop; // trigger layout 8 elm.offsetTop; // trigger layout
11 elm.style.WebkitColumns = 'auto'; 9 elm.style.WebkitColumns = 'auto';
12 elm.style.columns = 'auto'; 10 elm.style.columns = 'auto';
13 } 11 }
14 </script> 12 </script>
15 </head> 13 </head>
16 <body onload="test()"> 14 <body onload="test()">
17 <p>There should be a blue <em>square</em> below.</p> 15 <p>There should be a blue <em>square</em> below.</p>
18 <div id="elm" style="-webkit-columns:4; columns:4; orphans:1; widows:1; width:16em; line-height:4em; background:blue;"> 16 <div id="elm" style="-webkit-columns:4; columns:4; orphans:1; widows:1; width:16em; line-height:4em; background:blue;">
19 <br> 17 <br>
20 <br> 18 <br>
21 <br> 19 <br>
22 <br> 20 <br>
23 </div> 21 </div>
24 </body> 22 </body>
25 </html> 23 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698