File tree Expand file tree Collapse file tree 1 file changed +2
-17
lines changed
Expand file tree Collapse file tree 1 file changed +2
-17
lines changed Original file line number Diff line number Diff line change 11let Selector = require ( '../selector' )
2- let utils = require ( '../utils' )
32
43class 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-
204 /**
215 * Return different selectors depend on prefix
226 */
237 prefixed ( prefix ) {
248 if ( prefix === '-ms-' ) {
259 return ':-ms-input-placeholder'
26- } else if ( prefix === '-moz- old' ) {
10+ }
11+ if ( prefix === '-moz-' ) {
2712 return ':-moz-placeholder'
2813 }
2914 return `:${ prefix } placeholder-shown`
You can’t perform that action at this time.
0 commit comments