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