123456789101112131415161718192021222324 |
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.backgroundClip = void 0;
- var parser_1 = require("../syntax/parser");
- exports.backgroundClip = {
- name: 'background-clip',
- initialValue: 'border-box',
- prefix: false,
- type: 1 ,
- parse: function (_context, tokens) {
- return tokens.map(function (token) {
- if (parser_1.isIdentToken(token)) {
- switch (token.value) {
- case 'padding-box':
- return 1 ;
- case 'content-box':
- return 2 ;
- }
- }
- return 0 ;
- });
- }
- };
|