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 Fullscreen 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 === '-webkit-') {
|
2023-08-17 09:47:40 +00:00
|
|
|
return ':-webkit-full-screen'
|
2022-01-21 08:28:41 +00:00
|
|
|
}
|
|
|
|
if (prefix === '-moz-') {
|
2023-08-17 09:47:40 +00:00
|
|
|
return ':-moz-full-screen'
|
2022-01-21 08:28:41 +00:00
|
|
|
}
|
2023-08-17 09:47:40 +00:00
|
|
|
return `:${prefix}fullscreen`
|
|
|
|
}
|
|
|
|
}
|
2022-01-21 08:28:41 +00:00
|
|
|
|
2023-08-17 09:47:40 +00:00
|
|
|
Fullscreen.names = [':fullscreen']
|
2022-01-21 08:28:41 +00:00
|
|
|
|
2023-08-17 09:47:40 +00:00
|
|
|
module.exports = Fullscreen
|