Skip to content

Commit 0dc4df6

Browse files
committed
Merge branch 'battaglr-placeholder'
2 parents 255074e + f081e45 commit 0dc4df6

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changes to normalize.css
22

3+
### HEAD
4+
5+
* Remove `::placeholder` styles due to a bug in Edge.
6+
37
### 4.2.0 (June 30, 2016)
48

59
* Correct the `line-height` in all browsers.

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ addresses these issues without removing the benefits of search inputs (e.g.
105105
showing past searches). Safari (but not Chrome) will clip the cancel button on
106106
when it has padding (and `textfield` appearance).
107107

108+
#### `::placeholder`
109+
110+
In Edge, placeholders will disappear on `relative` or `absolute` positioned
111+
`<input>` elements if you use `opacity` less than `1` due to a [bug](https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/3901363/).
108112

109113
## Contributing
110114

normalize.css

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -402,15 +402,6 @@ textarea {
402402
-webkit-appearance: none;
403403
}
404404

405-
/**
406-
* Correct the text style of placeholders in Chrome, Edge, and Safari.
407-
*/
408-
409-
::-webkit-input-placeholder {
410-
color: inherit;
411-
opacity: 0.54;
412-
}
413-
414405
/**
415406
* 1. Correct the inability to style clickable types in iOS and Safari.
416407
* 2. Change font properties to `inherit` in Safari.

0 commit comments

Comments
 (0)