|
8 | 8 | @keyframes cdk-text-field-autofill-end {/*!*/}
|
9 | 9 |
|
10 | 10 | .cdk-text-field-autofill-monitored:-webkit-autofill {
|
11 |
| - animation-name: cdk-text-field-autofill-start; |
| 11 | + // In Chrome 80 we need a 1ms delay, or the animationstart event won't fire. |
| 12 | + animation: cdk-text-field-autofill-start 0s 1ms; |
12 | 13 | }
|
13 | 14 |
|
14 | 15 | .cdk-text-field-autofill-monitored:not(:-webkit-autofill) {
|
15 |
| - animation-name: cdk-text-field-autofill-end; |
| 16 | + // In Chrome 80 we need a 1ms delay, or the animationstart event won't fire. |
| 17 | + animation: cdk-text-field-autofill-end 0s 1ms; |
16 | 18 | }
|
17 | 19 |
|
18 | 20 | // Remove the resize handle on autosizing textareas, because whatever height
|
@@ -49,13 +51,14 @@ $cdk-text-field-autofill-color-frame-count: 0;
|
49 | 51 | }
|
50 | 52 |
|
51 | 53 | &:-webkit-autofill {
|
52 |
| - animation-name: cdk-text-field-autofill-color-#{$cdk-text-field-autofill-color-frame-count}; |
53 |
| - animation-fill-mode: both; |
| 54 | + animation: cdk-text-field-autofill-color-#{$cdk-text-field-autofill-color-frame-count} both; |
54 | 55 | }
|
55 | 56 |
|
56 | 57 | &.cdk-text-field-autofill-monitored:-webkit-autofill {
|
57 |
| - animation-name: cdk-text-field-autofill-start, |
58 |
| - cdk-text-field-autofill-color-#{$cdk-text-field-autofill-color-frame-count}; |
| 58 | + // In Chrome 80 we need a 1ms delay for cdk-text-field-autofill-start, or the animationstart |
| 59 | + // event won't fire. |
| 60 | + animation: cdk-text-field-autofill-start 0s 1ms, |
| 61 | + cdk-text-field-autofill-color-#{$cdk-text-field-autofill-color-frame-count} both; |
59 | 62 | }
|
60 | 63 |
|
61 | 64 | $cdk-text-field-autofill-color-frame-count:
|
|
0 commit comments