Last change
on this file since bdd6491 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1.3 KB
|
Line | |
---|
1 | "use strict";
|
---|
2 |
|
---|
3 | function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
---|
4 |
|
---|
5 | function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
---|
6 |
|
---|
7 | function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
---|
8 |
|
---|
9 | var Declaration = require('../declaration');
|
---|
10 |
|
---|
11 | var Filter = /*#__PURE__*/function (_Declaration) {
|
---|
12 | _inheritsLoose(Filter, _Declaration);
|
---|
13 |
|
---|
14 | function Filter() {
|
---|
15 | return _Declaration.apply(this, arguments) || this;
|
---|
16 | }
|
---|
17 |
|
---|
18 | var _proto = Filter.prototype;
|
---|
19 |
|
---|
20 | /**
|
---|
21 | * Check is it Internet Explorer filter
|
---|
22 | */
|
---|
23 | _proto.check = function check(decl) {
|
---|
24 | var v = decl.value;
|
---|
25 | return !v.toLowerCase().includes('alpha(') && !v.includes('DXImageTransform.Microsoft') && !v.includes('data:image/svg+xml');
|
---|
26 | };
|
---|
27 |
|
---|
28 | return Filter;
|
---|
29 | }(Declaration);
|
---|
30 |
|
---|
31 | _defineProperty(Filter, "names", ['filter']);
|
---|
32 |
|
---|
33 | module.exports = Filter; |
---|
Note:
See
TracBrowser
for help on using the repository browser.