Skip to content

Commit 99b187d

Browse files
committed
Revert addition of input placeholder rules
This commit reverts the following 5 commits: 49392e9 f9572a4 79e2c16 2691e7a 567af2e The `:moz-placeholder` rule doesn't have the desired effect because any subsequent rule with higher specificity will result in the Firefox bug resurfacing. There is no way to ensure that Firefox doesn't change the color of the placeholder text. Example: https://tinker.io/e34a2 The `:focus::webkit-input-placeholder` normalization is being removed because the current Chrome / Safari on Lion OSX behaviour is allowed in the spec, Firefox is set to implement the same behaviour, and other browsers may follow suit for usability reasons. Some browser differences like these - low importance and in flux - can be allowed to evolve and settle before assessing whether or not they need or merit normalization.
1 parent 567af2e commit 99b187d

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

normalize.css

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! normalize.css 2012-03-09T22:11 UTC - http://github.com/necolas/normalize.css */
1+
/*! normalize.css 2012-03-11T12:53 UTC - http://github.com/necolas/normalize.css */
22

33
/* =============================================================================
44
HTML5 display definitions
@@ -489,22 +489,6 @@ textarea {
489489
vertical-align: top; /* 2 */
490490
}
491491

492-
/*
493-
* Addresses placeholder color unset in Firefox
494-
*/
495-
496-
:-moz-placeholder {
497-
color: #a9a9a9;
498-
}
499-
500-
/*
501-
* Addresses placeholder text remaining visible on focus in Chrome
502-
*/
503-
504-
:focus::-webkit-input-placeholder {
505-
color: transparent;
506-
}
507-
508492

509493
/* =============================================================================
510494
Tables

0 commit comments

Comments
 (0)