Skip to content

Commit 5e349d9

Browse files
crisbetokara
authored andcommitted
fix(input): placeholder not rendering in Chrome under certain conditions (#4405)
1 parent ea8241a commit 5e349d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/input/input-container.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ $mat-input-underline-disabled-background-image:
1414
// Applies a floating placeholder above the input itself.
1515
@mixin mat-input-placeholder-floating {
1616
display: block;
17-
transform: translateY(-1.35em) scale($mat-input-floating-placeholder-scale-factor);
17+
transform: translate3d(0, -1.35em, 0) scale($mat-input-floating-placeholder-scale-factor);
1818
width: 100% / $mat-input-floating-placeholder-scale-factor;
1919
}
2020

@@ -143,7 +143,7 @@ $mat-input-underline-disabled-background-image:
143143
text-overflow: ellipsis;
144144
overflow: hidden;
145145

146-
transform: translateY(0);
146+
transform: translate3d(0, 0, 0);
147147
transform-origin: bottom left;
148148
transition: transform $swift-ease-out-duration $swift-ease-out-timing-function,
149149
color $swift-ease-out-duration $swift-ease-out-timing-function,

0 commit comments

Comments
 (0)