Chromium Code Reviews

Unified Diff: LayoutTests/editing/inserting/insert-paragraph-between-text-with-positioned-root.html

Issue 18254006: Repaint issues with vertical text which has absolute (or fixed) position specified for it. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Adding entry in TestExpectations Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: LayoutTests/editing/inserting/insert-paragraph-between-text-with-positioned-root.html
diff --git a/LayoutTests/editing/inserting/insert-paragraph-between-text-with-positioned-root.html b/LayoutTests/editing/inserting/insert-paragraph-between-text-with-positioned-root.html
new file mode 100644
index 0000000000000000000000000000000000000000..d35687cfc4c4faf4f31d2efa79cf669e9c564703
--- /dev/null
+++ b/LayoutTests/editing/inserting/insert-paragraph-between-text-with-positioned-root.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../../fast/repaint/resources/text-based-repaint.js" type="text/javascript"></script>
+<style>
+.textArea {
+ 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');
yosin_UTC9 2014/07/04 01:13:09 nit: Please use double-quote because other parts o
+ testElement.focus();
+
+ var selection = window.getSelection();
+ selection.collapse(testElement, 1);
+ selection.modify("move", "backward", "character");
+ document.execCommand("InsertParagraph");
+}
+</script>
+</head>
+<body onload="runRepaintTest()">
+<div class="textArea" contenteditable="true">
+<p>
+<span id="test">Some text in vertical mode</span>
+</p>
+</div>
+</body>
+</html>

Powered by Google App Engine