Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions lib/hacks/placeholder-shown.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ class PlaceholderShown extends Selector {
* Return different selectors depend on prefix
*/
prefixed(prefix) {
if (prefix === '-ms-') {
return ':-ms-input-placeholder'
}
if (prefix === '-moz-') {
return ':-moz-placeholder'
} else if (prefix === '-ms-') {
return ':-ms-input-placeholder'
}
return `:${prefix}placeholder-shown`
}
Expand Down
2 changes: 1 addition & 1 deletion test/autoprefixer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ let backdroper = autoprefixer({
overrideBrowserslist: ['IE >= 11', 'Chrome < 32', 'Safari >= 15.4']
})
let placeholderShowner = autoprefixer({
overrideBrowserslist: ['IE >= 10']
overrideBrowserslist: ['IE >= 10', 'Firefox >= 4']
})
let transitionSpec = autoprefixer({
overrideBrowserslist: ['Chrome > 19', 'Firefox 14', 'IE 10', 'Opera 12']
Expand Down
3 changes: 3 additions & 0 deletions test/cases/placeholder-shown.out.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
:-moz-placeholder {
background: #eee
}
:-ms-input-placeholder {
background: #eee
}
Expand Down