f1b899ecae6c5b8235f3ef4de03bdbb76da77f3c55a86e856521597c484f45a98911de3098c83af32d6db39e056a579ca97b9f02ab6266bbb484b53d1bd3c3 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 Declaration = require('../declaration');
  6. var ColorAdjust = /*#__PURE__*/function (_Declaration) {
  7. _inheritsLoose(ColorAdjust, _Declaration);
  8. function ColorAdjust() {
  9. return _Declaration.apply(this, arguments) || this;
  10. }
  11. var _proto = ColorAdjust.prototype;
  12. /**
  13. * Change property name for WebKit-based browsers
  14. */
  15. _proto.prefixed = function prefixed(prop, prefix) {
  16. return prefix + 'print-color-adjust';
  17. }
  18. /**
  19. * Return property name by spec
  20. */
  21. ;
  22. _proto.normalize = function normalize() {
  23. return 'color-adjust';
  24. };
  25. return ColorAdjust;
  26. }(Declaration);
  27. _defineProperty(ColorAdjust, "names", ['color-adjust', 'print-color-adjust']);
  28. module.exports = ColorAdjust;