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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/text/placeholder-pseudo-style-expected.html

Issue 2509593002: Implement ::placeholder CSS selector. (Closed)
Patch Set: <!DOCTYPE html> Created 4 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: third_party/WebKit/LayoutTests/fast/forms/text/placeholder-pseudo-style-expected.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/text/placeholder-pseudo-style-expected.html b/third_party/WebKit/LayoutTests/fast/forms/text/placeholder-pseudo-style-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..147639aee31db28bdfaec67a0552a1a9ce2095f0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/forms/text/placeholder-pseudo-style-expected.html
@@ -0,0 +1,57 @@
+<!DOCTYPE html>
+<style>
+input {
+ color: darkGray;
+}
+
+input.red {
+ color: rgb(100, 0, 0);
+}
+
+.blue {
+ color: blue;
+}
+
+.prefixed-unprefixed {
+ color: red;
+}
+.prefixed-unprefixed {
+ color: blue;
+}
+
+.unprefixed-prefixed {
+ color: blue;
+}
+.unprefixed-prefixed {
+ color: red;
+}
+</style>
+This tests that you can set the placeholder text color.
+
+<div>
+Default style:
+<input value="default">
+<input value="default disabled">
+</div>
+
+<div>
+::-webkit-input-placeholder:
+<input class="red" value="text">
+<input class="red" type="search" value="search">
+<input class="red" type="text" value="password">
+<input class="red" disabled value="disabled text">
+</div>
+
+<div>
+::placeholder:
+<input class="blue" value="text">
+<input class="blue" type="search" value="search">
+<input class="blue" type="text" value="password">
+<input class="blue" disabled value="disabled text">
+</div>
+
+<div>
+Both:
+<input class="prefixed-unprefixed" value="unprefixed">
+<input class="unprefixed-prefixed" value="prefixed">
+</div>

Powered by Google App Engine
This is Rietveld 408576698