vscode-css-languageservice 6.0.1 → 6.1.0

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.
Files changed (87) hide show
  1. package/CHANGELOG.md +3 -1
  2. package/SECURITY.md +41 -0
  3. package/lib/esm/beautify/beautify-css.js +11 -4
  4. package/lib/esm/cssLanguageService.d.ts +38 -37
  5. package/lib/esm/cssLanguageService.js +73 -72
  6. package/lib/esm/cssLanguageTypes.d.ts +238 -238
  7. package/lib/esm/cssLanguageTypes.js +42 -42
  8. package/lib/esm/data/webCustomData.js +22089 -21959
  9. package/lib/esm/languageFacts/builtinData.js +142 -142
  10. package/lib/esm/languageFacts/colors.js +469 -469
  11. package/lib/esm/languageFacts/dataManager.js +88 -88
  12. package/lib/esm/languageFacts/dataProvider.js +73 -73
  13. package/lib/esm/languageFacts/entry.js +137 -137
  14. package/lib/esm/languageFacts/facts.js +8 -8
  15. package/lib/esm/parser/cssErrors.js +48 -48
  16. package/lib/esm/parser/cssNodes.js +1511 -1502
  17. package/lib/esm/parser/cssParser.js +1606 -1534
  18. package/lib/esm/parser/cssScanner.js +592 -592
  19. package/lib/esm/parser/cssSymbolScope.js +311 -311
  20. package/lib/esm/parser/lessParser.js +715 -714
  21. package/lib/esm/parser/lessScanner.js +57 -57
  22. package/lib/esm/parser/scssErrors.js +18 -18
  23. package/lib/esm/parser/scssParser.js +806 -796
  24. package/lib/esm/parser/scssScanner.js +95 -95
  25. package/lib/esm/services/cssCodeActions.js +77 -77
  26. package/lib/esm/services/cssCompletion.js +1054 -1054
  27. package/lib/esm/services/cssFolding.js +190 -190
  28. package/lib/esm/services/cssFormatter.js +136 -136
  29. package/lib/esm/services/cssHover.js +148 -148
  30. package/lib/esm/services/cssNavigation.js +441 -378
  31. package/lib/esm/services/cssSelectionRange.js +47 -47
  32. package/lib/esm/services/cssValidation.js +41 -41
  33. package/lib/esm/services/lessCompletion.js +378 -378
  34. package/lib/esm/services/lint.js +518 -518
  35. package/lib/esm/services/lintRules.js +76 -76
  36. package/lib/esm/services/lintUtil.js +196 -196
  37. package/lib/esm/services/pathCompletion.js +157 -157
  38. package/lib/esm/services/scssCompletion.js +354 -354
  39. package/lib/esm/services/scssNavigation.js +82 -82
  40. package/lib/esm/services/selectorPrinting.js +492 -492
  41. package/lib/esm/utils/arrays.js +40 -40
  42. package/lib/esm/utils/objects.js +11 -11
  43. package/lib/esm/utils/resources.js +11 -11
  44. package/lib/esm/utils/strings.js +102 -102
  45. package/lib/umd/beautify/beautify-css.js +11 -4
  46. package/lib/umd/cssLanguageService.d.ts +38 -37
  47. package/lib/umd/cssLanguageService.js +104 -99
  48. package/lib/umd/cssLanguageTypes.d.ts +238 -238
  49. package/lib/umd/cssLanguageTypes.js +89 -89
  50. package/lib/umd/data/webCustomData.js +22102 -21972
  51. package/lib/umd/languageFacts/builtinData.js +154 -154
  52. package/lib/umd/languageFacts/colors.js +492 -492
  53. package/lib/umd/languageFacts/dataManager.js +101 -101
  54. package/lib/umd/languageFacts/dataProvider.js +86 -86
  55. package/lib/umd/languageFacts/entry.js +152 -152
  56. package/lib/umd/languageFacts/facts.js +33 -29
  57. package/lib/umd/parser/cssErrors.js +61 -61
  58. package/lib/umd/parser/cssNodes.js +1597 -1587
  59. package/lib/umd/parser/cssParser.js +1619 -1547
  60. package/lib/umd/parser/cssScanner.js +606 -606
  61. package/lib/umd/parser/cssSymbolScope.js +328 -328
  62. package/lib/umd/parser/lessParser.js +728 -727
  63. package/lib/umd/parser/lessScanner.js +70 -70
  64. package/lib/umd/parser/scssErrors.js +31 -31
  65. package/lib/umd/parser/scssParser.js +819 -809
  66. package/lib/umd/parser/scssScanner.js +108 -108
  67. package/lib/umd/services/cssCodeActions.js +90 -90
  68. package/lib/umd/services/cssCompletion.js +1067 -1067
  69. package/lib/umd/services/cssFolding.js +203 -203
  70. package/lib/umd/services/cssFormatter.js +150 -150
  71. package/lib/umd/services/cssHover.js +161 -161
  72. package/lib/umd/services/cssNavigation.js +454 -391
  73. package/lib/umd/services/cssSelectionRange.js +60 -60
  74. package/lib/umd/services/cssValidation.js +54 -54
  75. package/lib/umd/services/lessCompletion.js +391 -391
  76. package/lib/umd/services/lint.js +531 -531
  77. package/lib/umd/services/lintRules.js +91 -91
  78. package/lib/umd/services/lintUtil.js +210 -210
  79. package/lib/umd/services/pathCompletion.js +171 -171
  80. package/lib/umd/services/scssCompletion.js +367 -367
  81. package/lib/umd/services/scssNavigation.js +95 -95
  82. package/lib/umd/services/selectorPrinting.js +510 -510
  83. package/lib/umd/utils/arrays.js +55 -55
  84. package/lib/umd/utils/objects.js +25 -25
  85. package/lib/umd/utils/resources.js +26 -26
  86. package/lib/umd/utils/strings.js +120 -120
  87. package/package.json +13 -12
