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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/placeholder-position.html

Issue 1616553004: Align placeholder element and inner-editor element at their baselines. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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: third_party/WebKit/LayoutTests/fast/forms/placeholder-position.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/placeholder-position.html b/third_party/WebKit/LayoutTests/fast/forms/placeholder-position.html
index f94ca3d94c4a9b26798a2713df63c37bf6877899..a3f6220e55829b5c72e881f11f83238ef9fe066a 100644
--- a/third_party/WebKit/LayoutTests/fast/forms/placeholder-position.html
+++ b/third_party/WebKit/LayoutTests/fast/forms/placeholder-position.html
@@ -4,8 +4,12 @@
}
</style>
<!-- This tests that the placeholder is positioned correctly in different kinds of elements -->
-<input type="search" placeholder="placeholder"><br>
-<input type="text" placeholder="placeholder"><br>
+<input type="search" placeholder="placeholder">
+<br>
+<input type="text" placeholder="placeholder" size=10>
+<input placeholder="placeholder" style="line-height:1;" size=10>
+<input placeholder="&#x65E5;&#x672C;&#x8A9E;placeholder">
+<br>
<input type="search" placeholder="placeholder" style="direction: rtl"><br>
<input type="search" placeholder="placeholder" results=5><br>
<textarea placeholder="placeholder"></textarea><br>
@@ -14,10 +18,14 @@
<input type="text" placeholder="placeholder" style="font-size: 15px; border: solid 5px black; margin: 5px;"><br>
<input value="Value" style="line-height: 25px;">
-<input placeholder="placeholder" style="line-height: 25px;"> <br>
+<input placeholder="placeholder" style="line-height: 25px;">
+<input placeholder="placeholder" style="height: 25px;">
+<input placeholder="placeholder" style="height: 25px; line-height: 25px;">
+<br>
<input value="Value" style="text-align: center;">
<input placeholder="placeholder" style="text-align: center;">
-<input placeholder="placeholder" class="center"> <br>
+<input placeholder="placeholder" class="center">
+<br>
<input type="text" placeholder="placeholder" style="padding-top: 15px; transform: translateY(30px) rotateZ(30deg)"><br>

Powered by Google App Engine
This is Rietveld 408576698