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> |