background-position.js 732 B

1234567891011121314151617
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var IPropertyDescriptor_1 = require("../IPropertyDescriptor");
  4. var parser_1 = require("../syntax/parser");
  5. var length_percentage_1 = require("../types/length-percentage");
  6. exports.backgroundPosition = {
  7. name: 'background-position',
  8. initialValue: '0% 0%',
  9. type: IPropertyDescriptor_1.PropertyDescriptorParsingType.LIST,
  10. prefix: false,
  11. parse: function (tokens) {
  12. return parser_1.parseFunctionArgs(tokens)
  13. .map(function (values) { return values.filter(length_percentage_1.isLengthPercentage); })
  14. .map(length_percentage_1.parseLengthPercentageTuple);
  15. }
  16. };
  17. //# sourceMappingURL=background-position.js.map