Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / offset-position-writing-modes.html
blobbfde6eca390d6f04cd0d9b3ecaf994320ffa65b8
1 <script src="../../resources/js-test.js"></script>
2 <div style="position:relative">
3 <div style="-webkit-writing-mode: vertical-rl; background-color: green; width: 100px; height: 100px;">
4 <div style="width: 5px"></div>
5 <div id=vertical style="background-color: yellow; width: 10px; position: relative; left: -20px;"></div>
6 </div>
7 </div>
9 <div style="position:relative">
10 <div style="-webkit-writing-mode: horizontal-bt; background-color: red; width: 100px; 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>
16 <pre id=console></pre>
18 <script>
19 shouldBe('document.getElementById("vertical").offsetLeft', '65');
20 shouldBe('document.getElementById("horizontal").offsetTop', '65');
21 </script>