Я только что играл с той же проблемой сегодня и обнаружил, что:
если правила CSS для заполненного ввода назначены на :-webkit-autofill
и сопровождаются другими селекторами, Firefox просто игнорирует весь набор правил.
Поэтому мне нужно было добавить его как отдельные правила CSS, даже если они полностью идентичны:
.bmd-input :focus ~ label,
.bmd-input .filled ~ label{
color: rgba(66,66,66,1);
font-size: 12px;
top: 0;
line-height: 24px;
cursor: default!important;
}
.bmd-input input:-webkit-autofill ~ label,
.bmd-input textarea:-webkit-autofill ~ label{
color: rgba(66,66,66,1);
font-size: 12px;
top: 0;
line-height: 24px;
cursor: default!important;
}
.bmd-input input:-moz-autofill ~ label,
.bmd-input textarea:-moz-autofill ~ label{
color: rgba(66,66,66,1);
font-size: 12px;
top: 0;
line-height: 24px;
cursor: default!important;
}