@@ -1,154 +1,154 @@
1
- (function (factory) {
2
- if (typeof module === "object" && typeof module.exports === "object") {
3
- var v = factory(require, exports);
4
- if (v !== undefined) module.exports = v;
5
- }
6
- else if (typeof define === "function" && define.amd) {
7
- define(["require", "exports"], factory);
8
- }
9
- })(function (require, exports) {
10
- /*---------------------------------------------------------------------------------------------
11
- * Copyright (c) Microsoft Corporation. All rights reserved.
12
- * Licensed under the MIT License. See License.txt in the project root for license information.
13
- *--------------------------------------------------------------------------------------------*/
14
- 'use strict';
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.pageBoxDirectives = exports.svgElements = exports.html5Tags = exports.units = exports.basicShapeFunctions = exports.transitionTimingFunctions = exports.imageFunctions = exports.cssWideFunctions = exports.cssWideKeywords = exports.geometryBoxKeywords = exports.boxKeywords = exports.lineWidthKeywords = exports.lineStyleKeywords = exports.repeatStyleKeywords = exports.positionKeywords = void 0;
17
- exports.positionKeywords = {
18
- 'bottom': 'Computes to ‘100%’ for the vertical position if one or two values are given, otherwise specifies the bottom edge as the origin for the next offset.',
19
- 'center': 'Computes to ‘50%’ (‘left 50%’) for the horizontal position if the horizontal position is not otherwise specified, or ‘50%’ (‘top 50%’) for the vertical position if it is.',
20
- 'left': 'Computes to ‘0%’ for the horizontal position if one or two values are given, otherwise specifies the left edge as the origin for the next offset.',
21
- 'right': 'Computes to ‘100%’ for the horizontal position if one or two values are given, otherwise specifies the right edge as the origin for the next offset.',
22
- 'top': 'Computes to ‘0%’ for the vertical position if one or two values are given, otherwise specifies the top edge as the origin for the next offset.'
23
- };
24
- exports.repeatStyleKeywords = {
25
- 'no-repeat': 'Placed once and not repeated in this direction.',
26
- 'repeat': 'Repeated in this direction as often as needed to cover the background painting area.',
27
- 'repeat-x': 'Computes to ‘repeat no-repeat’.',
28
- 'repeat-y': 'Computes to ‘no-repeat repeat’.',
29
- 'round': 'Repeated as often as will fit within the background positioning area. If it doesn’t fit a whole number of times, it is rescaled so that it does.',
30
- 'space': 'Repeated as often as will fit within the background positioning area without being clipped and then the images are spaced out to fill the area.'
31
- };
32
- exports.lineStyleKeywords = {
33
- 'dashed': 'A series of square-ended dashes.',
34
- 'dotted': 'A series of round dots.',
35
- 'double': 'Two parallel solid lines with some space between them.',
36
- 'groove': 'Looks as if it were carved in the canvas.',
37
- 'hidden': 'Same as ‘none’, but has different behavior in the border conflict resolution rules for border-collapsed tables.',
38
- 'inset': 'Looks as if the content on the inside of the border is sunken into the canvas.',
39
- 'none': 'No border. Color and width are ignored.',
40
- 'outset': 'Looks as if the content on the inside of the border is coming out of the canvas.',
41
- 'ridge': 'Looks as if it were coming out of the canvas.',
42
- 'solid': 'A single line segment.'
43
- };
44
- exports.lineWidthKeywords = ['medium', 'thick', 'thin'];
45
- exports.boxKeywords = {
46
- 'border-box': 'The background is painted within (clipped to) the border box.',
47
- 'content-box': 'The background is painted within (clipped to) the content box.',
48
- 'padding-box': 'The background is painted within (clipped to) the padding box.'
49
- };
50
- exports.geometryBoxKeywords = {
51
- 'margin-box': 'Uses the margin box as reference box.',
52
- 'fill-box': 'Uses the object bounding box as reference box.',
53
- 'stroke-box': 'Uses the stroke bounding box as reference box.',
54
- 'view-box': 'Uses the nearest SVG viewport as reference box.'
55
- };
56
- exports.cssWideKeywords = {
57
- 'initial': 'Represents the value specified as the property’s initial value.',
58
- 'inherit': 'Represents the computed value of the property on the element’s parent.',
59
- 'unset': 'Acts as either `inherit` or `initial`, depending on whether the property is inherited or not.'
60
- };
61
- exports.cssWideFunctions = {
62
- 'var()': 'Evaluates the value of a custom variable.',
63
- 'calc()': 'Evaluates an mathematical expression. The following operators can be used: + - * /.'
64
- };
65
- exports.imageFunctions = {
66
- 'url()': 'Reference an image file by URL',
67
- 'image()': 'Provide image fallbacks and annotations.',
68
- '-webkit-image-set()': 'Provide multiple resolutions. Remember to use unprefixed image-set() in addition.',
69
- 'image-set()': 'Provide multiple resolutions of an image and const the UA decide which is most appropriate in a given situation.',
70
- '-moz-element()': 'Use an element in the document as an image. Remember to use unprefixed element() in addition.',
71
- 'element()': 'Use an element in the document as an image.',
72
- 'cross-fade()': 'Indicates the two images to be combined and how far along in the transition the combination is.',
73
- '-webkit-gradient()': 'Deprecated. Use modern linear-gradient() or radial-gradient() instead.',
74
- '-webkit-linear-gradient()': 'Linear gradient. Remember to use unprefixed version in addition.',
75
- '-moz-linear-gradient()': 'Linear gradient. Remember to use unprefixed version in addition.',
76
- '-o-linear-gradient()': 'Linear gradient. Remember to use unprefixed version in addition.',
77
- 'linear-gradient()': 'A linear gradient is created by specifying a straight gradient line, and then several colors placed along that line.',
78
- '-webkit-repeating-linear-gradient()': 'Repeating Linear gradient. Remember to use unprefixed version in addition.',
79
- '-moz-repeating-linear-gradient()': 'Repeating Linear gradient. Remember to use unprefixed version in addition.',
80
- '-o-repeating-linear-gradient()': 'Repeating Linear gradient. Remember to use unprefixed version in addition.',
81
- 'repeating-linear-gradient()': 'Same as linear-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop’s position and the first specified color-stop’s position.',
82
- '-webkit-radial-gradient()': 'Radial gradient. Remember to use unprefixed version in addition.',
83
- '-moz-radial-gradient()': 'Radial gradient. Remember to use unprefixed version in addition.',
84
- 'radial-gradient()': 'Colors emerge from a single point and smoothly spread outward in a circular or elliptical shape.',
85
- '-webkit-repeating-radial-gradient()': 'Repeating radial gradient. Remember to use unprefixed version in addition.',
86
- '-moz-repeating-radial-gradient()': 'Repeating radial gradient. Remember to use unprefixed version in addition.',
87
- 'repeating-radial-gradient()': 'Same as radial-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop’s position and the first specified color-stop’s position.'
88
- };
89
- exports.transitionTimingFunctions = {
90
- 'ease': 'Equivalent to cubic-bezier(0.25, 0.1, 0.25, 1.0).',
91
- 'ease-in': 'Equivalent to cubic-bezier(0.42, 0, 1.0, 1.0).',
92
- 'ease-in-out': 'Equivalent to cubic-bezier(0.42, 0, 0.58, 1.0).',
93
- 'ease-out': 'Equivalent to cubic-bezier(0, 0, 0.58, 1.0).',
94
- 'linear': 'Equivalent to cubic-bezier(0.0, 0.0, 1.0, 1.0).',
95
- 'step-end': 'Equivalent to steps(1, end).',
96
- 'step-start': 'Equivalent to steps(1, start).',
97
- 'steps()': 'The first parameter specifies the number of intervals in the function. The second parameter, which is optional, is either the value “start” or “end”.',
98
- 'cubic-bezier()': 'Specifies a cubic-bezier curve. The four values specify points P1 and P2 of the curve as (x1, y1, x2, y2).',
99
- 'cubic-bezier(0.6, -0.28, 0.735, 0.045)': 'Ease-in Back. Overshoots.',
100
- 'cubic-bezier(0.68, -0.55, 0.265, 1.55)': 'Ease-in-out Back. Overshoots.',
101
- 'cubic-bezier(0.175, 0.885, 0.32, 1.275)': 'Ease-out Back. Overshoots.',
102
- 'cubic-bezier(0.6, 0.04, 0.98, 0.335)': 'Ease-in Circular. Based on half circle.',
103
- 'cubic-bezier(0.785, 0.135, 0.15, 0.86)': 'Ease-in-out Circular. Based on half circle.',
104
- 'cubic-bezier(0.075, 0.82, 0.165, 1)': 'Ease-out Circular. Based on half circle.',
105
- 'cubic-bezier(0.55, 0.055, 0.675, 0.19)': 'Ease-in Cubic. Based on power of three.',
106
- 'cubic-bezier(0.645, 0.045, 0.355, 1)': 'Ease-in-out Cubic. Based on power of three.',
107
- 'cubic-bezier(0.215, 0.610, 0.355, 1)': 'Ease-out Cubic. Based on power of three.',
108
- 'cubic-bezier(0.95, 0.05, 0.795, 0.035)': 'Ease-in Exponential. Based on two to the power ten.',
109
- 'cubic-bezier(1, 0, 0, 1)': 'Ease-in-out Exponential. Based on two to the power ten.',
110
- 'cubic-bezier(0.19, 1, 0.22, 1)': 'Ease-out Exponential. Based on two to the power ten.',
111
- 'cubic-bezier(0.47, 0, 0.745, 0.715)': 'Ease-in Sine.',
112
- 'cubic-bezier(0.445, 0.05, 0.55, 0.95)': 'Ease-in-out Sine.',
113
- 'cubic-bezier(0.39, 0.575, 0.565, 1)': 'Ease-out Sine.',
114
- 'cubic-bezier(0.55, 0.085, 0.68, 0.53)': 'Ease-in Quadratic. Based on power of two.',
115
- 'cubic-bezier(0.455, 0.03, 0.515, 0.955)': 'Ease-in-out Quadratic. Based on power of two.',
116
- 'cubic-bezier(0.25, 0.46, 0.45, 0.94)': 'Ease-out Quadratic. Based on power of two.',
117
- 'cubic-bezier(0.895, 0.03, 0.685, 0.22)': 'Ease-in Quartic. Based on power of four.',
118
- 'cubic-bezier(0.77, 0, 0.175, 1)': 'Ease-in-out Quartic. Based on power of four.',
119
- 'cubic-bezier(0.165, 0.84, 0.44, 1)': 'Ease-out Quartic. Based on power of four.',
120
- 'cubic-bezier(0.755, 0.05, 0.855, 0.06)': 'Ease-in Quintic. Based on power of five.',
121
- 'cubic-bezier(0.86, 0, 0.07, 1)': 'Ease-in-out Quintic. Based on power of five.',
122
- 'cubic-bezier(0.23, 1, 0.320, 1)': 'Ease-out Quintic. Based on power of five.'
123
- };
124
- exports.basicShapeFunctions = {
125
- 'circle()': 'Defines a circle.',
126
- 'ellipse()': 'Defines an ellipse.',
127
- 'inset()': 'Defines an inset rectangle.',
128
- 'polygon()': 'Defines a polygon.'
129
- };
130
- exports.units = {
131
- 'length': ['em', 'rem', 'ex', 'px', 'cm', 'mm', 'in', 'pt', 'pc', 'ch', 'vw', 'vh', 'vmin', 'vmax'],
132
- 'angle': ['deg', 'rad', 'grad', 'turn'],
133
- 'time': ['ms', 's'],
134
- 'frequency': ['Hz', 'kHz'],
135
- 'resolution': ['dpi', 'dpcm', 'dppx'],
136
- 'percentage': ['%', 'fr']
137
- };
138
- exports.html5Tags = ['a', 'abbr', 'address', 'area', 'article', 'aside', 'audio', 'b', 'base', 'bdi', 'bdo', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption',
139
- 'cite', 'code', 'col', 'colgroup', 'data', 'datalist', 'dd', 'del', 'details', 'dfn', 'dialog', 'div', 'dl', 'dt', 'em', 'embed', 'fieldset', 'figcaption', 'figure', 'footer',
140
- 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'iframe', 'img', 'input', 'ins', 'kbd', 'keygen', 'label', 'legend', 'li', 'link',
141
- 'main', 'map', 'mark', 'menu', 'menuitem', 'meta', 'meter', 'nav', 'noscript', 'object', 'ol', 'optgroup', 'option', 'output', 'p', 'param', 'picture', 'pre', 'progress', 'q',
142
- 'rb', 'rp', 'rt', 'rtc', 'ruby', 's', 'samp', 'script', 'section', 'select', 'small', 'source', 'span', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td',
143
- 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'title', 'tr', 'track', 'u', 'ul', 'const', 'video', 'wbr'];
144
- exports.svgElements = ['circle', 'clipPath', 'cursor', 'defs', 'desc', 'ellipse', 'feBlend', 'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting',
145
- 'feDisplacementMap', 'feDistantLight', 'feDropShadow', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feImage', 'feMerge', 'feMergeNode', 'feMorphology',
146
- 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence', 'filter', 'foreignObject', 'g', 'hatch', 'hatchpath', 'image', 'line', 'linearGradient',
147
- 'marker', 'mask', 'mesh', 'meshpatch', 'meshrow', 'metadata', 'mpath', 'path', 'pattern', 'polygon', 'polyline', 'radialGradient', 'rect', 'set', 'solidcolor', 'stop', 'svg', 'switch',
148
- 'symbol', 'text', 'textPath', 'tspan', 'use', 'view'];
149
- exports.pageBoxDirectives = [
150
- '@bottom-center', '@bottom-left', '@bottom-left-corner', '@bottom-right', '@bottom-right-corner',
151
- '@left-bottom', '@left-middle', '@left-top', '@right-bottom', '@right-middle', '@right-top',
152
- '@top-center', '@top-left', '@top-left-corner', '@top-right', '@top-right-corner'
153
- ];
154
- });
1
+ (function (factory) {
2
+ if (typeof module === "object" && typeof module.exports === "object") {
3
+ var v = factory(require, exports);
4
+ if (v !== undefined) module.exports = v;
5
+ }
6
+ else if (typeof define === "function" && define.amd) {
7
+ define(["require", "exports"], factory);
8
+ }
9
+ })(function (require, exports) {
10
+ /*---------------------------------------------------------------------------------------------
11
+ * Copyright (c) Microsoft Corporation. All rights reserved.
12
+ * Licensed under the MIT License. See License.txt in the project root for license information.
13
+ *--------------------------------------------------------------------------------------------*/
14
+ 'use strict';
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.pageBoxDirectives = exports.svgElements = exports.html5Tags = exports.units = exports.basicShapeFunctions = exports.transitionTimingFunctions = exports.imageFunctions = exports.cssWideFunctions = exports.cssWideKeywords = exports.geometryBoxKeywords = exports.boxKeywords = exports.lineWidthKeywords = exports.lineStyleKeywords = exports.repeatStyleKeywords = exports.positionKeywords = void 0;
17
+ exports.positionKeywords = {
18
+ 'bottom': 'Computes to ‘100%’ for the vertical position if one or two values are given, otherwise specifies the bottom edge as the origin for the next offset.',
19
+ 'center': 'Computes to ‘50%’ (‘left 50%’) for the horizontal position if the horizontal position is not otherwise specified, or ‘50%’ (‘top 50%’) for the vertical position if it is.',
20
+ 'left': 'Computes to ‘0%’ for the horizontal position if one or two values are given, otherwise specifies the left edge as the origin for the next offset.',
21
+ 'right': 'Computes to ‘100%’ for the horizontal position if one or two values are given, otherwise specifies the right edge as the origin for the next offset.',
22
+ 'top': 'Computes to ‘0%’ for the vertical position if one or two values are given, otherwise specifies the top edge as the origin for the next offset.'
23
+ };
24
+ exports.repeatStyleKeywords = {
25
+ 'no-repeat': 'Placed once and not repeated in this direction.',
26
+ 'repeat': 'Repeated in this direction as often as needed to cover the background painting area.',
27
+ 'repeat-x': 'Computes to ‘repeat no-repeat’.',
28
+ 'repeat-y': 'Computes to ‘no-repeat repeat’.',
29
+ 'round': 'Repeated as often as will fit within the background positioning area. If it doesn’t fit a whole number of times, it is rescaled so that it does.',
30
+ 'space': 'Repeated as often as will fit within the background positioning area without being clipped and then the images are spaced out to fill the area.'
31
+ };
32
+ exports.lineStyleKeywords = {
33
+ 'dashed': 'A series of square-ended dashes.',
34
+ 'dotted': 'A series of round dots.',
35
+ 'double': 'Two parallel solid lines with some space between them.',
36
+ 'groove': 'Looks as if it were carved in the canvas.',
37
+ 'hidden': 'Same as ‘none’, but has different behavior in the border conflict resolution rules for border-collapsed tables.',
38
+ 'inset': 'Looks as if the content on the inside of the border is sunken into the canvas.',
39
+ 'none': 'No border. Color and width are ignored.',
40
+ 'outset': 'Looks as if the content on the inside of the border is coming out of the canvas.',
41
+ 'ridge': 'Looks as if it were coming out of the canvas.',
42
+ 'solid': 'A single line segment.'
43
+ };
44
+ exports.lineWidthKeywords = ['medium', 'thick', 'thin'];
45
+ exports.boxKeywords = {
46
+ 'border-box': 'The background is painted within (clipped to) the border box.',
47
+ 'content-box': 'The background is painted within (clipped to) the content box.',
48
+ 'padding-box': 'The background is painted within (clipped to) the padding box.'
49
+ };
50
+ exports.geometryBoxKeywords = {
51
+ 'margin-box': 'Uses the margin box as reference box.',
52
+ 'fill-box': 'Uses the object bounding box as reference box.',
53
+ 'stroke-box': 'Uses the stroke bounding box as reference box.',
54
+ 'view-box': 'Uses the nearest SVG viewport as reference box.'
55
+ };
56
+ exports.cssWideKeywords = {
57
+ 'initial': 'Represents the value specified as the property’s initial value.',
58
+ 'inherit': 'Represents the computed value of the property on the element’s parent.',
59
+ 'unset': 'Acts as either `inherit` or `initial`, depending on whether the property is inherited or not.'
60
+ };
61
+ exports.cssWideFunctions = {
62
+ 'var()': 'Evaluates the value of a custom variable.',
63
+ 'calc()': 'Evaluates an mathematical expression. The following operators can be used: + - * /.'
64
+ };
65
+ exports.imageFunctions = {
66
+ 'url()': 'Reference an image file by URL',
67
+ 'image()': 'Provide image fallbacks and annotations.',
68
+ '-webkit-image-set()': 'Provide multiple resolutions. Remember to use unprefixed image-set() in addition.',
69
+ 'image-set()': 'Provide multiple resolutions of an image and const the UA decide which is most appropriate in a given situation.',
70
+ '-moz-element()': 'Use an element in the document as an image. Remember to use unprefixed element() in addition.',
71
+ 'element()': 'Use an element in the document as an image.',
72
+ 'cross-fade()': 'Indicates the two images to be combined and how far along in the transition the combination is.',
73
+ '-webkit-gradient()': 'Deprecated. Use modern linear-gradient() or radial-gradient() instead.',
74
+ '-webkit-linear-gradient()': 'Linear gradient. Remember to use unprefixed version in addition.',
75
+ '-moz-linear-gradient()': 'Linear gradient. Remember to use unprefixed version in addition.',
76
+ '-o-linear-gradient()': 'Linear gradient. Remember to use unprefixed version in addition.',
77
+ 'linear-gradient()': 'A linear gradient is created by specifying a straight gradient line, and then several colors placed along that line.',
78
+ '-webkit-repeating-linear-gradient()': 'Repeating Linear gradient. Remember to use unprefixed version in addition.',
79
+ '-moz-repeating-linear-gradient()': 'Repeating Linear gradient. Remember to use unprefixed version in addition.',
80
+ '-o-repeating-linear-gradient()': 'Repeating Linear gradient. Remember to use unprefixed version in addition.',
81
+ 'repeating-linear-gradient()': 'Same as linear-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop’s position and the first specified color-stop’s position.',
82
+ '-webkit-radial-gradient()': 'Radial gradient. Remember to use unprefixed version in addition.',
83
+ '-moz-radial-gradient()': 'Radial gradient. Remember to use unprefixed version in addition.',
84
+ 'radial-gradient()': 'Colors emerge from a single point and smoothly spread outward in a circular or elliptical shape.',
85
+ '-webkit-repeating-radial-gradient()': 'Repeating radial gradient. Remember to use unprefixed version in addition.',
86
+ '-moz-repeating-radial-gradient()': 'Repeating radial gradient. Remember to use unprefixed version in addition.',
87
+ 'repeating-radial-gradient()': 'Same as radial-gradient, except the color-stops are repeated infinitely in both directions, with their positions shifted by multiples of the difference between the last specified color-stop’s position and the first specified color-stop’s position.'
88
+ };
89
+ exports.transitionTimingFunctions = {
90
+ 'ease': 'Equivalent to cubic-bezier(0.25, 0.1, 0.25, 1.0).',
91
+ 'ease-in': 'Equivalent to cubic-bezier(0.42, 0, 1.0, 1.0).',
92
+ 'ease-in-out': 'Equivalent to cubic-bezier(0.42, 0, 0.58, 1.0).',
93
+ 'ease-out': 'Equivalent to cubic-bezier(0, 0, 0.58, 1.0).',
94
+ 'linear': 'Equivalent to cubic-bezier(0.0, 0.0, 1.0, 1.0).',
95
+ 'step-end': 'Equivalent to steps(1, end).',
96
+ 'step-start': 'Equivalent to steps(1, start).',
97
+ 'steps()': 'The first parameter specifies the number of intervals in the function. The second parameter, which is optional, is either the value “start” or “end”.',
98
+ 'cubic-bezier()': 'Specifies a cubic-bezier curve. The four values specify points P1 and P2 of the curve as (x1, y1, x2, y2).',
99
+ 'cubic-bezier(0.6, -0.28, 0.735, 0.045)': 'Ease-in Back. Overshoots.',
100
+ 'cubic-bezier(0.68, -0.55, 0.265, 1.55)': 'Ease-in-out Back. Overshoots.',
101
+ 'cubic-bezier(0.175, 0.885, 0.32, 1.275)': 'Ease-out Back. Overshoots.',
102
+ 'cubic-bezier(0.6, 0.04, 0.98, 0.335)': 'Ease-in Circular. Based on half circle.',
103
+ 'cubic-bezier(0.785, 0.135, 0.15, 0.86)': 'Ease-in-out Circular. Based on half circle.',
104
+ 'cubic-bezier(0.075, 0.82, 0.165, 1)': 'Ease-out Circular. Based on half circle.',
105
+ 'cubic-bezier(0.55, 0.055, 0.675, 0.19)': 'Ease-in Cubic. Based on power of three.',
106
+ 'cubic-bezier(0.645, 0.045, 0.355, 1)': 'Ease-in-out Cubic. Based on power of three.',
107
+ 'cubic-bezier(0.215, 0.610, 0.355, 1)': 'Ease-out Cubic. Based on power of three.',
108
+ 'cubic-bezier(0.95, 0.05, 0.795, 0.035)': 'Ease-in Exponential. Based on two to the power ten.',
109
+ 'cubic-bezier(1, 0, 0, 1)': 'Ease-in-out Exponential. Based on two to the power ten.',
110
+ 'cubic-bezier(0.19, 1, 0.22, 1)': 'Ease-out Exponential. Based on two to the power ten.',
111
+ 'cubic-bezier(0.47, 0, 0.745, 0.715)': 'Ease-in Sine.',
112
+ 'cubic-bezier(0.445, 0.05, 0.55, 0.95)': 'Ease-in-out Sine.',
113
+ 'cubic-bezier(0.39, 0.575, 0.565, 1)': 'Ease-out Sine.',
114
+ 'cubic-bezier(0.55, 0.085, 0.68, 0.53)': 'Ease-in Quadratic. Based on power of two.',
115
+ 'cubic-bezier(0.455, 0.03, 0.515, 0.955)': 'Ease-in-out Quadratic. Based on power of two.',
116
+ 'cubic-bezier(0.25, 0.46, 0.45, 0.94)': 'Ease-out Quadratic. Based on power of two.',
117
+ 'cubic-bezier(0.895, 0.03, 0.685, 0.22)': 'Ease-in Quartic. Based on power of four.',
118
+ 'cubic-bezier(0.77, 0, 0.175, 1)': 'Ease-in-out Quartic. Based on power of four.',
119
+ 'cubic-bezier(0.165, 0.84, 0.44, 1)': 'Ease-out Quartic. Based on power of four.',
120
+ 'cubic-bezier(0.755, 0.05, 0.855, 0.06)': 'Ease-in Quintic. Based on power of five.',
121
+ 'cubic-bezier(0.86, 0, 0.07, 1)': 'Ease-in-out Quintic. Based on power of five.',
122
+ 'cubic-bezier(0.23, 1, 0.320, 1)': 'Ease-out Quintic. Based on power of five.'
123
+ };
124
+ exports.basicShapeFunctions = {
125
+ 'circle()': 'Defines a circle.',
126
+ 'ellipse()': 'Defines an ellipse.',
127
+ 'inset()': 'Defines an inset rectangle.',
128
+ 'polygon()': 'Defines a polygon.'
129
+ };
130
+ exports.units = {
131
+ 'length': ['em', 'rem', 'ex', 'px', 'cm', 'mm', 'in', 'pt', 'pc', 'ch', 'vw', 'vh', 'vmin', 'vmax'],
132
+ 'angle': ['deg', 'rad', 'grad', 'turn'],
133
+ 'time': ['ms', 's'],
134
+ 'frequency': ['Hz', 'kHz'],
135
+ 'resolution': ['dpi', 'dpcm', 'dppx'],
136
+ 'percentage': ['%', 'fr']
137
+ };
138
+ exports.html5Tags = ['a', 'abbr', 'address', 'area', 'article', 'aside', 'audio', 'b', 'base', 'bdi', 'bdo', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption',
139
+ 'cite', 'code', 'col', 'colgroup', 'data', 'datalist', 'dd', 'del', 'details', 'dfn', 'dialog', 'div', 'dl', 'dt', 'em', 'embed', 'fieldset', 'figcaption', 'figure', 'footer',
140
+ 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'iframe', 'img', 'input', 'ins', 'kbd', 'keygen', 'label', 'legend', 'li', 'link',
141
+ 'main', 'map', 'mark', 'menu', 'menuitem', 'meta', 'meter', 'nav', 'noscript', 'object', 'ol', 'optgroup', 'option', 'output', 'p', 'param', 'picture', 'pre', 'progress', 'q',
142
+ 'rb', 'rp', 'rt', 'rtc', 'ruby', 's', 'samp', 'script', 'section', 'select', 'small', 'source', 'span', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td',
143
+ 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'title', 'tr', 'track', 'u', 'ul', 'const', 'video', 'wbr'];
144
+ exports.svgElements = ['circle', 'clipPath', 'cursor', 'defs', 'desc', 'ellipse', 'feBlend', 'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting',
145
+ 'feDisplacementMap', 'feDistantLight', 'feDropShadow', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feImage', 'feMerge', 'feMergeNode', 'feMorphology',
146
+ 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence', 'filter', 'foreignObject', 'g', 'hatch', 'hatchpath', 'image', 'line', 'linearGradient',
147
+ 'marker', 'mask', 'mesh', 'meshpatch', 'meshrow', 'metadata', 'mpath', 'path', 'pattern', 'polygon', 'polyline', 'radialGradient', 'rect', 'set', 'solidcolor', 'stop', 'svg', 'switch',
148
+ 'symbol', 'text', 'textPath', 'tspan', 'use', 'view'];
149
+ exports.pageBoxDirectives = [
150
+ '@bottom-center', '@bottom-left', '@bottom-left-corner', '@bottom-right', '@bottom-right-corner',
151
+ '@left-bottom', '@left-middle', '@left-top', '@right-bottom', '@right-middle', '@right-top',
152
+ '@top-center', '@top-left', '@top-left-corner', '@top-right', '@top-right-corner'
153
+ ];
154
+ });