wishthis/node_modules/autoprefixer/lib/hacks/placeholder-shown.js

18 lines
367 B
JavaScript
Raw Normal View History

2023-08-17 09:47:40 +00:00
let Selector = require('../selector')
2022-01-21 08:28:41 +00:00
2023-08-17 09:47:40 +00:00
class PlaceholderShown extends Selector {
2022-01-21 08:28:41 +00:00
/**
* Return different selectors depend on prefix
*/
2023-08-17 09:47:40 +00:00
prefixed(prefix) {
2022-01-21 08:28:41 +00:00
if (prefix === '-ms-') {
2023-08-17 09:47:40 +00:00
return ':-ms-input-placeholder'
2022-01-21 08:28:41 +00:00
}
2023-08-17 09:47:40 +00:00
return `:${prefix}placeholder-shown`
}
}
2022-01-21 08:28:41 +00:00
2023-08-17 09:47:40 +00:00
PlaceholderShown.names = [':placeholder-shown']
2022-01-21 08:28:41 +00:00
2023-08-17 09:47:40 +00:00
module.exports = PlaceholderShown