position.js 652 B

1234567891011121314151617181920212223
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.position = void 0;
  4. exports.position = {
  5. name: 'position',
  6. initialValue: 'static',
  7. prefix: false,
  8. type: 2 /* IDENT_VALUE */,
  9. parse: function (_context, position) {
  10. switch (position) {
  11. case 'relative':
  12. return 1 /* RELATIVE */;
  13. case 'absolute':
  14. return 2 /* ABSOLUTE */;
  15. case 'fixed':
  16. return 3 /* FIXED */;
  17. case 'sticky':
  18. return 4 /* STICKY */;
  19. }
  20. return 0 /* STATIC */;
  21. }
  22. };
  23. //# sourceMappingURL=position.js.map