summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/dom/offset-position-writing-modes.html
blob: f73fbabcbc823ebe45b0469fe936eff04e4c6c04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<script src="../../resources/js-test.js"></script>
<div style="position:relative">
<div style="-webkit-writing-mode: vertical-rl; background-color: green; width: 100px; height: 100px;">
    <div style="width: 5px"></div>
    <div id=vertical style="background-color: yellow; width: 10px; position: relative; left: -20px;"></div>
</div>
</div>

<pre id=console></pre>

<script>
shouldBe('document.getElementById("vertical").offsetLeft', '65');
</script>