OLD | NEW |
1 <script src="../../resources/js-test.js"></script> | 1 <script src="../../resources/js-test.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"> | |
10 <div style="-webkit-writing-mode: horizontal-bt; background-color: red; width: 1
00px; height: 100px;"> | |
11 <div style="height: 5px"></div> | |
12 <div id=horizontal style="background-color: orange; height: 10px; position:
relative; top: -20px;"></div> | |
13 </div> | |
14 </div> | |
15 | |
16 <pre id=console></pre> | 9 <pre id=console></pre> |
17 | 10 |
18 <script> | 11 <script> |
19 shouldBe('document.getElementById("vertical").offsetLeft', '65'); | 12 shouldBe('document.getElementById("vertical").offsetLeft', '65'); |
20 shouldBe('document.getElementById("horizontal").offsetTop', '65'); | |
21 </script> | 13 </script> |
OLD | NEW |