source: imaps-frontend/node_modules/html2canvas/dist/lib/css/property-descriptors/counter-increment.js

main
Last change on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 5 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 1.1 KB
Line 
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.counterIncrement = void 0;
4var parser_1 = require("../syntax/parser");
5exports.counterIncrement = {
6 name: 'counter-increment',
7 initialValue: 'none',
8 prefix: true,
9 type: 1 /* LIST */,
10 parse: function (_context, tokens) {
11 if (tokens.length === 0) {
12 return null;
13 }
14 var first = tokens[0];
15 if (first.type === 20 /* IDENT_TOKEN */ && first.value === 'none') {
16 return null;
17 }
18 var increments = [];
19 var filtered = tokens.filter(parser_1.nonWhiteSpace);
20 for (var i = 0; i < filtered.length; i++) {
21 var counter = filtered[i];
22 var next = filtered[i + 1];
23 if (counter.type === 20 /* IDENT_TOKEN */) {
24 var increment = next && parser_1.isNumberToken(next) ? next.number : 1;
25 increments.push({ counter: counter.value, increment: increment });
26 }
27 }
28 return increments;
29 }
30};
31//# sourceMappingURL=counter-increment.js.map
Note: See TracBrowser for help on using the repository browser.