background-position.js 672 B

1234567891011121314151617
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.backgroundPosition = void 0;
  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: 1 /* LIST */,
  10. prefix: false,
  11. parse: function (_context, 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