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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/writing-mode/flipped-blocks-text-map-local-to-container.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 <meta name=viewport content="width=device-width"> 1 <meta name=viewport content="width=device-width">
2 <div style="border: solid; -webkit-writing-mode: horizontal-bt; -webkit-logical- width: 200px; -webkit-logical-height: 400px; 2 <div style="border: solid; writing-mode: vertical-rl; -webkit-logical-width: 200 px; -webkit-logical-height: 400px;
3 font-size: 36px; line-height: 2; 3 font-size: 36px; line-height: 2;
4 "> 4 ">
5 Lorem ipsum dolor <span id="target">sit</span> amet consectetur adipiscing e lit. 5 Lorem ipsum dolor <span id="target">sit</span> amet consectetur adipiscing e lit.
6 </div> 6 </div>
7 <p id="result"> 7 <p id="result">
8 FAIL: Test did not run. 8 FAIL: Test did not run.
9 </p> 9 </p>
10 <script> 10 <script>
11 if (window.testRunner) { 11 if (window.testRunner) {
12 testRunner.dumpAsText(); 12 testRunner.dumpAsText();
13 } 13 }
14 var target = document.getElementById("target"); 14 var target = document.getElementById("target");
15 var range = document.createRange(); 15 var range = document.createRange();
16 range.selectNode(target.firstChild); 16 range.selectNode(target.firstChild);
17 var textTop = range.getClientRects()[0].top; 17 var textTop = range.getClientRects()[0].right;
18 range.selectNode(target); 18 range.selectNode(target);
19 var spanTop = range.getClientRects()[0].top; 19 var spanTop = range.getClientRects()[0].right;
20 if (spanTop === textTop) 20 if (spanTop === textTop)
21 result.innerText = "PASS"; 21 result.innerText = "PASS";
22 else 22 else
23 result.innerText = "FAIL: Text top was " + textTop + " but expected " + spanTop + "."; 23 result.innerText = "FAIL: Text top was " + textTop + " but expected " + spanTop + ".";
24 </script> 24 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698