@@ -673,6 +673,21 @@ type Padding
673673 = Padding Int Int Int Int
674674
675675
676+inheritablePlaceholderAttributes attr =
677+ case attr of
678+ Internal.StyleClass _ (Internal.PaddingStyle _ _ _ _ _) ->
679+ True
680+
681+ Internal.StyleClass _ (Internal.BorderWidth _ _ _ _ _) ->
682+ True
683+
684+ Internal.StyleClass _ (Internal.Transform _) ->
685+ True
686+
687+ _ ->
688+ False
689+
690+
676691{-|
677692
678693 attributes
@@ -708,6 +723,9 @@ textHelper textInput attrs textOptions =
708723 behavior =
709724 [ Internal.Attr (Html.Events.onInput textOptions.onChange) ]
710725
726+ forPlaceholder =
727+ List.filter inheritablePlaceholderAttributes attributes
728+
711729 noNearbys =
712730 List.filter (not << forNearby) attributes
713731
@@ -912,7 +930,7 @@ textHelper textInput attrs textOptions =
912930 [ Element.inFront
913931 (Element.el
914932 (defaultTextPadding
915− :: noNearbys
933+ :: forPlaceholder
916934 ++ [ Font.color charcoal
917935 , Internal.htmlClass (classes.noTextSelection ++ " " ++ classes.passPointerEvents)
918936 , Border.color (Element.rgba 0 0 0 0)