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

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: Fixing nit in testcase Created 6 years, 5 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: 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..62607c785126c6271c60523e010324644ebd9ff8
--- /dev/null
+++ b/LayoutTests/editing/inserting/insert-paragraph-between-text-with-positioned-root.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<html>
+<head>
ojan 2014/07/08 23:53:30 Please remove the html and head element as this te
arpitab_ 2014/07/09 13:57:26 Done.
+<script src="../../fast/repaint/resources/text-based-repaint.js" type="text/javascript"></script>
ojan 2014/07/08 23:53:30 No need for the type attribute.
arpitab_ 2014/07/09 13:57:26 Done.
+<style>
+.textArea {
+ position: absolute; left: 0px; top: 200px;
ojan 2014/07/08 23:53:30 Please put each of these on their own line.
arpitab_ 2014/07/09 13:57:26 Done.
+ -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");
+ testElement.focus();
+
+ var selection = window.getSelection();
+ selection.collapse(testElement, 1);
+ selection.modify("move", "backward", "character");
+ document.execCommand("InsertParagraph");
ojan 2014/07/08 23:53:30 execCommands and selections are complicated and ma
+}
+</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
This is Rietveld 408576698