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

Unified Diff: LayoutTests/fast/forms/positioned-input-text-cursor.html

Issue 709613003: To ensure consistency between layouts, we need to reset any overriden top for centering the textfie… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updates Created 6 years, 1 month 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/fast/forms/positioned-input-text-cursor.html
diff --git a/LayoutTests/fast/forms/positioned-input-text-cursor.html b/LayoutTests/fast/forms/positioned-input-text-cursor.html
new file mode 100644
index 0000000000000000000000000000000000000000..e0df0fde03215cf2f1963b8fa3a991f0658855d1
--- /dev/null
+++ b/LayoutTests/fast/forms/positioned-input-text-cursor.html
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<script>
+var i = 0;
+var refreshIntervalId;
+
+function repaintTest()
+{
+ refreshIntervalId = setInterval(function(){moveInputElement();}, 10);
+}
+
+function moveInputElement()
+{
+ var input = document.getElementById('input');
+ i++;
+ input.style.left = i*10 + 'px';
+ input.style.width = '200px';
+ if (i >= 3) {
+ clearInterval(refreshIntervalId);
+ if (window.testRunner)
+ testRunner.notifyDone();
+ }
+}
+
+if (window.testRunner)
+ testRunner.waitUntilDone();
+window.onload = repaintTest();
+</script>
+
+<style>
+input {
+ position: absolute;
+ top: 0;
+ left: 0;
+ height: 50px;
+}
+</style>
+<!-- The cursor should not be rendered outside the input textfield. -->
Julien - ping for review 2014/11/19 01:13:27 The description should be dumped into the ouput, u
+<input id="input" type="text" autofocus>

Powered by Google App Engine
This is Rietveld 408576698