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

Unified 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, 2 months 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/writing-mode/flipped-blocks-text-map-local-to-container.html
diff --git a/third_party/WebKit/LayoutTests/fast/writing-mode/flipped-blocks-text-map-local-to-container.html b/third_party/WebKit/LayoutTests/fast/writing-mode/flipped-blocks-text-map-local-to-container.html
index f122857764442c4d7c2d93c60efc3764433edcb9..ea0686b059bcf9adedf9a85697a8251728c2456f 100644
--- a/third_party/WebKit/LayoutTests/fast/writing-mode/flipped-blocks-text-map-local-to-container.html
+++ b/third_party/WebKit/LayoutTests/fast/writing-mode/flipped-blocks-text-map-local-to-container.html
@@ -1,5 +1,5 @@
<meta name=viewport content="width=device-width">
-<div style="border: solid; -webkit-writing-mode: horizontal-bt; -webkit-logical-width: 200px; -webkit-logical-height: 400px;
+<div style="border: solid; writing-mode: vertical-rl; -webkit-logical-width: 200px; -webkit-logical-height: 400px;
font-size: 36px; line-height: 2;
">
Lorem ipsum dolor <span id="target">sit</span> amet consectetur adipiscing elit.
@@ -14,9 +14,9 @@
var target = document.getElementById("target");
var range = document.createRange();
range.selectNode(target.firstChild);
- var textTop = range.getClientRects()[0].top;
+ var textTop = range.getClientRects()[0].right;
range.selectNode(target);
- var spanTop = range.getClientRects()[0].top;
+ var spanTop = range.getClientRects()[0].right;
if (spanTop === textTop)
result.innerText = "PASS";
else

Powered by Google App Engine
This is Rietveld 408576698