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

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

Issue 2509593002: Implement ::placeholder CSS selector. (Closed)
Patch Set: Test fix, etc. 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/textarea/textarea-placeholder-pseudo-style-expected.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/textarea/textarea-placeholder-pseudo-style-expected.html b/third_party/WebKit/LayoutTests/fast/forms/textarea/textarea-placeholder-pseudo-style-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..0202ee3a5877b2859fbbdfae734d6eb91cd79834
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/forms/textarea/textarea-placeholder-pseudo-style-expected.html
@@ -0,0 +1,56 @@
+<style>
+textarea {
+ color: darkGray;
+}
+
+.red {
+ color: rgb(100, 0, 0);
+}
+
+.blue {
+ color: blue;
+ font-weight: bold;
+ font-size: 16px;
+ width: 135px;
+ height: 30px;
+}
+
+.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:
+<textarea>default</textarea>
+<textarea disabled>default disabled</textarea>
+</div>
+
+<div>
+::-webkit-input-placeholder:
+<textarea class="red">text</textarea>
+<textarea class="red" disabled>disabled text</textarea>
+</div>
+
+<div>
+::placeholder:
+<textarea class="blue">text</textarea>
+<textarea class="blue" disabled>disabled text</textarea>
+</div>
+
+<div>
+Both:
+<textarea class="prefixed-unprefixed">unprefixed</textarea>
+<textarea class="unprefixed-prefixed">prefixed</textarea>
+</div>

Powered by Google App Engine
This is Rietveld 408576698