We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6bab39 commit 45ecc47Copy full SHA for 45ecc47
lib/hacks/placeholder-shown.js
@@ -1,29 +1,14 @@
1
let Selector = require('../selector')
2
-let utils = require('../utils')
3
4
class PlaceholderShown extends Selector {
5
- constructor(name, prefixes, all) {
6
- super(name, prefixes, all)
7
-
8
- if (this.prefixes) {
9
- this.prefixes = utils.uniq(this.prefixes.map(() => '-ms-'))
10
- }
11
12
13
- /**
14
- * Add old mozilla to possible prefixes
15
- */
16
- possible() {
17
- return super.possible().concat(['-moz- old'])
18
19
20
/**
21
* Return different selectors depend on prefix
22
*/
23
prefixed(prefix) {
24
if (prefix === '-ms-') {
25
return ':-ms-input-placeholder'
26
- } else if (prefix === '-moz- old') {
+ }
+ if (prefix === '-moz-') {
27
return ':-moz-placeholder'
28
}
29
return `:${prefix}placeholder-shown`
0 commit comments