html - Why do I have to separate the -input-placeholder css tag for each browser? -


i tried setting input placeholder color using following css

input::-webkit-input-placeholder,      input:-moz-placeholder,      input::-moz-placeholder,      input::-ms-placeholder {         color: black;      }
<input placeholder="some text">

but not work expected in chrome 59. instead, have write

input::-webkit-input-placeholder {      color: red;  }  input:-moz-placeholder {      color: red;  }  input::-moz-placeholder {      color: red;  }  input::-ms-placeholder {      color: red;  }
<input placeholder="some text">

why have write code this?


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -