Closed
Description
- Do you want to request a feature or report a bug?
Bug - What is the current behavior?
Run the demo app in Firefox, or go to https://material2-app.firebaseapp.com/ . Click on a text field with placeholder text. The placeholder text will turn blue but remain in the same place. Start typing and the placeholder text will disappear entirely. - What is the expected behavior?
Chrome behaves correctly; when the text field becomes focused, the placeholder text should animate above the entered text. - Which version of Angular and Material, and which browser and OS does this issue affect?
Behavior is identical in Firefox 45 on Mac OS X 10.11, Windows 10, and Android. Running against material2 head. - Other information
Commenting out the "input:-webkit-autofill + .md-input-placeholder" selector in input.scss (https://github.com/angular/material2/blob/master/src/components/input/input.scss#L140) makes Firefox work as expected. Apparently Firefox believes "input:-webkit-autofill" is invalid CSS and won't apply any selectors that contain it.