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