You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.4 KiB

4 years ago
  1. "use strict";
  2. function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
  3. function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
  4. function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
  5. var Selector = require('../selector');
  6. var Fullscreen =
  7. /*#__PURE__*/
  8. function (_Selector) {
  9. _inheritsLoose(Fullscreen, _Selector);
  10. function Fullscreen() {
  11. return _Selector.apply(this, arguments) || this;
  12. }
  13. var _proto = Fullscreen.prototype;
  14. /**
  15. * Return different selectors depend on prefix
  16. */
  17. _proto.prefixed = function prefixed(prefix) {
  18. if (prefix === '-webkit-') {
  19. return ':-webkit-full-screen';
  20. }
  21. if (prefix === '-moz-') {
  22. return ':-moz-full-screen';
  23. }
  24. return ":" + prefix + "fullscreen";
  25. };
  26. return Fullscreen;
  27. }(Selector);
  28. _defineProperty(Fullscreen, "names", [':fullscreen']);
  29. module.exports = Fullscreen;