mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Deploying to gh-pages from @ 7c3269bdbe 🚀
This commit is contained in:
28
dist/lib/css/property-descriptors/overflow.js
vendored
Normal file
28
dist/lib/css/property-descriptors/overflow.js
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.overflow = void 0;
|
||||
var parser_1 = require("../syntax/parser");
|
||||
exports.overflow = {
|
||||
name: 'overflow',
|
||||
initialValue: 'visible',
|
||||
prefix: false,
|
||||
type: 1 /* LIST */,
|
||||
parse: function (_context, tokens) {
|
||||
return tokens.filter(parser_1.isIdentToken).map(function (overflow) {
|
||||
switch (overflow.value) {
|
||||
case 'hidden':
|
||||
return 1 /* HIDDEN */;
|
||||
case 'scroll':
|
||||
return 2 /* SCROLL */;
|
||||
case 'clip':
|
||||
return 3 /* CLIP */;
|
||||
case 'auto':
|
||||
return 4 /* AUTO */;
|
||||
case 'visible':
|
||||
default:
|
||||
return 0 /* VISIBLE */;
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
//# sourceMappingURL=overflow.js.map
|
||||
Reference in New Issue
Block a user