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