OLD | NEW |
1 <script src="../../fast/js/resources/js-test-pre.js"></script> | 1 <script src="../../fast/js/resources/js-test-pre.js"></script> |
2 <div style="position:relative"> | 2 <div style="position:relative"> |
3 <div style="-webkit-writing-mode: vertical-rl; background-color: green; width: 1
00px; height: 100px;"> | 3 <div style="-webkit-writing-mode: vertical-rl; background-color: green; width: 1
00px; height: 100px;"> |
4 <div style="width: 5px"></div> | 4 <div style="width: 5px"></div> |
5 <div id=vertical style="background-color: yellow; width: 10px; position: rel
ative; left: -20px;"></div> | 5 <div id=vertical style="background-color: yellow; width: 10px; position: rel
ative; left: -20px;"></div> |
6 </div> | 6 </div> |
7 </div> | 7 </div> |
8 | 8 |
9 <div style="position:relative"> | 9 <div style="position:relative"> |
10 <div style="-webkit-writing-mode: horizontal-bt; background-color: red; width: 1
00px; height: 100px;"> | 10 <div style="-webkit-writing-mode: horizontal-bt; background-color: red; width: 1
00px; height: 100px;"> |
11 <div style="height: 5px"></div> | 11 <div style="height: 5px"></div> |
12 <div id=horizontal style="background-color: orange; height: 10px; position:
relative; top: -20px;"></div> | 12 <div id=horizontal style="background-color: orange; height: 10px; position:
relative; top: -20px;"></div> |
13 </div> | 13 </div> |
14 </div> | 14 </div> |
15 | 15 |
16 <pre id=console></pre> | 16 <pre id=console></pre> |
17 | 17 |
18 <script> | 18 <script> |
19 shouldBe('document.getElementById("vertical").offsetLeft', '65'); | 19 shouldBe('document.getElementById("vertical").offsetLeft', '65'); |
20 shouldBe('document.getElementById("horizontal").offsetTop', '65'); | 20 shouldBe('document.getElementById("horizontal").offsetTop', '65'); |
21 </script> | 21 </script> |
22 <script src="../../fast/js/resources/js-test-post.js"></script> | |
OLD | NEW |