Why does Firefox change input / fill colors?

I tried everything so that Firefox uses the color that I specify as the color for the placeholder in my forms. Including use :-moz-placeholderin my CSS and all, but the resulting color is never specified.

I know that Firefox uses the default light gray color for input / replacement, but why is it possible to change it if it really has not completely changed it?

Here is the code I made to demonstrate, including all CSS specific to Firefox:

Old: http://codepen.io/JTLR/pen/BpJft

New: http://codepen.io/JTLR/pen/EkJhH

+4
source share
2

Firefox:

input::-moz-placeholder,
textarea::-moz-placeholder {
  opacity: 0.54;
}

- ( http://hg.mozilla.org/mozilla-central/file/a07aebef20e7/layout/style/forms.css#l160). , , color background , , , .

, , 1.

+2

Firefox 19+ 2 . ::

::-moz-placeholder

:: - moz-placeholder - -moz-placeholder, Firefox 19.

:-moz-placeholder

-moz-placeholder -:: moz-placeholder Firefox 19.

CodePen - FF.

::-moz-placeholder {
  color:red;
}

, , . ,

p { :-moz-placeholder: #000000; }

.

+2

All Articles