Index: LayoutTests/editing/selection/repaint-rect-for-vertical-writing-mode-with-positioned-root.html |
diff --git a/LayoutTests/editing/selection/repaint-rect-for-vertical-writing-mode-with-positioned-root.html b/LayoutTests/editing/selection/repaint-rect-for-vertical-writing-mode-with-positioned-root.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8b520e2b6b3bddc53a5ccaee72b64be7cde12d5b |
--- /dev/null |
+++ b/LayoutTests/editing/selection/repaint-rect-for-vertical-writing-mode-with-positioned-root.html |
@@ -0,0 +1,30 @@ |
+<!DOCTYPE html> |
+<script src="../../fast/repaint/resources/text-based-repaint.js"></script> |
+<style> |
+#test { |
+ position: absolute; |
+ left: 0px; |
+ top: 200px; |
+ -webkit-writing-mode: vertical-rl; |
+ width: 200px; |
+ height: 300px; |
+ border: 1px solid black; |
+ outline-style: none; |
+} |
+</style> |
+<script> |
+if (window.testRunner) |
+ testRunner.dumpAsTextWithPixelResults(); |
+ |
+function repaintTest() { |
+ var testElement = document.getElementById("test"); |
+ var selection = window.getSelection(); |
+ selection.collapse(testElement, 1); |
+ selection.modify("Extend", "Forward", "Line"); |
+} |
+</script> |
+<body onload="runRepaintTest()"> |
+<div id="test" contenteditable="true"> |
+<div>Some text in vertical mode</div> |
+</div> |
+</body> |