Skip to content

Firefox md-input placeholder text doesn't appear above user input #342

Closed
@dozingcat

Description

@dozingcat
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1Impacts a large percentage of users; if a workaround exists it is partial or overly painfulhelp wantedThe team would appreciate a PR from the community to address this issue

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions