fdsfd
This commit is contained in:
parent
628618df89
commit
e031240dff
3749 changed files with 1120848 additions and 1 deletions
33
node_modules/autoprefixer/lib/hacks/placeholder.js
generated
vendored
Normal file
33
node_modules/autoprefixer/lib/hacks/placeholder.js
generated
vendored
Normal file
|
@ -0,0 +1,33 @@
|
|||
let Selector = require('../selector')
|
||||
|
||||
class Placeholder extends Selector {
|
||||
/**
|
||||
* Add old mozilla to possible prefixes
|
||||
*/
|
||||
possible() {
|
||||
return super.possible().concat(['-moz- old', '-ms- old'])
|
||||
}
|
||||
|
||||
/**
|
||||
* Return different selectors depend on prefix
|
||||
*/
|
||||
prefixed(prefix) {
|
||||
if (prefix === '-webkit-') {
|
||||
return '::-webkit-input-placeholder'
|
||||
}
|
||||
if (prefix === '-ms-') {
|
||||
return '::-ms-input-placeholder'
|
||||
}
|
||||
if (prefix === '-ms- old') {
|
||||
return ':-ms-input-placeholder'
|
||||
}
|
||||
if (prefix === '-moz- old') {
|
||||
return ':-moz-placeholder'
|
||||
}
|
||||
return `::${prefix}placeholder`
|
||||
}
|
||||
}
|
||||
|
||||
Placeholder.names = ['::placeholder']
|
||||
|
||||
module.exports = Placeholder
|
Loading…
Add table
Add a link
Reference in a new issue