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

Unified Diff: third_party/WebKit/LayoutTests/fast/writing-mode/flipped-blocks-hit-test-line-edges.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-hit-test-line-edges.html
diff --git a/third_party/WebKit/LayoutTests/fast/writing-mode/flipped-blocks-hit-test-line-edges.html b/third_party/WebKit/LayoutTests/fast/writing-mode/flipped-blocks-hit-test-line-edges.html
index 07ac5c515f9349c8493fbc7096e5846d8b1d23e7..846a8a474623297f53e39f90fc83d96d36cece36 100644
--- a/third_party/WebKit/LayoutTests/fast/writing-mode/flipped-blocks-hit-test-line-edges.html
+++ b/third_party/WebKit/LayoutTests/fast/writing-mode/flipped-blocks-hit-test-line-edges.html
@@ -2,10 +2,10 @@
<script src="../../resources/ahem.js"></script>
<div id="target" style="
outline: dashed lightblue;
- width: 150px;
+ height: 150px;
padding: 25px;
font: 20px Ahem;
- -webkit-writing-mode: horizontal-bt;
+ writing-mode: vertical-rl;
">Lorem ipsum dolor sit amet</div>
<pre id="log"></pre>
<script>
@@ -19,13 +19,13 @@
document.getElementById("log").appendChild(document.createTextNode(message + "\n"));
}
- function test(x, y, expectedOffset)
+ function test(y, x, expectedOffset)
{
var actualOffset = document.caretRangeFromPoint(8 + x, 8 + y).startOffset;
if (actualOffset === expectedOffset)
- log("PASS: offset at (" + x + "," + y + ") was " + actualOffset + ".");
+ log("PASS: offset at (" + y + "," + x + ") was " + actualOffset + ".");
else
- log("FAIL: offset at (" + x + "," + y + ") was " + actualOffset + ". Expected " + expectedOffset + ".");
+ log("FAIL: offset at (" + y + "," + x + ") was " + actualOffset + ". Expected " + expectedOffset + ".");
}
test(100, 105, 4);
@@ -36,6 +36,6 @@
test(160, 26, 26);
test(60, 25, 24);
test(160, 25, 26);
- test(60, 24, 26);
+ test(60, 24, 24);
test(160, 24, 26);
</script>

Powered by Google App Engine
This is Rietveld 408576698