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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <style>
3 input {
4 color: darkGray;
5 }
6
7 input.red {
8 color: rgb(100, 0, 0);
9 }
10
11 .blue {
12 color: blue;
13 }
14
15 .prefixed-unprefixed {
16 color: red;
17 }
18 .prefixed-unprefixed {
19 color: blue;
20 }
21
22 .unprefixed-prefixed {
23 color: blue;
24 }
25 .unprefixed-prefixed {
26 color: red;
27 }
28 </style>
29 This tests that you can set the placeholder text color.
30
31 <div>
32 Default style:
33 <input value="default">
34 <input value="default disabled">
35 </div>
36
37 <div>
38 ::-webkit-input-placeholder:
39 <input class="red" value="text">
40 <input class="red" type="search" value="search">
41 <input class="red" type="text" value="password">
42 <input class="red" disabled value="disabled text">
43 </div>
44
45 <div>
46 ::placeholder:
47 <input class="blue" value="text">
48 <input class="blue" type="search" value="search">
49 <input class="blue" type="text" value="password">
50 <input class="blue" disabled value="disabled text">
51 </div>
52
53 <div>
54 Both:
55 <input class="prefixed-unprefixed" value="unprefixed">
56 <input class="unprefixed-prefixed" value="prefixed">
57 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698