OLD | NEW |
(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> |
OLD | NEW |