Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/offset-position-writing-modes.html

Issue 1419813004: Remove the "horizontal-bt" value from -webkit-writing-mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add static_assert to ensure TransformedWritingMode matches to WritingMode Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698