border-radius.js 865 B

12345678910111213141516
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var IPropertyDescriptor_1 = require("../IPropertyDescriptor");
  4. var length_percentage_1 = require("../types/length-percentage");
  5. var borderRadiusForSide = function (side) { return ({
  6. name: "border-radius-" + side,
  7. initialValue: '0 0',
  8. prefix: false,
  9. type: IPropertyDescriptor_1.PropertyDescriptorParsingType.LIST,
  10. parse: function (tokens) { return length_percentage_1.parseLengthPercentageTuple(tokens.filter(length_percentage_1.isLengthPercentage)); }
  11. }); };
  12. exports.borderTopLeftRadius = borderRadiusForSide('top-left');
  13. exports.borderTopRightRadius = borderRadiusForSide('top-right');
  14. exports.borderBottomRightRadius = borderRadiusForSide('bottom-right');
  15. exports.borderBottomLeftRadius = borderRadiusForSide('bottom-left');
  16. //# sourceMappingURL=border-radius.js.map