OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../../../resources/testharness.js"></script> |
| 3 <script src="../../../resources/testharnessreport.js"></script> |
| 4 <div style="position:relative; writing-mode:vertical-lr; columns:3; column-gap:1
0px; column-fill:auto; width:100px; height:320px;"> |
| 5 <div id="first" style="width:100px;"></div> |
| 6 <div id="second" style="width:100px;"></div> |
| 7 <div id="third" style="width:100px;"></div> |
| 8 </div> |
| 9 <script> |
| 10 test(function() { |
| 11 assert_equals(document.getElementById('first').offsetLeft, 0); |
| 12 assert_equals(document.getElementById('first').offsetTop, 0); |
| 13 }, "offsetLeft and offsetTop in vertical-lr at column boundaries, first elem
ent"); |
| 14 |
| 15 test(function() { |
| 16 assert_equals(document.getElementById('second').offsetLeft, 0); |
| 17 assert_equals(document.getElementById('second').offsetTop, 110); |
| 18 }, "offsetLeft and offsetTop in vertical-lr at column boundaries, second ele
ment"); |
| 19 |
| 20 test(function() { |
| 21 assert_equals(document.getElementById('third').offsetLeft, 0); |
| 22 assert_equals(document.getElementById('third').offsetTop, 220); |
| 23 }, "offsetLeft and offsetTop in vertical-lr at column boundaries, third elem
ent"); |
| 24 </script> |
OLD | NEW |