| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668 |
- // NOTICE: This file is generated by Rollup. To modify it,
- // please instead edit the ESM counterpart and rebuild with Rollup (npm run build).
- 'use strict';
- const uniteSets = require('../utils/uniteSets.cjs');
- /** @type {ReadonlySet<string>} */
- const basicKeywords = new Set(['initial', 'inherit', 'revert', 'revert-layer', 'unset']);
- /** @type {ReadonlySet<string>} */
- const systemFontKeywords = uniteSets(basicKeywords, [
- 'caption',
- 'icon',
- 'menu',
- 'message-box',
- 'small-caption',
- 'status-bar',
- ]);
- /** @type {ReadonlySet<string>} */
- const fontFamilyKeywords = uniteSets(basicKeywords, [
- 'serif',
- 'sans-serif',
- 'cursive',
- 'fantasy',
- 'monospace',
- 'system-ui',
- 'ui-serif',
- 'ui-sans-serif',
- 'ui-monospace',
- 'ui-rounded',
- 'emoji',
- 'math',
- 'fangsong',
- ]);
- /** @type {ReadonlySet<string>} */
- const appleSystemFonts = new Set([
- '-apple-system',
- '-apple-system-headline',
- '-apple-system-body',
- '-apple-system-subheadline',
- '-apple-system-footnote',
- '-apple-system-caption1',
- '-apple-system-caption2',
- '-apple-system-short-headline',
- '-apple-system-short-body',
- '-apple-system-short-subheadline',
- '-apple-system-short-footnote',
- '-apple-system-short-caption1',
- '-apple-system-tall-body',
- '-apple-system-title0',
- '-apple-system-title1',
- '-apple-system-title2',
- '-apple-system-title3',
- '-apple-system-title4',
- ]);
- /** @type {ReadonlySet<string>} */
- const mozillaSystemFonts = new Set([
- '-moz-button',
- '-moz-desktop',
- '-moz-dialog',
- '-moz-document',
- '-moz-field',
- '-moz-fixed',
- '-moz-info',
- '-moz-list',
- '-moz-pull-down-menu',
- '-moz-window',
- '-moz-workspace',
- ]);
- /** @type {ReadonlySet<string>} */
- const webkitSystemFonts = new Set([
- '-webkit-body',
- '-webkit-control',
- '-webkit-mini-control',
- '-webkit-pictograph',
- '-webkit-small-control',
- '-webkit-standard',
- ]);
- /** @type {ReadonlySet<string>} */
- const prefixedSystemFonts = uniteSets(
- appleSystemFonts,
- mozillaSystemFonts,
- webkitSystemFonts,
- );
- /** @type {ReadonlySet<string>} */
- const fontWeightRelativeKeywords = new Set(['bolder', 'lighter']);
- /** @type {ReadonlySet<string>} */
- const fontWeightAbsoluteKeywords = new Set(['normal', 'bold']);
- /** @type {ReadonlySet<string>} */
- const fontWeightNonNumericKeywords = uniteSets(
- fontWeightRelativeKeywords,
- fontWeightAbsoluteKeywords,
- );
- /** @type {ReadonlySet<string>} */
- const fontWeightNumericKeywords = new Set([
- '100',
- '200',
- '300',
- '400',
- '500',
- '600',
- '700',
- '800',
- '900',
- ]);
- /** @type {ReadonlySet<string>} */
- const fontWeightKeywords = uniteSets(
- basicKeywords,
- fontWeightNonNumericKeywords,
- fontWeightNumericKeywords,
- );
- /** @type {ReadonlySet<string>} */
- const fontStyleKeywords = uniteSets(basicKeywords, ['normal', 'italic', 'oblique']);
- /** @type {ReadonlySet<string>} */
- const fontVariantCSS2Keywords = uniteSets(basicKeywords, ['normal', 'none', 'small-caps']);
- /** @type {ReadonlySet<string>} */
- const fontStretchKeywords = uniteSets(basicKeywords, [
- 'semi-condensed',
- 'condensed',
- 'extra-condensed',
- 'ultra-condensed',
- 'semi-expanded',
- 'expanded',
- 'extra-expanded',
- 'ultra-expanded',
- ]);
- /** @type {ReadonlySet<string>} */
- const fontSizeKeywords = uniteSets(basicKeywords, [
- 'xx-small',
- 'x-small',
- 'small',
- 'medium',
- 'large',
- 'x-large',
- 'xx-large',
- 'xxx-large',
- 'larger',
- 'smaller',
- 'math',
- '-konq-xxx-large',
- '-webkit-xxx-large',
- ]);
- /** @type {ReadonlySet<string>} */
- const lineHeightKeywords = uniteSets(basicKeywords, ['normal']);
- /** @type {ReadonlySet<string>} */
- const fontShorthandKeywords = uniteSets(
- basicKeywords,
- fontStyleKeywords,
- fontVariantCSS2Keywords,
- fontWeightKeywords,
- fontStretchKeywords,
- fontSizeKeywords,
- lineHeightKeywords,
- fontFamilyKeywords,
- );
- /** @type {ReadonlySet<string>} */
- const animationNameKeywords = uniteSets(basicKeywords, ['none']);
- /** @type {ReadonlySet<string>} */
- const animationTimingFunctionKeywords = uniteSets(basicKeywords, [
- 'linear',
- 'ease',
- 'ease-in',
- 'ease-in-out',
- 'ease-out',
- 'step-start',
- 'step-end',
- 'steps',
- 'cubic-bezier',
- ]);
- /** @type {ReadonlySet<string>} */
- const animationIterationCountKeywords = new Set(['infinite']);
- /** @type {ReadonlySet<string>} */
- const animationDirectionKeywords = uniteSets(basicKeywords, [
- 'normal',
- 'reverse',
- 'alternate',
- 'alternate-reverse',
- ]);
- /** @type {ReadonlySet<string>} */
- const animationFillModeKeywords = new Set(['none', 'forwards', 'backwards', 'both']);
- /** @type {ReadonlySet<string>} */
- const animationPlayStateKeywords = uniteSets(basicKeywords, ['running', 'paused']);
- /**
- * @see https://developer.mozilla.org/docs/Web/CSS/animation
- * @type {ReadonlySet<string>}
- */
- const animationShorthandKeywords = uniteSets(
- basicKeywords,
- animationNameKeywords,
- animationTimingFunctionKeywords,
- animationIterationCountKeywords,
- animationDirectionKeywords,
- animationFillModeKeywords,
- animationPlayStateKeywords,
- );
- /** @type {ReadonlySet<string>} */
- const gridRowKeywords = uniteSets(basicKeywords, ['auto', 'span']);
- /** @type {ReadonlySet<string>} */
- const gridColumnKeywords = uniteSets(basicKeywords, ['auto', 'span']);
- /** @type {ReadonlySet<string>} */
- const gridAreaKeywords = uniteSets(basicKeywords, ['auto', 'span']);
- /**
- * @see https://developer.mozilla.org/docs/Web/CSS/counter-increment
- * @type {ReadonlySet<string>}
- */
- const counterIncrementKeywords = uniteSets(basicKeywords, ['none']);
- /** @type {ReadonlySet<string>} */
- const counterResetKeywords = uniteSets(basicKeywords, ['none']);
- /**
- * @see https://developer.mozilla.org/docs/Web/CSS/list-style-type
- * @type {ReadonlySet<string>}
- */
- const listStyleTypeKeywords = uniteSets(basicKeywords, [
- 'none',
- 'disc',
- 'circle',
- 'square',
- 'decimal',
- 'decimal-leading-zero',
- 'cjk-decimal',
- 'cjk-earthly-branch',
- 'cjk-heavenly-stem',
- 'cjk-ideographic',
- 'lower-alpha',
- 'upper-alpha',
- 'lower-armenian',
- 'upper-armenian',
- 'lower-greek',
- 'upper-greek',
- 'lower-hexadecimal',
- 'upper-hexadecimal',
- 'lower-latin',
- 'upper-latin',
- 'lower-norwegian',
- 'upper-norwegian',
- 'lower-roman',
- 'upper-roman',
- 'afar',
- 'amharic',
- 'amharic-abegede',
- 'arabic-indic',
- 'armenian',
- 'bengali',
- 'cambodian',
- 'devanagari',
- 'ethiopic-abegede',
- 'ethiopic-abegede-am-et',
- 'ethiopic-abegede-gez',
- 'ethiopic-abegede-ti-er',
- 'ethiopic-abegede-ti-et',
- 'ethiopic-halehame',
- 'ethiopic-halehame-aa-er',
- 'ethiopic-halehame-aa-et',
- 'ethiopic-halehame-am',
- 'ethiopic-halehame-am-et',
- 'ethiopic-halehame-gez',
- 'ethiopic-halehame-om-et',
- 'ethiopic-halehame-sid-et',
- 'ethiopic-halehame-so-et',
- 'ethiopic-halehame-ti-er',
- 'ethiopic-halehame-ti-et',
- 'ethiopic-halehame-tig',
- 'ethiopic-numeric',
- 'georgian',
- 'gujarati',
- 'gurmukhi',
- 'hangul',
- 'hangul-consonant',
- 'hebrew',
- 'hiragana',
- 'hiragana-iroha',
- 'japanese-formal',
- 'japanese-informal',
- 'kannada',
- 'katakana',
- 'katakana-iroha',
- 'khmer',
- 'korean-hangul-formal',
- 'korean-hanja-formal',
- 'korean-hanja-informal',
- 'lao',
- 'malayalam',
- 'mongolian',
- 'myanmar',
- 'oriya',
- 'oromo',
- 'persian',
- 'sidama',
- 'somali',
- 'simp-chinese-formal',
- 'simp-chinese-informal',
- 'tamil',
- 'telugu',
- 'thai',
- 'tibetan',
- 'tigre',
- 'tigrinya-er',
- 'tigrinya-er-abegede',
- 'tigrinya-et',
- 'tigrinya-et-abegede',
- 'trad-chinese-formal',
- 'trad-chinese-informal',
- 'urdu',
- 'disclosure-open',
- 'disclosure-closed',
- 'asterisks',
- 'binary',
- 'footnotes',
- 'octal',
- ]);
- /** @type {ReadonlySet<string>} */
- const listStylePositionKeywords = uniteSets(basicKeywords, ['inside', 'outside']);
- /** @type {ReadonlySet<string>} */
- const listStyleImageKeywords = uniteSets(basicKeywords, ['none']);
- /** @type {ReadonlySet<string>} */
- const listStyleShorthandKeywords = uniteSets(
- basicKeywords,
- listStyleTypeKeywords,
- listStylePositionKeywords,
- listStyleImageKeywords,
- );
- /** @type {ReadonlySet<string>} */
- const camelCaseKeywords = new Set([
- 'optimizeSpeed',
- 'optimizeQuality',
- 'optimizeLegibility',
- 'geometricPrecision',
- 'currentColor',
- 'crispEdges',
- 'visiblePainted',
- 'visibleFill',
- 'visibleStroke',
- 'sRGB',
- 'linearRGB',
- ]);
- /** @type {ReadonlySet<string>} */
- const keyframeSelectorKeywords = new Set(['from', 'to']);
- /**
- * @see https://drafts.csswg.org/scroll-animations-1/#view-progress-timelines
- * @type {ReadonlySet<string>}
- */
- const namedTimelineRangeKeywords = new Set([
- 'contain',
- 'cover',
- 'entry',
- 'entry-crossing',
- 'exit',
- 'exit-crossing',
- ]);
- /**
- * @see https://developer.mozilla.org/en-US/docs/Web/CSS/Mozilla_Extensions#color_keywords
- * @type {ReadonlySet<string>}
- */
- const prefixedSystemColorKeywords = new Set([
- '-moz-buttondefault',
- '-moz-buttonhoverface',
- '-moz-buttonhovertext',
- '-moz-cellhighlight',
- '-moz-cellhighlighttext',
- '-moz-combobox',
- '-moz-comboboxtext',
- '-moz-dialog',
- '-moz-dialogtext',
- '-moz-dragtargetzone',
- '-moz-eventreerow',
- '-moz-field',
- '-moz-fieldtext',
- '-moz-html-cellhighlight',
- '-moz-html-cellhighlighttext',
- '-moz-mac-accentdarkestshadow',
- '-moz-mac-accentdarkshadow',
- '-moz-mac-accentface',
- '-moz-mac-accentlightesthighlight',
- '-moz-mac-accentlightshadow',
- '-moz-mac-accentregularhighlight',
- '-moz-mac-accentregularshadow',
- '-moz-mac-chrome-active',
- '-moz-mac-chrome-inactive',
- '-moz-mac-focusring',
- '-moz-mac-menuselect',
- '-moz-mac-menushadow',
- '-moz-mac-menutextselect',
- '-moz-menubarhovertext',
- '-moz-menubartext',
- '-moz-menuhover',
- '-moz-menuhovertext',
- '-moz-nativehyperlinktext',
- '-moz-oddtreerow',
- '-moz-win-accentcolor',
- '-moz-win-accentcolortext',
- '-moz-win-communicationstext',
- '-moz-win-mediatext',
- '-ms-hotlight',
- ]);
- /** @type {ReadonlySet<string>} */
- const deprecatedSystemColorKeywords = new Set([
- 'activeborder',
- 'activecaption',
- 'appworkspace',
- 'background',
- 'buttonhighlight',
- 'buttonshadow',
- 'captiontext',
- 'inactiveborder',
- 'inactivecaption',
- 'inactivecaptiontext',
- 'infobackground',
- 'infotext',
- 'menu',
- 'menutext',
- 'scrollbar',
- 'threeddarkshadow',
- 'threedface',
- 'threedhighlight',
- 'threedlightshadow',
- 'threedshadow',
- 'window',
- 'windowframe',
- 'windowtext',
- ]);
- /** @type {ReadonlySet<string>} */
- const systemColorsKeywords = uniteSets(
- prefixedSystemColorKeywords,
- deprecatedSystemColorKeywords,
- [
- // https://www.w3.org/TR/css-color-4/#css-system-colors
- 'accentcolor',
- 'accentcolortext',
- 'activetext',
- 'buttonborder',
- 'buttonface',
- 'buttontext',
- 'canvas',
- 'canvastext',
- 'field',
- 'fieldtext',
- 'graytext',
- 'highlight',
- 'highlighttext',
- 'linktext',
- 'mark',
- 'marktext',
- 'selecteditem',
- 'selecteditemtext',
- 'visitedtext',
- ],
- );
- /**
- * @see https://www.w3.org/TR/css-color-4/#named-colors
- * @type {ReadonlySet<string>}
- */
- const namedColorsKeywords = new Set([
- 'aliceblue',
- 'antiquewhite',
- 'aqua',
- 'aquamarine',
- 'azure',
- 'beige',
- 'bisque',
- 'black',
- 'blanchedalmond',
- 'blue',
- 'blueviolet',
- 'brown',
- 'burlywood',
- 'cadetblue',
- 'chartreuse',
- 'chocolate',
- 'coral',
- 'cornflowerblue',
- 'cornsilk',
- 'crimson',
- 'cyan',
- 'darkblue',
- 'darkcyan',
- 'darkgoldenrod',
- 'darkgray',
- 'darkgreen',
- 'darkgrey',
- 'darkkhaki',
- 'darkmagenta',
- 'darkolivegreen',
- 'darkorange',
- 'darkorchid',
- 'darkred',
- 'darksalmon',
- 'darkseagreen',
- 'darkslateblue',
- 'darkslategray',
- 'darkslategrey',
- 'darkturquoise',
- 'darkviolet',
- 'deeppink',
- 'deepskyblue',
- 'dimgray',
- 'dimgrey',
- 'dodgerblue',
- 'firebrick',
- 'floralwhite',
- 'forestgreen',
- 'fuchsia',
- 'gainsboro',
- 'ghostwhite',
- 'gold',
- 'goldenrod',
- 'gray',
- 'green',
- 'greenyellow',
- 'grey',
- 'honeydew',
- 'hotpink',
- 'indianred',
- 'indigo',
- 'ivory',
- 'khaki',
- 'lavender',
- 'lavenderblush',
- 'lawngreen',
- 'lemonchiffon',
- 'lightblue',
- 'lightcoral',
- 'lightcyan',
- 'lightgoldenrodyellow',
- 'lightgray',
- 'lightgreen',
- 'lightgrey',
- 'lightpink',
- 'lightsalmon',
- 'lightseagreen',
- 'lightskyblue',
- 'lightslategray',
- 'lightslategrey',
- 'lightsteelblue',
- 'lightyellow',
- 'lime',
- 'limegreen',
- 'linen',
- 'magenta',
- 'maroon',
- 'mediumaquamarine',
- 'mediumblue',
- 'mediumorchid',
- 'mediumpurple',
- 'mediumseagreen',
- 'mediumslateblue',
- 'mediumspringgreen',
- 'mediumturquoise',
- 'mediumvioletred',
- 'midnightblue',
- 'mintcream',
- 'mistyrose',
- 'moccasin',
- 'navajowhite',
- 'navy',
- 'oldlace',
- 'olive',
- 'olivedrab',
- 'orange',
- 'orangered',
- 'orchid',
- 'palegoldenrod',
- 'palegreen',
- 'paleturquoise',
- 'palevioletred',
- 'papayawhip',
- 'peachpuff',
- 'peru',
- 'pink',
- 'plum',
- 'powderblue',
- 'purple',
- 'rebeccapurple',
- 'red',
- 'rosybrown',
- 'royalblue',
- 'saddlebrown',
- 'salmon',
- 'sandybrown',
- 'seagreen',
- 'seashell',
- 'sienna',
- 'silver',
- 'skyblue',
- 'slateblue',
- 'slategray',
- 'slategrey',
- 'snow',
- 'springgreen',
- 'steelblue',
- 'tan',
- 'teal',
- 'thistle',
- 'tomato',
- 'turquoise',
- 'violet',
- 'wheat',
- 'white',
- 'whitesmoke',
- 'yellow',
- 'yellowgreen',
- ]);
- exports.animationNameKeywords = animationNameKeywords;
- exports.animationShorthandKeywords = animationShorthandKeywords;
- exports.basicKeywords = basicKeywords;
- exports.camelCaseKeywords = camelCaseKeywords;
- exports.counterIncrementKeywords = counterIncrementKeywords;
- exports.counterResetKeywords = counterResetKeywords;
- exports.deprecatedSystemColorKeywords = deprecatedSystemColorKeywords;
- exports.fontFamilyKeywords = fontFamilyKeywords;
- exports.fontShorthandKeywords = fontShorthandKeywords;
- exports.fontSizeKeywords = fontSizeKeywords;
- exports.fontWeightAbsoluteKeywords = fontWeightAbsoluteKeywords;
- exports.fontWeightKeywords = fontWeightKeywords;
- exports.fontWeightNonNumericKeywords = fontWeightNonNumericKeywords;
- exports.fontWeightRelativeKeywords = fontWeightRelativeKeywords;
- exports.gridAreaKeywords = gridAreaKeywords;
- exports.gridColumnKeywords = gridColumnKeywords;
- exports.gridRowKeywords = gridRowKeywords;
- exports.keyframeSelectorKeywords = keyframeSelectorKeywords;
- exports.listStyleImageKeywords = listStyleImageKeywords;
- exports.listStylePositionKeywords = listStylePositionKeywords;
- exports.listStyleShorthandKeywords = listStyleShorthandKeywords;
- exports.listStyleTypeKeywords = listStyleTypeKeywords;
- exports.namedColorsKeywords = namedColorsKeywords;
- exports.namedTimelineRangeKeywords = namedTimelineRangeKeywords;
- exports.prefixedSystemFonts = prefixedSystemFonts;
- exports.systemColorsKeywords = systemColorsKeywords;
- exports.systemFontKeywords = systemFontKeywords;
|