From 1ea0cc6e39dd53dbcb1a0f6462952d7151ec6617 Mon Sep 17 00:00:00 2001 From: Jonathan Neal Date: Thu, 7 Apr 2016 11:09:53 -0400 Subject: [PATCH] Correct the text style of placeholders in Chrome, Edge, and Safari Normalizes placeholder styles in Edge, Chrome, and Safari with Firefox. --- normalize.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/normalize.css b/normalize.css index d51d1a9..49f88b0 100644 --- a/normalize.css +++ b/normalize.css @@ -393,3 +393,12 @@ textarea { [type="search"]::-webkit-search-decoration { -webkit-appearance: none; } + +/** + * Correct the text style of placeholders in Chrome, Edge, and Safari. + */ + +::-webkit-input-placeholder { + color: inherit; + opacity: 0.54; +}