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