stylelint-browser-compat 1.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +91 -0
- package/lib/at-rules/at_rules_name_set.js +16 -0
- package/lib/at-rules/collect_features.js +145 -0
- package/lib/at-rules/counter-style/collect_features.js +41 -0
- package/lib/at-rules/counter-style/descriptor_name_set.js +16 -0
- package/lib/at-rules/document/collect_features.js +46 -0
- package/lib/at-rules/document/regexp/collect_features.js +30 -0
- package/lib/at-rules/font-face/__font_type/collect_features.js +79 -0
- package/lib/at-rules/font-face/collect_features.js +67 -0
- package/lib/at-rules/font-face/descriptor_name_set.js +16 -0
- package/lib/at-rules/font-feature-values/at_rules_name_set.js +16 -0
- package/lib/at-rules/font-feature-values/collect_features.js +30 -0
- package/lib/at-rules/keyframes/collect_features.js +29 -0
- package/lib/at-rules/media/collect_features.js +118 -0
- package/lib/at-rules/media/media_feature_name_map.js +8 -0
- package/lib/at-rules/page/collect_features.js +82 -0
- package/lib/at-rules/page/descriptor_name_set.js +16 -0
- package/lib/at-rules/page/size/collect_features.js +55 -0
- package/lib/at-rules/property/collect_features.js +60 -0
- package/lib/at-rules/property/descriptor_name_set.js +16 -0
- package/lib/at-rules/scroll-timeline/collect_features.js +60 -0
- package/lib/at-rules/scroll-timeline/descriptor_name_set.js +16 -0
- package/lib/collect_features.js +69 -0
- package/lib/index.js +5 -0
- package/lib/is_supported.js +75 -0
- package/lib/options.js +20 -0
- package/lib/parse_browserslist_version.js +132 -0
- package/lib/properties/-moz-orient/collect_features.js +61 -0
- package/lib/properties/-moz-user-input/collect_features.js +71 -0
- package/lib/properties/animation-direction/collect_features.js +53 -0
- package/lib/properties/animation-timing-function/collect_features.js +51 -0
- package/lib/properties/appearance/collect_features.js +76 -0
- package/lib/properties/background/background-clip/collect_features.js +59 -0
- package/lib/properties/background/background-origin/collect_features.js +59 -0
- package/lib/properties/background/background-size/collect_features.js +106 -0
- package/lib/properties/background/collect_features.js +104 -0
- package/lib/properties/background/multiple_backgrounds/collect_features.js +39 -0
- package/lib/properties/background-attachment/collect_features.js +70 -0
- package/lib/properties/background-clip/collect_features.js +55 -0
- package/lib/properties/background-image/collect_features.js +133 -0
- package/lib/properties/background-image/svg_images/collect_features.js +58 -0
- package/lib/properties/background-origin/collect_features.js +42 -0
- package/lib/properties/background-position/collect_features.js +117 -0
- package/lib/properties/background-position-x/collect_features.js +36 -0
- package/lib/properties/background-position-y/collect_features.js +36 -0
- package/lib/properties/background-repeat/collect_features.js +102 -0
- package/lib/properties/background-repeat/round_space/collect_features.js +54 -0
- package/lib/properties/background-size/collect_features.js +38 -0
- package/lib/properties/block-size/collect_features.js +77 -0
- package/lib/properties/border-bottom-left-radius/border-bottom-right-radius/collect_features.js +57 -0
- package/lib/properties/border-bottom-left-radius/collect_features.js +57 -0
- package/lib/properties/border-bottom-right-radius/collect_features.js +57 -0
- package/lib/properties/border-radius/collect_features.js +61 -0
- package/lib/properties/border-top-left-radius/collect_features.js +57 -0
- package/lib/properties/border-top-right-radius/collect_features.js +57 -0
- package/lib/properties/box-shadow/collect_features.js +92 -0
- package/lib/properties/box-sizing/collect_features.js +39 -0
- package/lib/properties/caption-side/collect_features.js +38 -0
- package/lib/properties/clear/collect_features.js +38 -0
- package/lib/properties/clip-path/collect_features.js +65 -0
- package/lib/properties/collect_features.js +452 -0
- package/lib/properties/color-scheme/collect_features.js +52 -0
- package/lib/properties/property_name_set.js +16 -0
- package/lib/properties/transition/collect_features.js +33 -0
- package/lib/properties/transition-property/collect_features.js +38 -0
- package/lib/rule.js +125 -0
- package/lib/selectors/__attributes/collect_features.js +44 -0
- package/lib/selectors/__classes/collect_features.js +23 -0
- package/lib/selectors/__combinators/collect_features.js +91 -0
- package/lib/selectors/__ids/collect_features.js +23 -0
- package/lib/selectors/__pseudos/collect_features.js +228 -0
- package/lib/selectors/__pseudos/pseudo_selector_name_set.js +18 -0
- package/lib/selectors/__tags/collect_features.js +48 -0
- package/lib/selectors/__universal/collect_features.js +37 -0
- package/lib/selectors/active/non_a_elements/collect_features.js +38 -0
- package/lib/selectors/after/animation_and_transition_support/collect_features.js +43 -0
- package/lib/selectors/backdrop/dialog/collect_features.js +38 -0
- package/lib/selectors/before/animation_and_transition_support/collect_features.js +43 -0
- package/lib/selectors/collect_features.js +120 -0
- package/lib/selectors/cue/selector_argument/collect_features.js +26 -0
- package/lib/selectors/hostfunction/collect_features.js +26 -0
- package/lib/selectors/hover/collect_features.js +61 -0
- package/lib/selectors/invalid/collect_features.js +39 -0
- package/lib/selectors/marker/animation_and_transition_support/collect_features.js +43 -0
- package/lib/selectors/not/selector_list/collect_features.js +31 -0
- package/lib/selectors/nth-child/of_syntax/collect_features.js +32 -0
- package/lib/selectors/nth-last-child/of_syntax/collect_features.js +32 -0
- package/lib/selectors/valid/collect_features.js +39 -0
- package/lib/types/__function/collect_features.js +187 -0
- package/lib/types/attr/collect_features.js +69 -0
- package/lib/types/attr/type_unit_name_map.js +8 -0
- package/lib/types/calc/collect_features.js +70 -0
- package/lib/types/collect_features.js +139 -0
- package/lib/types/color/__alpha_parameter/collect_features.js +37 -0
- package/lib/types/color/__float_values/collect_features.js +44 -0
- package/lib/types/color/__space_separated_parameters/collect_features.js +37 -0
- package/lib/types/color/rgb_hexadecimal_notation/collect_features.js +42 -0
- package/lib/types/easing-function/steps/jump/collect_features.js +37 -0
- package/lib/types/function_name_map.js +8 -0
- package/lib/types/image/gradient/__linear-gradient/collect_features.js +77 -0
- package/lib/types/image/gradient/__linear-gradient/doubleposition/collect_features.js +43 -0
- package/lib/types/image/gradient/__linear-gradient/interpolation_hints/collect_features.js +42 -0
- package/lib/types/image/gradient/__linear-gradient/to/collect_features.js +39 -0
- package/lib/types/image/gradient/__linear-gradient/unitless_0_angle/collect_features.js +40 -0
- package/lib/types/image/gradient/__radial-gradient/at/collect_features.js +44 -0
- package/lib/types/image/gradient/__radial-gradient/collect_features.js +68 -0
- package/lib/types/image/gradient/__radial-gradient/doubleposition/collect_features.js +47 -0
- package/lib/types/image/gradient/__radial-gradient/interpolation_hints/collect_features.js +42 -0
- package/lib/types/image/gradient/conic-gradient/collect_features.js +48 -0
- package/lib/types/image/gradient/conic-gradient/doubleposition/collect_features.js +43 -0
- package/lib/types/number/scientific_notation/collect_features.js +31 -0
- package/lib/types/unit_name_map.js +8 -0
- package/lib/types/value_name_map.js +8 -0
- package/lib/types.js +5 -0
- package/package.json +75 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.functionNameMap = void 0;
|
|
7
|
+
const functionNameMap = new Map([['-moz-image-rect', 'types.-moz-image-rect'], ['attr', 'types.attr'], ['circle', 'types.basic-shape.circle'], ['ellipse', 'types.basic-shape.ellipse'], ['inset', 'types.basic-shape.inset'], ['path', 'types.basic-shape.path'], ['polygon', 'types.basic-shape.polygon'], ['calc', 'types.calc'], ['nested', 'types.calc.nested'], ['clamp', 'types.clamp'], ['color', 'types.color.color'], ['color-contrast', 'types.color.color-contrast'], ['color-mix', 'types.color.color-mix'], ['hsl', 'types.color.hsl'], ['hsla', 'types.color.hsla'], ['hwb', 'types.color.hwb'], ['lab', 'types.color.lab'], ['lch', 'types.color.lch'], ['oklab', 'types.color.oklab'], ['oklch', 'types.color.oklch'], ['rgb', 'types.color.rgb'], ['rgba', 'types.color.rgba'], ['counter', 'types.counter'], ['counters', 'types.counters'], ['cubic-bezier', 'types.easing-function.cubic-bezier'], ['steps', 'types.easing-function.steps'], ['jump', 'types.easing-function.steps.jump'], ['blur', 'types.filter-function.blur'], ['brightness', 'types.filter-function.brightness'], ['contrast', 'types.filter-function.contrast'], ['drop-shadow', 'types.filter-function.drop-shadow'], ['grayscale', 'types.filter-function.grayscale'], ['hue-rotate', 'types.filter-function.hue-rotate'], ['invert', 'types.filter-function.invert'], ['opacity', 'types.filter-function.opacity'], ['saturate', 'types.filter-function.saturate'], ['sepia', 'types.filter-function.sepia'], ['cross-fade', 'types.image.cross-fade'], ['element', 'types.image.element'], ['conic-gradient', 'types.image.gradient.conic-gradient'], ['linear-gradient', 'types.image.gradient.linear-gradient'], ['radial-gradient', 'types.image.gradient.radial-gradient'], ['repeating-conic-gradient', 'types.image.gradient.repeating-conic-gradient'], ['repeating-linear-gradient', 'types.image.gradient.repeating-linear-gradient'], ['repeating-radial-gradient', 'types.image.gradient.repeating-radial-gradient'], ['image', 'types.image.image'], ['image-set', 'types.image.image-set'], ['paint', 'types.image.paint'], ['max', 'types.max'], ['min', 'types.min'], ['rect', 'types.shape.rect'], ['matrix', 'types.transform-function.matrix'], ['matrix3d', 'types.transform-function.matrix3d'], ['perspective', 'types.transform-function.perspective'], ['rotate', 'types.transform-function.rotate'], ['rotate3d', 'types.transform-function.rotate3d'], ['rotateX', 'types.transform-function.rotateX'], ['rotateY', 'types.transform-function.rotateY'], ['rotateZ', 'types.transform-function.rotateZ'], ['scale', 'types.transform-function.scale'], ['scale3d', 'types.transform-function.scale3d'], ['scaleX', 'types.transform-function.scaleX'], ['scaleY', 'types.transform-function.scaleY'], ['scaleZ', 'types.transform-function.scaleZ'], ['skew', 'types.transform-function.skew'], ['skewX', 'types.transform-function.skewX'], ['skewY', 'types.transform-function.skewY'], ['translate', 'types.transform-function.translate'], ['translate3d', 'types.transform-function.translate3d'], ['translateX', 'types.transform-function.translateX'], ['translateY', 'types.transform-function.translateY'], ['translateZ', 'types.transform-function.translateZ'], ['cubic-bezier', 'types.easing-function.cubic-bezier'], ['steps', 'types.easing-function.steps'], ['url', 'types.url']]);
|
|
8
|
+
exports.functionNameMap = functionNameMap;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.collectFeatures = collectFeatures;
|
|
7
|
+
|
|
8
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
9
|
+
|
|
10
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
11
|
+
|
|
12
|
+
async function collectFeatures({
|
|
13
|
+
node,
|
|
14
|
+
parent
|
|
15
|
+
}) {
|
|
16
|
+
const funcName = node.value.replace(/^-(?:ms|o|webkit|moz)-/, '');
|
|
17
|
+
|
|
18
|
+
if (funcName !== 'linear-gradient' && funcName !== 'repeating-linear-gradient') {
|
|
19
|
+
return [];
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const promises = [];
|
|
23
|
+
const colorStopList = [[]];
|
|
24
|
+
|
|
25
|
+
for (const chlid of node.nodes) {
|
|
26
|
+
if (chlid.type === 'div' && chlid.value === ',') {
|
|
27
|
+
colorStopList.push([]);
|
|
28
|
+
} else {
|
|
29
|
+
const colorStop = colorStopList[colorStopList.length - 1];
|
|
30
|
+
colorStop === null || colorStop === void 0 ? void 0 : colorStop.push(chlid);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
for (const [colorStopIndex, colorStop] of colorStopList.entries()) {
|
|
35
|
+
promises.push(Promise.resolve().then(() => _interopRequireWildcard(require("./doubleposition/collect_features"))).then(({
|
|
36
|
+
collectFeatures
|
|
37
|
+
}) => {
|
|
38
|
+
return collectFeatures({
|
|
39
|
+
colorStop,
|
|
40
|
+
node,
|
|
41
|
+
parent
|
|
42
|
+
});
|
|
43
|
+
}));
|
|
44
|
+
promises.push(Promise.resolve().then(() => _interopRequireWildcard(require("./interpolation_hints/collect_features"))).then(({
|
|
45
|
+
collectFeatures
|
|
46
|
+
}) => {
|
|
47
|
+
return collectFeatures({
|
|
48
|
+
colorStop,
|
|
49
|
+
colorStopIndex,
|
|
50
|
+
node,
|
|
51
|
+
parent
|
|
52
|
+
});
|
|
53
|
+
}));
|
|
54
|
+
promises.push(Promise.resolve().then(() => _interopRequireWildcard(require("./to/collect_features"))).then(({
|
|
55
|
+
collectFeatures
|
|
56
|
+
}) => {
|
|
57
|
+
return collectFeatures({
|
|
58
|
+
colorStop,
|
|
59
|
+
node,
|
|
60
|
+
parent
|
|
61
|
+
});
|
|
62
|
+
}));
|
|
63
|
+
promises.push(Promise.resolve().then(() => _interopRequireWildcard(require("./unitless_0_angle/collect_features"))).then(({
|
|
64
|
+
collectFeatures
|
|
65
|
+
}) => {
|
|
66
|
+
return collectFeatures({
|
|
67
|
+
colorStop,
|
|
68
|
+
colorStopIndex,
|
|
69
|
+
node,
|
|
70
|
+
parent
|
|
71
|
+
});
|
|
72
|
+
}));
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
const features = (await Promise.all(promises)).flat();
|
|
76
|
+
return features;
|
|
77
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.collectFeatures = collectFeatures;
|
|
7
|
+
|
|
8
|
+
async function collectFeatures({
|
|
9
|
+
colorStop,
|
|
10
|
+
node,
|
|
11
|
+
parent
|
|
12
|
+
}) {
|
|
13
|
+
var _parent$raws$between, _colorStop$;
|
|
14
|
+
|
|
15
|
+
const funcName = node.value.replace(/^-(?:ms|o|webkit|moz)-/, '');
|
|
16
|
+
|
|
17
|
+
if (funcName !== 'linear-gradient' && funcName !== 'repeating-linear-gradient') {
|
|
18
|
+
return [];
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const features = [];
|
|
22
|
+
const offset = parent.prop.length + (((_parent$raws$between = parent.raws.between) === null || _parent$raws$between === void 0 ? void 0 : _parent$raws$between.length) ?? 0);
|
|
23
|
+
|
|
24
|
+
if (((_colorStop$ = colorStop[0]) === null || _colorStop$ === void 0 ? void 0 : _colorStop$.type) === 'word' && colorStop[0].value === 'to') {
|
|
25
|
+
return features;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
if (colorStop.length >= 5) {
|
|
29
|
+
var _colorStop$2, _colorStop;
|
|
30
|
+
|
|
31
|
+
const index = offset + (((_colorStop$2 = colorStop[0]) === null || _colorStop$2 === void 0 ? void 0 : _colorStop$2.sourceIndex) ?? 0);
|
|
32
|
+
const endIndex = offset + (((_colorStop = colorStop[colorStop.length - 1]) === null || _colorStop === void 0 ? void 0 : _colorStop.sourceEndIndex) ?? 0);
|
|
33
|
+
features.push({
|
|
34
|
+
endIndex,
|
|
35
|
+
id: `types.image.gradient.${funcName}.doubleposition`,
|
|
36
|
+
index,
|
|
37
|
+
name: `Double-position color stops for ${funcName}()`,
|
|
38
|
+
node: parent
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
return features;
|
|
43
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.collectFeatures = collectFeatures;
|
|
7
|
+
|
|
8
|
+
var _postcssValueParser = require("postcss-value-parser");
|
|
9
|
+
|
|
10
|
+
async function collectFeatures({
|
|
11
|
+
colorStop,
|
|
12
|
+
colorStopIndex,
|
|
13
|
+
node,
|
|
14
|
+
parent
|
|
15
|
+
}) {
|
|
16
|
+
var _parent$raws$between, _colorStop$;
|
|
17
|
+
|
|
18
|
+
const funcName = node.value.replace(/^-(?:ms|o|webkit|moz)-/, '');
|
|
19
|
+
|
|
20
|
+
if (funcName !== 'linear-gradient' && funcName !== 'repeating-linear-gradient') {
|
|
21
|
+
return [];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const features = [];
|
|
25
|
+
const offset = parent.prop.length + (((_parent$raws$between = parent.raws.between) === null || _parent$raws$between === void 0 ? void 0 : _parent$raws$between.length) ?? 0);
|
|
26
|
+
|
|
27
|
+
if (colorStopIndex !== 0 && colorStop.length === 1 && ((_colorStop$ = colorStop[0]) === null || _colorStop$ === void 0 ? void 0 : _colorStop$.type) === 'word' && (0, _postcssValueParser.unit)(colorStop[0].value) !== false) {
|
|
28
|
+
var _colorStop$2, _colorStop;
|
|
29
|
+
|
|
30
|
+
const index = offset + (((_colorStop$2 = colorStop[0]) === null || _colorStop$2 === void 0 ? void 0 : _colorStop$2.sourceIndex) ?? 0);
|
|
31
|
+
const endIndex = offset + (((_colorStop = colorStop[colorStop.length - 1]) === null || _colorStop === void 0 ? void 0 : _colorStop.sourceEndIndex) ?? 0);
|
|
32
|
+
features.push({
|
|
33
|
+
endIndex,
|
|
34
|
+
id: `types.image.gradient.${funcName}.interpolation_hints`,
|
|
35
|
+
index,
|
|
36
|
+
name: `Interpolation hints for ${funcName}()`,
|
|
37
|
+
node: parent
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
return features;
|
|
42
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.collectFeatures = collectFeatures;
|
|
7
|
+
|
|
8
|
+
async function collectFeatures({
|
|
9
|
+
colorStop,
|
|
10
|
+
node,
|
|
11
|
+
parent
|
|
12
|
+
}) {
|
|
13
|
+
var _parent$raws$between, _colorStop$;
|
|
14
|
+
|
|
15
|
+
const funcName = node.value.replace(/^-(?:ms|o|webkit|moz)-/, '');
|
|
16
|
+
|
|
17
|
+
if (funcName !== 'linear-gradient' && funcName !== 'repeating-linear-gradient') {
|
|
18
|
+
return [];
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const features = [];
|
|
22
|
+
const offset = parent.prop.length + (((_parent$raws$between = parent.raws.between) === null || _parent$raws$between === void 0 ? void 0 : _parent$raws$between.length) ?? 0);
|
|
23
|
+
|
|
24
|
+
if (((_colorStop$ = colorStop[0]) === null || _colorStop$ === void 0 ? void 0 : _colorStop$.type) === 'word' && colorStop[0].value === 'to') {
|
|
25
|
+
var _colorStop$2, _colorStop;
|
|
26
|
+
|
|
27
|
+
const index = offset + (((_colorStop$2 = colorStop[0]) === null || _colorStop$2 === void 0 ? void 0 : _colorStop$2.sourceIndex) ?? 0);
|
|
28
|
+
const endIndex = offset + (((_colorStop = colorStop[colorStop.length - 1]) === null || _colorStop === void 0 ? void 0 : _colorStop.sourceEndIndex) ?? 0);
|
|
29
|
+
features.push({
|
|
30
|
+
endIndex,
|
|
31
|
+
id: `types.image.gradient.${funcName}.to`,
|
|
32
|
+
index,
|
|
33
|
+
name: `"to" keyword for ${funcName}()`,
|
|
34
|
+
node: parent
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
return features;
|
|
39
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.collectFeatures = collectFeatures;
|
|
7
|
+
|
|
8
|
+
async function collectFeatures({
|
|
9
|
+
colorStop,
|
|
10
|
+
colorStopIndex,
|
|
11
|
+
node,
|
|
12
|
+
parent
|
|
13
|
+
}) {
|
|
14
|
+
var _parent$raws$between, _colorStop$;
|
|
15
|
+
|
|
16
|
+
const funcName = node.value.replace(/^-(?:ms|o|webkit|moz)-/, '');
|
|
17
|
+
|
|
18
|
+
if (funcName !== 'linear-gradient' && funcName !== 'repeating-linear-gradient') {
|
|
19
|
+
return [];
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const features = [];
|
|
23
|
+
const offset = parent.prop.length + (((_parent$raws$between = parent.raws.between) === null || _parent$raws$between === void 0 ? void 0 : _parent$raws$between.length) ?? 0);
|
|
24
|
+
|
|
25
|
+
if (colorStopIndex === 0 && colorStop.length === 1 && ((_colorStop$ = colorStop[0]) === null || _colorStop$ === void 0 ? void 0 : _colorStop$.type) === 'word' && colorStop[0].value === '0') {
|
|
26
|
+
var _colorStop$2, _colorStop;
|
|
27
|
+
|
|
28
|
+
const index = offset + (((_colorStop$2 = colorStop[0]) === null || _colorStop$2 === void 0 ? void 0 : _colorStop$2.sourceIndex) ?? 0);
|
|
29
|
+
const endIndex = offset + (((_colorStop = colorStop[colorStop.length - 1]) === null || _colorStop === void 0 ? void 0 : _colorStop.sourceEndIndex) ?? 0);
|
|
30
|
+
features.push({
|
|
31
|
+
endIndex,
|
|
32
|
+
id: `types.image.gradient.${funcName}.unitless_0_angle`,
|
|
33
|
+
index,
|
|
34
|
+
name: `Unitless 0 angle for ${funcName}()`,
|
|
35
|
+
node: parent
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
return features;
|
|
40
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.collectFeatures = collectFeatures;
|
|
7
|
+
|
|
8
|
+
async function collectFeatures({
|
|
9
|
+
colorStop,
|
|
10
|
+
colorStopIndex,
|
|
11
|
+
node,
|
|
12
|
+
parent
|
|
13
|
+
}) {
|
|
14
|
+
var _parent$raws$between;
|
|
15
|
+
|
|
16
|
+
const funcName = node.value.replace(/^-(?:ms|o|webkit|moz)-/, '');
|
|
17
|
+
|
|
18
|
+
if (funcName !== 'radial-gradient' && funcName !== 'repeating-radial-gradient') {
|
|
19
|
+
return [];
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const features = [];
|
|
23
|
+
const offset = parent.prop.length + (((_parent$raws$between = parent.raws.between) === null || _parent$raws$between === void 0 ? void 0 : _parent$raws$between.length) ?? 0);
|
|
24
|
+
|
|
25
|
+
if (colorStopIndex !== 0) {
|
|
26
|
+
return features;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
const atNode = colorStop.find(n => n.type === 'word' && n.value === 'at');
|
|
30
|
+
|
|
31
|
+
if (atNode != null) {
|
|
32
|
+
const index = offset + atNode.sourceIndex;
|
|
33
|
+
const endIndex = offset + atNode.sourceEndIndex;
|
|
34
|
+
features.push({
|
|
35
|
+
endIndex,
|
|
36
|
+
id: `types.image.gradient.${funcName}.at`,
|
|
37
|
+
index,
|
|
38
|
+
name: `"at" syntax for ${funcName}()`,
|
|
39
|
+
node: parent
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
return features;
|
|
44
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.collectFeatures = collectFeatures;
|
|
7
|
+
|
|
8
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
9
|
+
|
|
10
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
11
|
+
|
|
12
|
+
async function collectFeatures({
|
|
13
|
+
node,
|
|
14
|
+
parent
|
|
15
|
+
}) {
|
|
16
|
+
const funcName = node.value.replace(/^-(?:ms|o|webkit|moz)-/, '');
|
|
17
|
+
|
|
18
|
+
if (funcName !== 'radial-gradient' && funcName !== 'repeating-radial-gradient') {
|
|
19
|
+
return [];
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const promises = [];
|
|
23
|
+
const colorStopList = [[]];
|
|
24
|
+
|
|
25
|
+
for (const chlid of node.nodes) {
|
|
26
|
+
if (chlid.type === 'div' && chlid.value === ',') {
|
|
27
|
+
colorStopList.push([]);
|
|
28
|
+
} else {
|
|
29
|
+
const colorStop = colorStopList[colorStopList.length - 1];
|
|
30
|
+
colorStop === null || colorStop === void 0 ? void 0 : colorStop.push(chlid);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
for (const [colorStopIndex, colorStop] of colorStopList.entries()) {
|
|
35
|
+
promises.push(Promise.resolve().then(() => _interopRequireWildcard(require("./doubleposition/collect_features"))).then(({
|
|
36
|
+
collectFeatures
|
|
37
|
+
}) => {
|
|
38
|
+
return collectFeatures({
|
|
39
|
+
colorStop,
|
|
40
|
+
node,
|
|
41
|
+
parent
|
|
42
|
+
});
|
|
43
|
+
}));
|
|
44
|
+
promises.push(Promise.resolve().then(() => _interopRequireWildcard(require("./interpolation_hints/collect_features"))).then(({
|
|
45
|
+
collectFeatures
|
|
46
|
+
}) => {
|
|
47
|
+
return collectFeatures({
|
|
48
|
+
colorStop,
|
|
49
|
+
colorStopIndex,
|
|
50
|
+
node,
|
|
51
|
+
parent
|
|
52
|
+
});
|
|
53
|
+
}));
|
|
54
|
+
promises.push(Promise.resolve().then(() => _interopRequireWildcard(require("./at/collect_features"))).then(({
|
|
55
|
+
collectFeatures
|
|
56
|
+
}) => {
|
|
57
|
+
return collectFeatures({
|
|
58
|
+
colorStop,
|
|
59
|
+
colorStopIndex,
|
|
60
|
+
node,
|
|
61
|
+
parent
|
|
62
|
+
});
|
|
63
|
+
}));
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const features = (await Promise.all(promises)).flat();
|
|
67
|
+
return features;
|
|
68
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.collectFeatures = collectFeatures;
|
|
7
|
+
const ENDING_SHAPE_VALUES = ['ellipse', 'circle'];
|
|
8
|
+
const SIZE_VALUES = ['closest-side', 'farthest-side', 'closest-corner', 'farthest-corner'];
|
|
9
|
+
|
|
10
|
+
async function collectFeatures({
|
|
11
|
+
colorStop,
|
|
12
|
+
node,
|
|
13
|
+
parent
|
|
14
|
+
}) {
|
|
15
|
+
var _parent$raws$between;
|
|
16
|
+
|
|
17
|
+
const funcName = node.value.replace(/^-(?:ms|o|webkit|moz)-/, '');
|
|
18
|
+
|
|
19
|
+
if (funcName !== 'radial-gradient' && funcName !== 'repeating-radial-gradient') {
|
|
20
|
+
return [];
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const features = [];
|
|
24
|
+
const offset = parent.prop.length + (((_parent$raws$between = parent.raws.between) === null || _parent$raws$between === void 0 ? void 0 : _parent$raws$between.length) ?? 0);
|
|
25
|
+
|
|
26
|
+
if (colorStop.some(n => {
|
|
27
|
+
return n.type === 'word' && (ENDING_SHAPE_VALUES.includes(n.value) || SIZE_VALUES.includes(n.value) || n.value === 'at');
|
|
28
|
+
})) {
|
|
29
|
+
return features;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
if (colorStop.length >= 5) {
|
|
33
|
+
var _colorStop$, _colorStop;
|
|
34
|
+
|
|
35
|
+
const index = offset + (((_colorStop$ = colorStop[0]) === null || _colorStop$ === void 0 ? void 0 : _colorStop$.sourceIndex) ?? 0);
|
|
36
|
+
const endIndex = offset + (((_colorStop = colorStop[colorStop.length - 1]) === null || _colorStop === void 0 ? void 0 : _colorStop.sourceEndIndex) ?? 0);
|
|
37
|
+
features.push({
|
|
38
|
+
endIndex,
|
|
39
|
+
id: `types.image.gradient.${funcName}.doubleposition`,
|
|
40
|
+
index,
|
|
41
|
+
name: `Double-position color stops for ${funcName}()`,
|
|
42
|
+
node: parent
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
return features;
|
|
47
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.collectFeatures = collectFeatures;
|
|
7
|
+
|
|
8
|
+
var _postcssValueParser = require("postcss-value-parser");
|
|
9
|
+
|
|
10
|
+
async function collectFeatures({
|
|
11
|
+
colorStop,
|
|
12
|
+
colorStopIndex,
|
|
13
|
+
node,
|
|
14
|
+
parent
|
|
15
|
+
}) {
|
|
16
|
+
var _parent$raws$between, _colorStop$;
|
|
17
|
+
|
|
18
|
+
const funcName = node.value.replace(/^-(?:ms|o|webkit|moz)-/, '');
|
|
19
|
+
|
|
20
|
+
if (funcName !== 'radial-gradient' && funcName !== 'repeating-radial-gradient') {
|
|
21
|
+
return [];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const features = [];
|
|
25
|
+
const offset = parent.prop.length + (((_parent$raws$between = parent.raws.between) === null || _parent$raws$between === void 0 ? void 0 : _parent$raws$between.length) ?? 0);
|
|
26
|
+
|
|
27
|
+
if (colorStopIndex !== 0 && colorStop.length === 1 && ((_colorStop$ = colorStop[0]) === null || _colorStop$ === void 0 ? void 0 : _colorStop$.type) === 'word' && (0, _postcssValueParser.unit)(colorStop[0].value) !== false) {
|
|
28
|
+
var _colorStop$2, _colorStop;
|
|
29
|
+
|
|
30
|
+
const index = offset + (((_colorStop$2 = colorStop[0]) === null || _colorStop$2 === void 0 ? void 0 : _colorStop$2.sourceIndex) ?? 0);
|
|
31
|
+
const endIndex = offset + (((_colorStop = colorStop[colorStop.length - 1]) === null || _colorStop === void 0 ? void 0 : _colorStop.sourceEndIndex) ?? 0);
|
|
32
|
+
features.push({
|
|
33
|
+
endIndex,
|
|
34
|
+
id: `types.image.gradient.${funcName}.interpolation_hints`,
|
|
35
|
+
index,
|
|
36
|
+
name: `Interpolation hints for ${funcName}()`,
|
|
37
|
+
node: parent
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
return features;
|
|
42
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.collectFeatures = collectFeatures;
|
|
7
|
+
|
|
8
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
9
|
+
|
|
10
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
11
|
+
|
|
12
|
+
async function collectFeatures({
|
|
13
|
+
node,
|
|
14
|
+
parent
|
|
15
|
+
}) {
|
|
16
|
+
const funcName = node.value.replace(/^-(?:ms|o|webkit|moz)-/, '');
|
|
17
|
+
|
|
18
|
+
if (funcName !== 'conic-gradient') {
|
|
19
|
+
return [];
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const promises = [];
|
|
23
|
+
const colorStopList = [[]];
|
|
24
|
+
|
|
25
|
+
for (const chlid of node.nodes) {
|
|
26
|
+
if (chlid.type === 'div' && chlid.value === ',') {
|
|
27
|
+
colorStopList.push([]);
|
|
28
|
+
} else {
|
|
29
|
+
const colorStop = colorStopList[colorStopList.length - 1];
|
|
30
|
+
colorStop === null || colorStop === void 0 ? void 0 : colorStop.push(chlid);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
for (const colorStop of colorStopList) {
|
|
35
|
+
promises.push(Promise.resolve().then(() => _interopRequireWildcard(require("./doubleposition/collect_features"))).then(({
|
|
36
|
+
collectFeatures
|
|
37
|
+
}) => {
|
|
38
|
+
return collectFeatures({
|
|
39
|
+
colorStop,
|
|
40
|
+
node,
|
|
41
|
+
parent
|
|
42
|
+
});
|
|
43
|
+
}));
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
const features = (await Promise.all(promises)).flat();
|
|
47
|
+
return features;
|
|
48
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.collectFeatures = collectFeatures;
|
|
7
|
+
|
|
8
|
+
async function collectFeatures({
|
|
9
|
+
colorStop,
|
|
10
|
+
node,
|
|
11
|
+
parent
|
|
12
|
+
}) {
|
|
13
|
+
var _parent$raws$between, _colorStop$;
|
|
14
|
+
|
|
15
|
+
const funcName = node.value.replace(/^-(?:ms|o|webkit|moz)-/, '');
|
|
16
|
+
|
|
17
|
+
if (funcName !== 'conic-gradient') {
|
|
18
|
+
return [];
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const features = [];
|
|
22
|
+
const offset = parent.prop.length + (((_parent$raws$between = parent.raws.between) === null || _parent$raws$between === void 0 ? void 0 : _parent$raws$between.length) ?? 0);
|
|
23
|
+
|
|
24
|
+
if (((_colorStop$ = colorStop[0]) === null || _colorStop$ === void 0 ? void 0 : _colorStop$.type) === 'word' && ['from', 'at', 'in'].includes(colorStop[0].value)) {
|
|
25
|
+
return features;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
if (colorStop.length >= 5) {
|
|
29
|
+
var _colorStop$2, _colorStop;
|
|
30
|
+
|
|
31
|
+
const index = offset + (((_colorStop$2 = colorStop[0]) === null || _colorStop$2 === void 0 ? void 0 : _colorStop$2.sourceIndex) ?? 0);
|
|
32
|
+
const endIndex = offset + (((_colorStop = colorStop[colorStop.length - 1]) === null || _colorStop === void 0 ? void 0 : _colorStop.sourceEndIndex) ?? 0);
|
|
33
|
+
features.push({
|
|
34
|
+
endIndex,
|
|
35
|
+
id: `types.image.gradient.conic-gradient.doubleposition`,
|
|
36
|
+
index,
|
|
37
|
+
name: `Double-position color stops for conic-gradient()`,
|
|
38
|
+
node: parent
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
return features;
|
|
43
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.collectFeatures = collectFeatures;
|
|
7
|
+
|
|
8
|
+
async function collectFeatures({
|
|
9
|
+
dimension,
|
|
10
|
+
node,
|
|
11
|
+
parent
|
|
12
|
+
}) {
|
|
13
|
+
var _parent$raws$between;
|
|
14
|
+
|
|
15
|
+
const features = [];
|
|
16
|
+
const offset = parent.prop.length + (((_parent$raws$between = parent.raws.between) === null || _parent$raws$between === void 0 ? void 0 : _parent$raws$between.length) ?? 0);
|
|
17
|
+
|
|
18
|
+
if (dimension.number.includes('e')) {
|
|
19
|
+
const index = offset + node.sourceIndex;
|
|
20
|
+
const endIndex = offset + node.sourceIndex + dimension.number.length;
|
|
21
|
+
features.push({
|
|
22
|
+
endIndex,
|
|
23
|
+
id: `types.number.scientific_notation`,
|
|
24
|
+
index,
|
|
25
|
+
name: `Scientific notation for number`,
|
|
26
|
+
node: parent
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
return features;
|
|
31
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.unitNameMap = void 0;
|
|
7
|
+
const unitNameMap = new Map([['deg', 'types.angle.deg'], ['grad', 'types.angle.grad'], ['rad', 'types.angle.rad'], ['turn', 'types.angle.turn'], ['fr', 'types.flex'], ['hz', 'types.frequency.hz'], ['Hz', 'types.frequency.hz'], ['khz', 'types.frequency.khz'], ['kHz', 'types.frequency.khz'], ['cap', 'types.length.cap'], ['ch', 'types.length.ch'], ['ex', 'types.length.ex'], ['ic', 'types.length.ic'], ['lh', 'types.length.lh'], ['Q', 'types.length.Q'], ['q', 'types.length.Q'], ['rem', 'types.length.rem'], ['rlh', 'types.length.rlh'], ['vb', 'types.length.vb'], ['vh', 'types.length.vh'], ['vi', 'types.length.vi'], ['vmax', 'types.length.vmax'], ['vmin', 'types.length.vmin'], ['vw', 'types.length.vw'], ['dvb', 'types.length.viewport_percentage_units_dynamic'], ['dvh', 'types.length.viewport_percentage_units_dynamic'], ['dvi', 'types.length.viewport_percentage_units_dynamic'], ['dvmax', 'types.length.viewport_percentage_units_dynamic'], ['dvmin', 'types.length.viewport_percentage_units_dynamic'], ['dvw', 'types.length.viewport_percentage_units_dynamic'], ['lvb', 'types.length.viewport_percentage_units_large'], ['lvh', 'types.length.viewport_percentage_units_large'], ['lvi', 'types.length.viewport_percentage_units_large'], ['lvmax', 'types.length.viewport_percentage_units_large'], ['lvmin', 'types.length.viewport_percentage_units_large'], ['lvw', 'types.length.viewport_percentage_units_large'], ['svb', 'types.length.viewport_percentage_units_small'], ['svh', 'types.length.viewport_percentage_units_small'], ['svi', 'types.length.viewport_percentage_units_small'], ['svmax', 'types.length.viewport_percentage_units_small'], ['svmin', 'types.length.viewport_percentage_units_small'], ['svw', 'types.length.viewport_percentage_units_small'], ['s', 'types.time'], ['ms', 'types.time']]);
|
|
8
|
+
exports.unitNameMap = unitNameMap;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.valueNameMap = void 0;
|
|
7
|
+
const valueNameMap = new Map([['multiply', 'types.blend-mode'], ['screen', 'types.blend-mode'], ['overlay', 'types.blend-mode'], ['darken', 'types.blend-mode'], ['lighten', 'types.blend-mode'], ['color-dodge', 'types.blend-mode'], ['color-burn', 'types.blend-mode'], ['hard-light', 'types.blend-mode'], ['soft-light', 'types.blend-mode'], ['difference', 'types.blend-mode'], ['exclusion', 'types.blend-mode'], ['hue', 'types.blend-mode'], ['saturation', 'types.blend-mode'], ['color', 'types.blend-mode'], ['luminosity', 'types.blend-mode'], ['aliceblue', 'types.color.color_keywords'], ['antiquewhite', 'types.color.color_keywords'], ['aqua', 'types.color.color_keywords'], ['aquamarine', 'types.color.color_keywords'], ['azure', 'types.color.color_keywords'], ['beige', 'types.color.color_keywords'], ['bisque', 'types.color.color_keywords'], ['black', 'types.color.color_keywords'], ['blanchedalmond', 'types.color.color_keywords'], ['blue', 'types.color.color_keywords'], ['blueviolet', 'types.color.color_keywords'], ['brown', 'types.color.color_keywords'], ['burlywood', 'types.color.color_keywords'], ['cadetblue', 'types.color.color_keywords'], ['chartreuse', 'types.color.color_keywords'], ['chocolate', 'types.color.color_keywords'], ['coral', 'types.color.color_keywords'], ['cornflowerblue', 'types.color.color_keywords'], ['cornsilk', 'types.color.color_keywords'], ['crimson', 'types.color.color_keywords'], ['cyan', 'types.color.color_keywords'], ['darkblue', 'types.color.color_keywords'], ['darkcyan', 'types.color.color_keywords'], ['darkgoldenrod', 'types.color.color_keywords'], ['darkgray', 'types.color.color_keywords'], ['darkgreen', 'types.color.color_keywords'], ['darkgrey', 'types.color.color_keywords'], ['darkkhaki', 'types.color.color_keywords'], ['darkmagenta', 'types.color.color_keywords'], ['darkolivegreen', 'types.color.color_keywords'], ['darkorange', 'types.color.color_keywords'], ['darkorchid', 'types.color.color_keywords'], ['darkred', 'types.color.color_keywords'], ['darksalmon', 'types.color.color_keywords'], ['darkseagreen', 'types.color.color_keywords'], ['darkslateblue', 'types.color.color_keywords'], ['darkslategray', 'types.color.color_keywords'], ['darkslategrey', 'types.color.color_keywords'], ['darkturquoise', 'types.color.color_keywords'], ['darkviolet', 'types.color.color_keywords'], ['deeppink', 'types.color.color_keywords'], ['deepskyblue', 'types.color.color_keywords'], ['dimgray', 'types.color.color_keywords'], ['dimgrey', 'types.color.color_keywords'], ['dodgerblue', 'types.color.color_keywords'], ['firebrick', 'types.color.color_keywords'], ['floralwhite', 'types.color.color_keywords'], ['forestgreen', 'types.color.color_keywords'], ['fuchsia', 'types.color.color_keywords'], ['gainsboro', 'types.color.color_keywords'], ['ghostwhite', 'types.color.color_keywords'], ['gold', 'types.color.color_keywords'], ['goldenrod', 'types.color.color_keywords'], ['gray', 'types.color.color_keywords'], ['green', 'types.color.color_keywords'], ['greenyellow', 'types.color.color_keywords'], ['grey', 'types.color.color_keywords'], ['honeydew', 'types.color.color_keywords'], ['hotpink', 'types.color.color_keywords'], ['indianred', 'types.color.color_keywords'], ['indigo', 'types.color.color_keywords'], ['ivory', 'types.color.color_keywords'], ['khaki', 'types.color.color_keywords'], ['lavender', 'types.color.color_keywords'], ['lavenderblush', 'types.color.color_keywords'], ['lawngreen', 'types.color.color_keywords'], ['lemonchiffon', 'types.color.color_keywords'], ['lightblue', 'types.color.color_keywords'], ['lightcoral', 'types.color.color_keywords'], ['lightcyan', 'types.color.color_keywords'], ['lightgoldenrodyellow', 'types.color.color_keywords'], ['lightgray', 'types.color.color_keywords'], ['lightgreen', 'types.color.color_keywords'], ['lightgrey', 'types.color.color_keywords'], ['lightpink', 'types.color.color_keywords'], ['lightsalmon', 'types.color.color_keywords'], ['lightseagreen', 'types.color.color_keywords'], ['lightskyblue', 'types.color.color_keywords'], ['lightslategray', 'types.color.color_keywords'], ['lightslategrey', 'types.color.color_keywords'], ['lightsteelblue', 'types.color.color_keywords'], ['lightyellow', 'types.color.color_keywords'], ['lime', 'types.color.color_keywords'], ['limegreen', 'types.color.color_keywords'], ['linen', 'types.color.color_keywords'], ['magenta', 'types.color.color_keywords'], ['maroon', 'types.color.color_keywords'], ['mediumaquamarine', 'types.color.color_keywords'], ['mediumblue', 'types.color.color_keywords'], ['mediumorchid', 'types.color.color_keywords'], ['mediumpurple', 'types.color.color_keywords'], ['mediumseagreen', 'types.color.color_keywords'], ['mediumslateblue', 'types.color.color_keywords'], ['mediumspringgreen', 'types.color.color_keywords'], ['mediumturquoise', 'types.color.color_keywords'], ['mediumvioletred', 'types.color.color_keywords'], ['midnightblue', 'types.color.color_keywords'], ['mintcream', 'types.color.color_keywords'], ['mistyrose', 'types.color.color_keywords'], ['moccasin', 'types.color.color_keywords'], ['navajowhite', 'types.color.color_keywords'], ['navy', 'types.color.color_keywords'], ['oldlace', 'types.color.color_keywords'], ['olive', 'types.color.color_keywords'], ['olivedrab', 'types.color.color_keywords'], ['orange', 'types.color.color_keywords'], ['orangered', 'types.color.color_keywords'], ['orchid', 'types.color.color_keywords'], ['palegoldenrod', 'types.color.color_keywords'], ['palegreen', 'types.color.color_keywords'], ['paleturquoise', 'types.color.color_keywords'], ['palevioletred', 'types.color.color_keywords'], ['papayawhip', 'types.color.color_keywords'], ['peachpuff', 'types.color.color_keywords'], ['peru', 'types.color.color_keywords'], ['pink', 'types.color.color_keywords'], ['plum', 'types.color.color_keywords'], ['powderblue', 'types.color.color_keywords'], ['purple', 'types.color.color_keywords'], ['rebeccapurple', 'types.color.color_keywords.rebeccapurple'], ['red', 'types.color.color_keywords'], ['rosybrown', 'types.color.color_keywords'], ['royalblue', 'types.color.color_keywords'], ['saddlebrown', 'types.color.color_keywords'], ['salmon', 'types.color.color_keywords'], ['sandybrown', 'types.color.color_keywords'], ['seagreen', 'types.color.color_keywords'], ['seashell', 'types.color.color_keywords'], ['sienna', 'types.color.color_keywords'], ['silver', 'types.color.color_keywords'], ['skyblue', 'types.color.color_keywords'], ['slateblue', 'types.color.color_keywords'], ['slategray', 'types.color.color_keywords'], ['slategrey', 'types.color.color_keywords'], ['snow', 'types.color.color_keywords'], ['springgreen', 'types.color.color_keywords'], ['steelblue', 'types.color.color_keywords'], ['tan', 'types.color.color_keywords'], ['teal', 'types.color.color_keywords'], ['thistle', 'types.color.color_keywords'], ['tomato', 'types.color.color_keywords'], ['turquoise', 'types.color.color_keywords'], ['violet', 'types.color.color_keywords'], ['wheat', 'types.color.color_keywords'], ['white', 'types.color.color_keywords'], ['whitesmoke', 'types.color.color_keywords'], ['yellow', 'types.color.color_keywords'], ['yellowgreen', 'types.color.color_keywords'], ['currentcolor', 'types.color.currentcolor'], ['currentColor', 'types.color.currentcolor'], ['transparent', 'types.color.transparent'], ['linear', 'types.easing-function'], ['ease', 'types.easing-function'], ['ease-in', 'types.easing-function'], ['ease-out', 'types.easing-function'], ['ease-in-out', 'types.easing-function'], ['step-start', 'types.easing-function.steps'], ['step-end', 'types.easing-function.steps'], ['inherit', 'types.global_keywords.inherit'], ['initial', 'types.global_keywords.initial'], ['revert', 'types.global_keywords.revert'], ['revert-layer', 'types.global_keywords.revert-layer'], ['unset', 'types.global_keywords.unset']]);
|
|
8
|
+
exports.valueNameMap = valueNameMap;
|