OLD | NEW |
| (Empty) |
1 <style> | |
2 div.test { | |
3 width: 100px; | |
4 height: 100px; | |
5 -webkit-column-width: 100px; | |
6 -webkit-column-gap: 0; | |
7 -webkit-column-progression: reverse; | |
8 column-width: 100px; | |
9 column-gap: 0; | |
10 column-fill: auto; | |
11 overflow: hidden; | |
12 } | |
13 | |
14 div.test > div { | |
15 -webkit-logical-height: 100%; | |
16 } | |
17 | |
18 div.test > div:first-child { | |
19 background-color: red; | |
20 } | |
21 | |
22 div.test > div:last-child { | |
23 background-color: green; | |
24 } | |
25 </style> | |
26 <div class="test"> | |
27 <div></div><div></div> | |
28 </div> | |
29 <div class="test" style="direction: rtl;"> | |
30 <div></div><div></div> | |
31 </div> | |
32 <div class="test" style="-webkit-writing-mode: horizontal-bt;"> | |
33 <div></div><div></div> | |
34 </div> | |
35 <div class="test" style="-webkit-writing-mode: vertical-lr;"> | |
36 <div></div><div></div> | |
37 </div> | |
38 <div class="test" style="-webkit-column-axis: vertical;"> | |
39 <div></div><div></div> | |
40 </div> | |
41 <div class="test" style="-webkit-writing-mode: vertical-lr; -webkit-column-axis:
horizontal;"> | |
42 <div></div><div></div> | |
43 </div> | |
44 <script> | |
45 var tests = document.querySelectorAll("div.test"); | |
46 for (var i = 0; i < tests.length; ++i) { | |
47 var test = tests[i]; | |
48 if (test.scrollLeft) | |
49 test.scrollLeft = 0; | |
50 else | |
51 test.scrollLeft = test.scrollWidth; | |
52 if (test.scrollTop) | |
53 test.scrollTop = 0; | |
54 } | |
55 </script> | |
OLD | NEW |