forked from anandthakker/doiuse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
features.js
425 lines (418 loc) · 20.2 KB
/
features.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
/* THIS FILE IS AUTOGENERATED */
/* eslint-disable import/order, canonical/filename-match-exported */
import alternateStylesheet from './features/alternate-stylesheet.js';
import backgroundAttachment from './features/background-attachment.js';
import backgroundClipText from './features/background-clip-text.js';
import backgroundImgOpts from './features/background-img-opts.js';
import backgroundPositionXY from './features/background-position-x-y.js';
import backgroundRepeatRoundSpace from './features/background-repeat-round-space.js';
import borderImage from './features/border-image.js';
import borderRadius from './features/border-radius.js';
import calc from './features/calc.js';
import chUnit from './features/ch-unit.js';
import cssAll from './features/css-all.js';
import cssAnimation from './features/css-animation.js';
import cssAnyLink from './features/css-any-link.js';
import cssAppearance from './features/css-appearance.js';
import cssAtCounterStyle from './features/css-at-counter-style.js';
import cssAutofill from './features/css-autofill.js';
import cssBackdropFilter from './features/css-backdrop-filter.js';
import cssBackgroundOffsets from './features/css-background-offsets.js';
import cssBackgroundblendmode from './features/css-backgroundblendmode.js';
import cssBoxdecorationbreak from './features/css-boxdecorationbreak.js';
import cssBoxshadow from './features/css-boxshadow.js';
import cssCanvas from './features/css-canvas.js';
import cssCaretColor from './features/css-caret-color.js';
import cssCascadeLayers from './features/css-cascade-layers.js';
import cssCaseInsensitive from './features/css-case-insensitive.js';
import cssClipPath from './features/css-clip-path.js';
import cssColorAdjust from './features/css-color-adjust.js';
import cssColorFunction from './features/css-color-function.js';
import cssConicGradients from './features/css-conic-gradients.js';
import cssContainerQueries from './features/css-container-queries.js';
import cssContainerQueriesStyle from './features/css-container-queries-style.js';
import cssContainerQueryUnits from './features/css-container-query-units.js';
import cssContainment from './features/css-containment.js';
import cssContentVisibility from './features/css-content-visibility.js';
import cssCounters from './features/css-counters.js';
import cssCrispEdges from './features/css-crisp-edges.js';
import cssCrossFade from './features/css-cross-fade.js';
import cssDefaultPseudo from './features/css-default-pseudo.js';
import cssDescendantGtgt from './features/css-descendant-gtgt.js';
import cssDeviceadaptation from './features/css-deviceadaptation.js';
import cssDirPseudo from './features/css-dir-pseudo.js';
import cssDisplayContents from './features/css-display-contents.js';
import cssElementFunction from './features/css-element-function.js';
import cssEnvFunction from './features/css-env-function.js';
import cssExclusions from './features/css-exclusions.js';
import cssFeaturequeries from './features/css-featurequeries.js';
import cssFileSelectorButton from './features/css-file-selector-button.js';
import cssFilterFunction from './features/css-filter-function.js';
import cssFilters from './features/css-filters.js';
import cssFirstLetter from './features/css-first-letter.js';
import cssFirstLine from './features/css-first-line.js';
import cssFixed from './features/css-fixed.js';
import cssFocusVisible from './features/css-focus-visible.js';
import cssFocusWithin from './features/css-focus-within.js';
import cssFontPalette from './features/css-font-palette.js';
import cssFontRenderingControls from './features/css-font-rendering-controls.js';
import cssFontStretch from './features/css-font-stretch.js';
import cssGencontent from './features/css-gencontent.js';
import cssGradients from './features/css-gradients.js';
import cssGrid from './features/css-grid.js';
import cssGridAnimation from './features/css-grid-animation.js';
import cssHangingPunctuation from './features/css-hanging-punctuation.js';
import cssHas from './features/css-has.js';
import cssHyphens from './features/css-hyphens.js';
import cssImageOrientation from './features/css-image-orientation.js';
import cssImageSet from './features/css-image-set.js';
import cssInOutOfRange from './features/css-in-out-of-range.js';
import cssIndeterminatePseudo from './features/css-indeterminate-pseudo.js';
import cssInitialLetter from './features/css-initial-letter.js';
import cssInitialValue from './features/css-initial-value.js';
import cssLchLab from './features/css-lch-lab.js';
import cssLetterSpacing from './features/css-letter-spacing.js';
import cssLineClamp from './features/css-line-clamp.js';
import cssLogicalProps from './features/css-logical-props.js';
import cssMarkerPseudo from './features/css-marker-pseudo.js';
import cssMasks from './features/css-masks.js';
import cssMatchesPseudo from './features/css-matches-pseudo.js';
import cssMathFunctions from './features/css-math-functions.js';
import cssMediaInteraction from './features/css-media-interaction.js';
import cssMediaRangeSyntax from './features/css-media-range-syntax.js';
import cssMediaResolution from './features/css-media-resolution.js';
import cssMediaScripting from './features/css-media-scripting.js';
import cssMediaqueries from './features/css-mediaqueries.js';
import cssMixblendmode from './features/css-mixblendmode.js';
import cssMotionPaths from './features/css-motion-paths.js';
import cssNamespaces from './features/css-namespaces.js';
import cssNesting from './features/css-nesting.js';
import cssNotSelList from './features/css-not-sel-list.js';
import cssNthChildOf from './features/css-nth-child-of.js';
import cssOpacity from './features/css-opacity.js';
import cssOptionalPseudo from './features/css-optional-pseudo.js';
import cssOverflow from './features/css-overflow.js';
import cssOverflowAnchor from './features/css-overflow-anchor.js';
import cssOverflowOverlay from './features/css-overflow-overlay.js';
import cssOverscrollBehavior from './features/css-overscroll-behavior.js';
import cssPageBreak from './features/css-page-break.js';
import cssPagedMedia from './features/css-paged-media.js';
import cssPaintApi from './features/css-paint-api.js';
import cssPlaceholder from './features/css-placeholder.js';
import cssPlaceholderShown from './features/css-placeholder-shown.js';
import cssPrintColorAdjust from './features/css-print-color-adjust.js';
import cssReadOnlyWrite from './features/css-read-only-write.js';
import cssRebeccapurple from './features/css-rebeccapurple.js';
import cssReflections from './features/css-reflections.js';
import cssRegions from './features/css-regions.js';
import cssRelativeColors from './features/css-relative-colors.js';
import cssRepeatingGradients from './features/css-repeating-gradients.js';
import cssResize from './features/css-resize.js';
import cssRevertValue from './features/css-revert-value.js';
import cssRrggbbaa from './features/css-rrggbbaa.js';
import cssScrollBehavior from './features/css-scroll-behavior.js';
import cssScrollTimeline from './features/css-scroll-timeline.js';
import cssScrollbar from './features/css-scrollbar.js';
import cssSel2 from './features/css-sel2.js';
import cssSel3 from './features/css-sel3.js';
import cssSelection from './features/css-selection.js';
import cssShapes from './features/css-shapes.js';
import cssSnappoints from './features/css-snappoints.js';
import cssSticky from './features/css-sticky.js';
import cssSubgrid from './features/css-subgrid.js';
import cssSupportsApi from './features/css-supports-api.js';
import cssTable from './features/css-table.js';
import cssTextAlignLast from './features/css-text-align-last.js';
import cssTextBoxTrim from './features/css-text-box-trim.js';
import cssTextIndent from './features/css-text-indent.js';
import cssTextJustify from './features/css-text-justify.js';
import cssTextOrientation from './features/css-text-orientation.js';
import cssTextSpacing from './features/css-text-spacing.js';
import cssTextshadow from './features/css-textshadow.js';
import cssTouchAction from './features/css-touch-action.js';
import cssTransitions from './features/css-transitions.js';
import cssUnicodeBidi from './features/css-unicode-bidi.js';
import cssUnsetValue from './features/css-unset-value.js';
import cssVariables from './features/css-variables.js';
import cssWhenElse from './features/css-when-else.js';
import cssWidowsOrphans from './features/css-widows-orphans.js';
import cssWidthStretch from './features/css-width-stretch.js';
import cssWritingMode from './features/css-writing-mode.js';
import cssZoom from './features/css-zoom.js';
import css3Attr from './features/css3-attr.js';
import css3Boxsizing from './features/css3-boxsizing.js';
import css3Colors from './features/css3-colors.js';
import css3Cursors from './features/css3-cursors.js';
import css3CursorsGrab from './features/css3-cursors-grab.js';
import css3CursorsNewer from './features/css3-cursors-newer.js';
import css3Tabsize from './features/css3-tabsize.js';
import currentcolor from './features/currentcolor.js';
import devicepixelratio from './features/devicepixelratio.js';
import extendedSystemFonts from './features/extended-system-fonts.js';
import flexbox from './features/flexbox.js';
import flexboxGap from './features/flexbox-gap.js';
import flowRoot from './features/flow-root.js';
import fontFamilySystemUi from './features/font-family-system-ui.js';
import fontFeature from './features/font-feature.js';
import fontKerning from './features/font-kerning.js';
import fontLoading from './features/font-loading.js';
import fontSizeAdjust from './features/font-size-adjust.js';
import fontSmooth from './features/font-smooth.js';
import fontUnicodeRange from './features/font-unicode-range.js';
import fontVariantAlternates from './features/font-variant-alternates.js';
import fontVariantNumeric from './features/font-variant-numeric.js';
import fontface from './features/fontface.js';
import fullscreen from './features/fullscreen.js';
import getcomputedstyle from './features/getcomputedstyle.js';
import inlineBlock from './features/inline-block.js';
import intrinsicWidth from './features/intrinsic-width.js';
import justifyContentSpaceEvenly from './features/justify-content-space-evenly.js';
import kerningPairsLigatures from './features/kerning-pairs-ligatures.js';
import mdnCssUnicodeBidiIsolate from './features/mdn-css-unicode-bidi-isolate.js';
import mdnCssUnicodeBidiIsolateOverride from './features/mdn-css-unicode-bidi-isolate-override.js';
import mdnCssUnicodeBidiPlaintext from './features/mdn-css-unicode-bidi-plaintext.js';
import mdnTextDecorationColor from './features/mdn-text-decoration-color.js';
import mdnTextDecorationLine from './features/mdn-text-decoration-line.js';
import mdnTextDecorationShorthand from './features/mdn-text-decoration-shorthand.js';
import mdnTextDecorationStyle from './features/mdn-text-decoration-style.js';
import minmaxwh from './features/minmaxwh.js';
import multibackgrounds from './features/multibackgrounds.js';
import multicolumn from './features/multicolumn.js';
import objectFit from './features/object-fit.js';
import outline from './features/outline.js';
import pointer from './features/pointer.js';
import pointerEvents from './features/pointer-events.js';
import prefersColorScheme from './features/prefers-color-scheme.js';
import prefersReducedMotion from './features/prefers-reduced-motion.js';
import rem from './features/rem.js';
import runIn from './features/run-in.js';
import styleScoped from './features/style-scoped.js';
import svgCss from './features/svg-css.js';
import textDecoration from './features/text-decoration.js';
import textEmphasis from './features/text-emphasis.js';
import textOverflow from './features/text-overflow.js';
import textSizeAdjust from './features/text-size-adjust.js';
import textStroke from './features/text-stroke.js';
import transforms2d from './features/transforms2d.js';
import transforms3d from './features/transforms3d.js';
import ttf from './features/ttf.js';
import userSelectNone from './features/user-select-none.js';
import variableFonts from './features/variable-fonts.js';
import viewportUnitVariants from './features/viewport-unit-variants.js';
import viewportUnits from './features/viewport-units.js';
import webkitUserDrag from './features/webkit-user-drag.js';
import willChange from './features/will-change.js';
import wordBreak from './features/word-break.js';
import wordwrap from './features/wordwrap.js';
/** @typedef {RegExp|string|((value:string) => boolean)} FeatureCheck */
/** @typedef {((rule:import('postcss').ChildNode) => boolean)} RuleCheck */
/** @typedef {Record<string, FeatureCheck|FeatureCheck[]|boolean> | RuleCheck | RuleCheck[]} Feature */
/** @enum {Feature} */
const FEATURES = {
'alternate-stylesheet': alternateStylesheet,
'background-attachment': backgroundAttachment,
'background-clip-text': backgroundClipText,
'background-img-opts': backgroundImgOpts,
'background-position-x-y': backgroundPositionXY,
'background-repeat-round-space': backgroundRepeatRoundSpace,
'border-image': borderImage,
'border-radius': borderRadius,
'calc': calc,
'ch-unit': chUnit,
'css-all': cssAll,
'css-animation': cssAnimation,
'css-any-link': cssAnyLink,
'css-appearance': cssAppearance,
'css-at-counter-style': cssAtCounterStyle,
'css-autofill': cssAutofill,
'css-backdrop-filter': cssBackdropFilter,
'css-background-offsets': cssBackgroundOffsets,
'css-backgroundblendmode': cssBackgroundblendmode,
'css-boxdecorationbreak': cssBoxdecorationbreak,
'css-boxshadow': cssBoxshadow,
'css-canvas': cssCanvas,
'css-caret-color': cssCaretColor,
'css-cascade-layers': cssCascadeLayers,
'css-case-insensitive': cssCaseInsensitive,
'css-clip-path': cssClipPath,
'css-color-adjust': cssColorAdjust,
'css-color-function': cssColorFunction,
'css-conic-gradients': cssConicGradients,
'css-container-queries': cssContainerQueries,
'css-container-queries-style': cssContainerQueriesStyle,
'css-container-query-units': cssContainerQueryUnits,
'css-containment': cssContainment,
'css-content-visibility': cssContentVisibility,
'css-counters': cssCounters,
'css-crisp-edges': cssCrispEdges,
'css-cross-fade': cssCrossFade,
'css-default-pseudo': cssDefaultPseudo,
'css-descendant-gtgt': cssDescendantGtgt,
'css-deviceadaptation': cssDeviceadaptation,
'css-dir-pseudo': cssDirPseudo,
'css-display-contents': cssDisplayContents,
'css-element-function': cssElementFunction,
'css-env-function': cssEnvFunction,
'css-exclusions': cssExclusions,
'css-featurequeries': cssFeaturequeries,
'css-file-selector-button': cssFileSelectorButton,
'css-filter-function': cssFilterFunction,
'css-filters': cssFilters,
'css-first-letter': cssFirstLetter,
'css-first-line': cssFirstLine,
'css-fixed': cssFixed,
'css-focus-visible': cssFocusVisible,
'css-focus-within': cssFocusWithin,
'css-font-palette': cssFontPalette,
'css-font-rendering-controls': cssFontRenderingControls,
'css-font-stretch': cssFontStretch,
'css-gencontent': cssGencontent,
'css-gradients': cssGradients,
'css-grid': cssGrid,
'css-grid-animation': cssGridAnimation,
'css-hanging-punctuation': cssHangingPunctuation,
'css-has': cssHas,
'css-hyphens': cssHyphens,
'css-image-orientation': cssImageOrientation,
'css-image-set': cssImageSet,
'css-in-out-of-range': cssInOutOfRange,
'css-indeterminate-pseudo': cssIndeterminatePseudo,
'css-initial-letter': cssInitialLetter,
'css-initial-value': cssInitialValue,
'css-lch-lab': cssLchLab,
'css-letter-spacing': cssLetterSpacing,
'css-line-clamp': cssLineClamp,
'css-logical-props': cssLogicalProps,
'css-marker-pseudo': cssMarkerPseudo,
'css-masks': cssMasks,
'css-matches-pseudo': cssMatchesPseudo,
'css-math-functions': cssMathFunctions,
'css-media-interaction': cssMediaInteraction,
'css-media-range-syntax': cssMediaRangeSyntax,
'css-media-resolution': cssMediaResolution,
'css-media-scripting': cssMediaScripting,
'css-mediaqueries': cssMediaqueries,
'css-mixblendmode': cssMixblendmode,
'css-motion-paths': cssMotionPaths,
'css-namespaces': cssNamespaces,
'css-nesting': cssNesting,
'css-not-sel-list': cssNotSelList,
'css-nth-child-of': cssNthChildOf,
'css-opacity': cssOpacity,
'css-optional-pseudo': cssOptionalPseudo,
'css-overflow': cssOverflow,
'css-overflow-anchor': cssOverflowAnchor,
'css-overflow-overlay': cssOverflowOverlay,
'css-overscroll-behavior': cssOverscrollBehavior,
'css-page-break': cssPageBreak,
'css-paged-media': cssPagedMedia,
'css-paint-api': cssPaintApi,
'css-placeholder': cssPlaceholder,
'css-placeholder-shown': cssPlaceholderShown,
'css-print-color-adjust': cssPrintColorAdjust,
'css-read-only-write': cssReadOnlyWrite,
'css-rebeccapurple': cssRebeccapurple,
'css-reflections': cssReflections,
'css-regions': cssRegions,
'css-relative-colors': cssRelativeColors,
'css-repeating-gradients': cssRepeatingGradients,
'css-resize': cssResize,
'css-revert-value': cssRevertValue,
'css-rrggbbaa': cssRrggbbaa,
'css-scroll-behavior': cssScrollBehavior,
'css-scroll-timeline': cssScrollTimeline,
'css-scrollbar': cssScrollbar,
'css-sel2': cssSel2,
'css-sel3': cssSel3,
'css-selection': cssSelection,
'css-shapes': cssShapes,
'css-snappoints': cssSnappoints,
'css-sticky': cssSticky,
'css-subgrid': cssSubgrid,
'css-supports-api': cssSupportsApi,
'css-table': cssTable,
'css-text-align-last': cssTextAlignLast,
'css-text-box-trim': cssTextBoxTrim,
'css-text-indent': cssTextIndent,
'css-text-justify': cssTextJustify,
'css-text-orientation': cssTextOrientation,
'css-text-spacing': cssTextSpacing,
'css-textshadow': cssTextshadow,
'css-touch-action': cssTouchAction,
'css-transitions': cssTransitions,
'css-unicode-bidi': cssUnicodeBidi,
'css-unset-value': cssUnsetValue,
'css-variables': cssVariables,
'css-when-else': cssWhenElse,
'css-widows-orphans': cssWidowsOrphans,
'css-width-stretch': cssWidthStretch,
'css-writing-mode': cssWritingMode,
'css-zoom': cssZoom,
'css3-attr': css3Attr,
'css3-boxsizing': css3Boxsizing,
'css3-colors': css3Colors,
'css3-cursors': css3Cursors,
'css3-cursors-grab': css3CursorsGrab,
'css3-cursors-newer': css3CursorsNewer,
'css3-tabsize': css3Tabsize,
'currentcolor': currentcolor,
'devicepixelratio': devicepixelratio,
'extended-system-fonts': extendedSystemFonts,
'flexbox': flexbox,
'flexbox-gap': flexboxGap,
'flow-root': flowRoot,
'font-family-system-ui': fontFamilySystemUi,
'font-feature': fontFeature,
'font-kerning': fontKerning,
'font-loading': fontLoading,
'font-size-adjust': fontSizeAdjust,
'font-smooth': fontSmooth,
'font-unicode-range': fontUnicodeRange,
'font-variant-alternates': fontVariantAlternates,
'font-variant-numeric': fontVariantNumeric,
'fontface': fontface,
'fullscreen': fullscreen,
'getcomputedstyle': getcomputedstyle,
'inline-block': inlineBlock,
'intrinsic-width': intrinsicWidth,
'justify-content-space-evenly': justifyContentSpaceEvenly,
'kerning-pairs-ligatures': kerningPairsLigatures,
'mdn-css-unicode-bidi-isolate': mdnCssUnicodeBidiIsolate,
'mdn-css-unicode-bidi-isolate-override': mdnCssUnicodeBidiIsolateOverride,
'mdn-css-unicode-bidi-plaintext': mdnCssUnicodeBidiPlaintext,
'mdn-text-decoration-color': mdnTextDecorationColor,
'mdn-text-decoration-line': mdnTextDecorationLine,
'mdn-text-decoration-shorthand': mdnTextDecorationShorthand,
'mdn-text-decoration-style': mdnTextDecorationStyle,
'minmaxwh': minmaxwh,
'multibackgrounds': multibackgrounds,
'multicolumn': multicolumn,
'object-fit': objectFit,
'outline': outline,
'pointer': pointer,
'pointer-events': pointerEvents,
'prefers-color-scheme': prefersColorScheme,
'prefers-reduced-motion': prefersReducedMotion,
'rem': rem,
'run-in': runIn,
'style-scoped': styleScoped,
'svg-css': svgCss,
'text-decoration': textDecoration,
'text-emphasis': textEmphasis,
'text-overflow': textOverflow,
'text-size-adjust': textSizeAdjust,
'text-stroke': textStroke,
'transforms2d': transforms2d,
'transforms3d': transforms3d,
'ttf': ttf,
'user-select-none': userSelectNone,
'variable-fonts': variableFonts,
'viewport-unit-variants': viewportUnitVariants,
'viewport-units': viewportUnits,
'webkit-user-drag': webkitUserDrag,
'will-change': willChange,
'word-break': wordBreak,
'wordwrap': wordwrap,
};
/** @typedef {keyof typeof FEATURES} FeatureKeys */
export default /** @type {{[K in FeatureKeys]: Feature}} */ (FEATURES);