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

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: 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 unified diff | Download patch
OLDNEW
1 <style> 1 <style>
rune 2016/11/21 09:42:53 Unless this is intentionally relying on quirks mod
tkent 2016/11/21 14:42:07 Done.
2 textarea.red::-webkit-input-placeholder { 2 textarea.red::-webkit-input-placeholder {
3 color: rgb(100, 0, 0); 3 color: rgb(100, 0, 0);
4 } 4 }
5
6 .blue::placeholder {
7 color: blue;
8 font-weight: bold;
9 font-size: 16px;
10 }
11
12 .blue {
13 width: 135px;
14 height: 30px;
15 }
16
17 .prefixed-unprefixed::-webkit-input-placeholder {
18 color: red;
19 }
20 .prefixed-unprefixed::placeholder {
21 color: blue;
22 }
23
24 .unprefixed-prefixed::placeholder {
25 color: blue;
26 }
27 .unprefixed-prefixed::-webkit-input-placeholder {
28 color: red;
29 }
5 </style> 30 </style>
6 This tests that you can set the placeholder text color.<br> 31 This tests that you can set the placeholder text color.
32
33 <div>
34 Default style:
35 <textarea placeholder="default"></textarea>
36 <textarea disabled placeholder="default disabled"></textarea>
37 </div>
38
39 <div>
40 ::-webkit-input-placeholder:
7 <textarea class="red" placeholder="text"></textarea> 41 <textarea class="red" placeholder="text"></textarea>
8 <textarea class="red" disabled placeholder="disabled text"></textarea> 42 <textarea class="red" disabled placeholder="disabled text"></textarea>
9 <textarea placeholder="default"></textarea> 43 </div>
10 <textarea disabled placeholder="default disabled"></textarea> 44
45 <div>
46 ::placeholder:
47 <textarea class="blue" placeholder="text"></textarea>
48 <textarea class="blue" disabled placeholder="disabled text"></textarea>
49 </div>
50
51 <div>
52 Both:
53 <textarea class="prefixed-unprefixed" placeholder="unprefixed"></textarea>
54 <textarea class="unprefixed-prefixed" placeholder="prefixed"></textarea>
55 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698