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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/textarea/textarea-placeholder-pseudo-style.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
1 <!DOCTYPE html>
1 <style> 2 <style>
2 textarea.red::-webkit-input-placeholder { 3 textarea.red::-webkit-input-placeholder {
3 color: rgb(100, 0, 0); 4 color: rgb(100, 0, 0);
4 } 5 }
6
7 .blue::placeholder {
8 color: blue;
9 font-weight: bold;
10 font-size: 16px;
11 }
12
13 .blue {
14 width: 135px;
15 height: 30px;
16 }
17
18 .prefixed-unprefixed::-webkit-input-placeholder {
19 color: red;
20 }
21 .prefixed-unprefixed::placeholder {
22 color: blue;
23 }
24
25 .unprefixed-prefixed::placeholder {
26 color: blue;
27 }
28 .unprefixed-prefixed::-webkit-input-placeholder {
29 color: red;
30 }
5 </style> 31 </style>
6 This tests that you can set the placeholder text color.<br> 32 This tests that you can set the placeholder text color.
33
34 <div>
35 Default style:
36 <textarea placeholder="default"></textarea>
37 <textarea disabled placeholder="default disabled"></textarea>
38 </div>
39
40 <div>
41 ::-webkit-input-placeholder:
7 <textarea class="red" placeholder="text"></textarea> 42 <textarea class="red" placeholder="text"></textarea>
8 <textarea class="red" disabled placeholder="disabled text"></textarea> 43 <textarea class="red" disabled placeholder="disabled text"></textarea>
9 <textarea placeholder="default"></textarea> 44 </div>
10 <textarea disabled placeholder="default disabled"></textarea> 45
46 <div>
47 ::placeholder:
48 <textarea class="blue" placeholder="text"></textarea>
49 <textarea class="blue" disabled placeholder="disabled text"></textarea>
50 </div>
51
52 <div>
53 Both:
54 <textarea class="prefixed-unprefixed" placeholder="unprefixed"></textarea>
55 <textarea class="unprefixed-prefixed" placeholder="prefixed"></textarea>
56 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698