25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

33 lines
670 B

  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'];