z-index.js 616 B

1234567891011121314151617181920
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.zIndex = void 0;
  4. var parser_1 = require("../syntax/parser");
  5. exports.zIndex = {
  6. name: 'z-index',
  7. initialValue: 'auto',
  8. prefix: false,
  9. type: 0 /* VALUE */,
  10. parse: function (_context, token) {
  11. if (token.type === 20 /* IDENT_TOKEN */) {
  12. return { auto: true, order: 0 };
  13. }
  14. if (parser_1.isNumberToken(token)) {
  15. return { auto: false, order: token.number };
  16. }
  17. throw new Error("Invalid z-index number parsed");
  18. }
  19. };
  20. //# sourceMappingURL=z-index.js.map