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

Unified Diff: LayoutTests/fast/forms/relayout-shifts-inner-editor-expected.html

Issue 952663002: Text inside input field gets misaligned when relaying out (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaselined Created 5 years, 10 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/fast/forms/relayout-shifts-inner-editor-expected.html
diff --git a/LayoutTests/fast/forms/relayout-shifts-inner-editor-expected.html b/LayoutTests/fast/forms/relayout-shifts-inner-editor-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..95823ba2ef2e11fb785a63543722575b501c4ef5
--- /dev/null
+++ b/LayoutTests/fast/forms/relayout-shifts-inner-editor-expected.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<style>
+input {
+ position: absolute;
+ top: 0;
+ left: 30px;
+ height: 50px;
+ width: 200px;
+}
+</style>
+<div>This change checks that the caret in the &gt;input&lt; below doesn't shift out of it after several layouts.</div>
+<div>This test has passed if the caret is centered <b>inside</b> the &gt;input&lt;</div>
+<input id="input" type="text" autofocus>
+<script>
+input.focus();
+</script>
« no previous file with comments | « LayoutTests/fast/forms/relayout-shifts-inner-editor.html ('k') | Source/core/layout/LayoutTextControlSingleLine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698