Merge branch 'battaglr-placeholder'

This commit is contained in:
Jonathan Neal 2016-07-06 09:55:36 -04:00
commit 0dc4df63b7
3 changed files with 8 additions and 9 deletions

View File

@ -1,5 +1,9 @@
# Changes to normalize.css # Changes to normalize.css
### HEAD
* Remove `::placeholder` styles due to a bug in Edge.
### 4.2.0 (June 30, 2016) ### 4.2.0 (June 30, 2016)
* Correct the `line-height` in all browsers. * Correct the `line-height` in all browsers.

View File

@ -105,6 +105,10 @@ addresses these issues without removing the benefits of search inputs (e.g.
showing past searches). Safari (but not Chrome) will clip the cancel button on showing past searches). Safari (but not Chrome) will clip the cancel button on
when it has padding (and `textfield` appearance). when it has padding (and `textfield` appearance).
#### `::placeholder`
In Edge, placeholders will disappear on `relative` or `absolute` positioned
`<input>` elements if you use `opacity` less than `1` due to a [bug](https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/3901363/).
## Contributing ## Contributing

9
normalize.css vendored
View File

@ -402,15 +402,6 @@ textarea {
-webkit-appearance: none; -webkit-appearance: none;
} }
/**
* Correct the text style of placeholders in Chrome, Edge, and Safari.
*/
::-webkit-input-placeholder {
color: inherit;
opacity: 0.54;
}
/** /**
* 1. Correct the inability to style clickable types in iOS and Safari. * 1. Correct the inability to style clickable types in iOS and Safari.
* 2. Change font properties to `inherit` in Safari. * 2. Change font properties to `inherit` in Safari.