Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

3 лет назад
123456789101112131415161718192021222324252627282930313233
  1. 'use strict';
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = sizing;
  6. var prefixes = ['-webkit-', '-moz-', ''];
  7. var properties = {
  8. maxHeight: true,
  9. maxWidth: true,
  10. width: true,
  11. height: true,
  12. columnWidth: true,
  13. minWidth: true,
  14. minHeight: true
  15. };
  16. var values = {
  17. 'min-content': true,
  18. 'max-content': true,
  19. 'fill-available': true,
  20. 'fit-content': true,
  21. 'contain-floats': true
  22. };
  23. function sizing(property, value) {
  24. if (properties.hasOwnProperty(property) && values.hasOwnProperty(value)) {
  25. return prefixes.map(function (prefix) {
  26. return prefix + value;
  27. });
  28. }
  29. }
  30. module.exports = exports['default'];