Initial project import
This commit is contained in:
24
node_modules/html2canvas/dist/lib/css/property-descriptors/background-image.js
generated
vendored
Normal file
24
node_modules/html2canvas/dist/lib/css/property-descriptors/background-image.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.backgroundImage = void 0;
|
||||
var image_1 = require("../types/image");
|
||||
var parser_1 = require("../syntax/parser");
|
||||
exports.backgroundImage = {
|
||||
name: 'background-image',
|
||||
initialValue: 'none',
|
||||
type: 1 /* LIST */,
|
||||
prefix: false,
|
||||
parse: function (context, tokens) {
|
||||
if (tokens.length === 0) {
|
||||
return [];
|
||||
}
|
||||
var first = tokens[0];
|
||||
if (first.type === 20 /* IDENT_TOKEN */ && first.value === 'none') {
|
||||
return [];
|
||||
}
|
||||
return tokens
|
||||
.filter(function (value) { return parser_1.nonFunctionArgSeparator(value) && image_1.isSupportedImage(value); })
|
||||
.map(function (value) { return image_1.image.parse(context, value); });
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=background-image.js.map
|
||||
Reference in New Issue
Block a user