You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							24 lines
						
					
					
						
							856 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							24 lines
						
					
					
						
							856 B
						
					
					
				| "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
 |