OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="resources/text-based-repaint.js"></script> | 2 <script src="resources/text-based-repaint.js"></script> |
3 <script> | 3 <script> |
4 if (window.internals) | 4 if (window.internals) { |
| 5 internals.settings.setRegionBasedColumnsEnabled(true); |
5 onload = runRepaintTest; | 6 onload = runRepaintTest; |
6 else | 7 } else { |
7 onclick = repaintTest; | 8 onclick = repaintTest; |
| 9 } |
8 function repaintTest() { | 10 function repaintTest() { |
9 document.getElementById('elm').style.background = 'green'; | 11 document.getElementById('elm').style.background = 'green'; |
10 } | 12 } |
11 </script> | 13 </script> |
12 <div id="container" style="-webkit-columns:3; -webkit-column-gap:0; column-fill:
auto; width:500px; height:500px; -webkit-writing-mode:vertical-rl;"> | 14 <div id="container" style="-webkit-columns:3; -webkit-column-gap:0; column-fill:
auto; width:500px; height:500px; -webkit-writing-mode:vertical-rl;"> |
13 <div style="width:100px;"> | 15 <div style="width:100px;"> |
14 <div id="elm" style="width:1500px; background:yellow;"></div> | 16 <div id="elm" style="width:1500px; background:yellow;"></div> |
15 </div> | 17 </div> |
16 </div> | 18 </div> |
17 <p>Test changing the background color of a big block that overflows the flow thr
ead.</p> | 19 <p>Test changing the background color of a big block that overflows the flow thr
ead.</p> |
18 <p>A green square should be seen above (if tested manually, you need to click fi
rst).</p> | 20 <p>A green square should be seen above (if tested manually, you need to click fi
rst).</p> |
OLD | NEW |