Skip to content

bug(MatChip): mat-chip-avatar with an image is not working correctly in Chrome #19822

@KlausHans

Description

@KlausHans

Reproduction

Use StackBlitz to reproduce your issue: https://stackblitz.com/edit/angular-3vp4xw?file=src/app/chips-autocomplete-example.html

Steps to reproduce:

  1. Open Stackblitz in Firefox -> everything is fine
  2. Open Stackblitz in Chrome -> the image in the mat-chip-avatar is not scaled and overflows. The layout is messed up.

Expected Behavior

What behavior were you expecting to see?
I expect the view in Chrome like i have in Firefox -> The image in the mat-chip-avatar is scaled correctly

Actual Behavior

What behavior did you actually see?
In Chrome the image in the mat-chip-avatar is not scaled and overflows. The layout is messed up.

Environment

"@angular/animations": "^10.0.2",
"@angular/cdk": "^10.0.1",
"@angular/common": "^10.0.2",
"@angular/compiler": "^10.0.2",
"@angular/core": "^10.0.2",
"@angular/forms": "^10.0.2",
"@angular/material": "^10.0.1",
"@angular/material-moment-adapter": "^10.0.1",
"@angular/platform-browser": "^10.0.2",
"@angular/platform-browser-dynamic": "^10.0.2",
"@angular/router": "^10.0.2",
  • Browser(s): Chrome Version 83.0.4103.116 (Offizieller Build) (64-Bit)
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows, should not matter

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions