fullscreen.js 406 B

1234567891011121314151617181920
  1. let Selector = require('../selector')
  2. class Fullscreen extends Selector {
  3. /**
  4. * Return different selectors depend on prefix
  5. */
  6. prefixed(prefix) {
  7. if (prefix === '-webkit-') {
  8. return ':-webkit-full-screen'
  9. }
  10. if (prefix === '-moz-') {
  11. return ':-moz-full-screen'
  12. }
  13. return `:${prefix}fullscreen`
  14. }
  15. }
  16. Fullscreen.names = [':fullscreen']
  17. module.exports = Fullscreen