first commit
This commit is contained in:
77
node_modules/stylelint/lib/reference/atKeywords.cjs
generated
vendored
Normal file
77
node_modules/stylelint/lib/reference/atKeywords.cjs
generated
vendored
Normal file
@@ -0,0 +1,77 @@
|
||||
// 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');
|
||||
|
||||
// https://www.w3.org/TR/css-nesting-1/#conditionals
|
||||
const nestingSupportedAtKeywords = new Set([
|
||||
'container',
|
||||
'layer',
|
||||
'media',
|
||||
'scope',
|
||||
'starting-style',
|
||||
'supports',
|
||||
]);
|
||||
|
||||
// https://www.w3.org/TR/css-page-3/#syntax-page-selector
|
||||
const pageMarginAtKeywords = new Set([
|
||||
'top-left-corner',
|
||||
'top-left',
|
||||
'top-center',
|
||||
'top-right',
|
||||
'top-right-corner',
|
||||
'bottom-left-corner',
|
||||
'bottom-left',
|
||||
'bottom-center',
|
||||
'bottom-right',
|
||||
'bottom-right-corner',
|
||||
'left-top',
|
||||
'left-middle',
|
||||
'left-bottom',
|
||||
'right-top',
|
||||
'right-middle',
|
||||
'right-bottom',
|
||||
]);
|
||||
|
||||
// https://www.w3.org/TR/css-fonts-4/#font-feature-values-font-feature-value-type
|
||||
const fontFeatureValueTypes = new Set([
|
||||
'annotation',
|
||||
'character-variant',
|
||||
'historical-forms',
|
||||
'ornaments',
|
||||
'styleset',
|
||||
'stylistic',
|
||||
'swash',
|
||||
]);
|
||||
|
||||
// https://developer.mozilla.org/en/docs/Web/CSS/At-rule
|
||||
const atKeywords = uniteSets(
|
||||
nestingSupportedAtKeywords,
|
||||
pageMarginAtKeywords,
|
||||
fontFeatureValueTypes,
|
||||
[
|
||||
'apply',
|
||||
'charset',
|
||||
'counter-style',
|
||||
'custom-media',
|
||||
'custom-selector',
|
||||
'document',
|
||||
'font-face',
|
||||
'font-feature-values',
|
||||
'font-palette-values',
|
||||
'import',
|
||||
'keyframes',
|
||||
'namespace',
|
||||
'nest',
|
||||
'page',
|
||||
'position-try',
|
||||
'property',
|
||||
'scroll-timeline',
|
||||
'view-transition',
|
||||
'viewport',
|
||||
],
|
||||
);
|
||||
|
||||
exports.atKeywords = atKeywords;
|
||||
exports.nestingSupportedAtKeywords = nestingSupportedAtKeywords;
|
||||
70
node_modules/stylelint/lib/reference/atKeywords.mjs
generated
vendored
Normal file
70
node_modules/stylelint/lib/reference/atKeywords.mjs
generated
vendored
Normal file
@@ -0,0 +1,70 @@
|
||||
import uniteSets from '../utils/uniteSets.mjs';
|
||||
|
||||
// https://www.w3.org/TR/css-nesting-1/#conditionals
|
||||
export const nestingSupportedAtKeywords = new Set([
|
||||
'container',
|
||||
'layer',
|
||||
'media',
|
||||
'scope',
|
||||
'starting-style',
|
||||
'supports',
|
||||
]);
|
||||
|
||||
// https://www.w3.org/TR/css-page-3/#syntax-page-selector
|
||||
const pageMarginAtKeywords = new Set([
|
||||
'top-left-corner',
|
||||
'top-left',
|
||||
'top-center',
|
||||
'top-right',
|
||||
'top-right-corner',
|
||||
'bottom-left-corner',
|
||||
'bottom-left',
|
||||
'bottom-center',
|
||||
'bottom-right',
|
||||
'bottom-right-corner',
|
||||
'left-top',
|
||||
'left-middle',
|
||||
'left-bottom',
|
||||
'right-top',
|
||||
'right-middle',
|
||||
'right-bottom',
|
||||
]);
|
||||
|
||||
// https://www.w3.org/TR/css-fonts-4/#font-feature-values-font-feature-value-type
|
||||
const fontFeatureValueTypes = new Set([
|
||||
'annotation',
|
||||
'character-variant',
|
||||
'historical-forms',
|
||||
'ornaments',
|
||||
'styleset',
|
||||
'stylistic',
|
||||
'swash',
|
||||
]);
|
||||
|
||||
// https://developer.mozilla.org/en/docs/Web/CSS/At-rule
|
||||
export const atKeywords = uniteSets(
|
||||
nestingSupportedAtKeywords,
|
||||
pageMarginAtKeywords,
|
||||
fontFeatureValueTypes,
|
||||
[
|
||||
'apply',
|
||||
'charset',
|
||||
'counter-style',
|
||||
'custom-media',
|
||||
'custom-selector',
|
||||
'document',
|
||||
'font-face',
|
||||
'font-feature-values',
|
||||
'font-palette-values',
|
||||
'import',
|
||||
'keyframes',
|
||||
'namespace',
|
||||
'nest',
|
||||
'page',
|
||||
'position-try',
|
||||
'property',
|
||||
'scroll-timeline',
|
||||
'view-transition',
|
||||
'viewport',
|
||||
],
|
||||
);
|
||||
64
node_modules/stylelint/lib/reference/functions.cjs
generated
vendored
Normal file
64
node_modules/stylelint/lib/reference/functions.cjs
generated
vendored
Normal file
@@ -0,0 +1,64 @@
|
||||
// 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 camelCaseFunctions = new Set([
|
||||
'translateX',
|
||||
'translateY',
|
||||
'translateZ',
|
||||
'scaleX',
|
||||
'scaleY',
|
||||
'scaleZ',
|
||||
'rotateX',
|
||||
'rotateY',
|
||||
'rotateZ',
|
||||
'skewX',
|
||||
'skewY',
|
||||
]);
|
||||
|
||||
const colorFunctions = new Set([
|
||||
'color',
|
||||
'color-mix',
|
||||
'hsl',
|
||||
'hsla',
|
||||
'hwb',
|
||||
'lab',
|
||||
'lch',
|
||||
'oklab',
|
||||
'oklch',
|
||||
'rgb',
|
||||
'rgba',
|
||||
]);
|
||||
|
||||
const singleArgumentMathFunctions = new Set([
|
||||
'abs',
|
||||
'acos',
|
||||
'asin',
|
||||
'atan',
|
||||
'calc',
|
||||
'cos',
|
||||
'exp',
|
||||
'sign',
|
||||
'sin',
|
||||
'sqrt',
|
||||
'tan',
|
||||
]);
|
||||
|
||||
const mathFunctions = new Set([
|
||||
...singleArgumentMathFunctions,
|
||||
'atan2',
|
||||
'calc-size',
|
||||
'clamp',
|
||||
'hypot',
|
||||
'log',
|
||||
'max',
|
||||
'min',
|
||||
'mod',
|
||||
'pow',
|
||||
'rem',
|
||||
'round',
|
||||
]);
|
||||
|
||||
exports.camelCaseFunctions = camelCaseFunctions;
|
||||
exports.colorFunctions = colorFunctions;
|
||||
exports.mathFunctions = mathFunctions;
|
||||
56
node_modules/stylelint/lib/reference/functions.mjs
generated
vendored
Normal file
56
node_modules/stylelint/lib/reference/functions.mjs
generated
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
export const camelCaseFunctions = new Set([
|
||||
'translateX',
|
||||
'translateY',
|
||||
'translateZ',
|
||||
'scaleX',
|
||||
'scaleY',
|
||||
'scaleZ',
|
||||
'rotateX',
|
||||
'rotateY',
|
||||
'rotateZ',
|
||||
'skewX',
|
||||
'skewY',
|
||||
]);
|
||||
|
||||
export const colorFunctions = new Set([
|
||||
'color',
|
||||
'color-mix',
|
||||
'hsl',
|
||||
'hsla',
|
||||
'hwb',
|
||||
'lab',
|
||||
'lch',
|
||||
'oklab',
|
||||
'oklch',
|
||||
'rgb',
|
||||
'rgba',
|
||||
]);
|
||||
|
||||
const singleArgumentMathFunctions = new Set([
|
||||
'abs',
|
||||
'acos',
|
||||
'asin',
|
||||
'atan',
|
||||
'calc',
|
||||
'cos',
|
||||
'exp',
|
||||
'sign',
|
||||
'sin',
|
||||
'sqrt',
|
||||
'tan',
|
||||
]);
|
||||
|
||||
export const mathFunctions = new Set([
|
||||
...singleArgumentMathFunctions,
|
||||
'atan2',
|
||||
'calc-size',
|
||||
'clamp',
|
||||
'hypot',
|
||||
'log',
|
||||
'max',
|
||||
'min',
|
||||
'mod',
|
||||
'pow',
|
||||
'rem',
|
||||
'round',
|
||||
]);
|
||||
608
node_modules/stylelint/lib/reference/keywords.cjs
generated
vendored
Normal file
608
node_modules/stylelint/lib/reference/keywords.cjs
generated
vendored
Normal file
@@ -0,0 +1,608 @@
|
||||
// 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');
|
||||
|
||||
const basicKeywords = new Set(['initial', 'inherit', 'revert', 'revert-layer', 'unset']);
|
||||
|
||||
const systemFontKeywords = uniteSets(basicKeywords, [
|
||||
'caption',
|
||||
'icon',
|
||||
'menu',
|
||||
'message-box',
|
||||
'small-caption',
|
||||
'status-bar',
|
||||
]);
|
||||
|
||||
const fontFamilyKeywords = uniteSets(basicKeywords, [
|
||||
'serif',
|
||||
'sans-serif',
|
||||
'cursive',
|
||||
'fantasy',
|
||||
'monospace',
|
||||
'system-ui',
|
||||
'ui-serif',
|
||||
'ui-sans-serif',
|
||||
'ui-monospace',
|
||||
'ui-rounded',
|
||||
]);
|
||||
|
||||
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',
|
||||
]);
|
||||
|
||||
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',
|
||||
]);
|
||||
|
||||
const webkitSystemFonts = new Set([
|
||||
'-webkit-body',
|
||||
'-webkit-control',
|
||||
'-webkit-mini-control',
|
||||
'-webkit-pictograph',
|
||||
'-webkit-small-control',
|
||||
'-webkit-standard',
|
||||
]);
|
||||
|
||||
const prefixedSystemFonts = uniteSets(
|
||||
appleSystemFonts,
|
||||
mozillaSystemFonts,
|
||||
webkitSystemFonts,
|
||||
);
|
||||
|
||||
const fontWeightRelativeKeywords = new Set(['bolder', 'lighter']);
|
||||
|
||||
const fontWeightAbsoluteKeywords = new Set(['normal', 'bold']);
|
||||
|
||||
const fontWeightNonNumericKeywords = uniteSets(
|
||||
fontWeightRelativeKeywords,
|
||||
fontWeightAbsoluteKeywords,
|
||||
);
|
||||
|
||||
const fontWeightNumericKeywords = new Set([
|
||||
'100',
|
||||
'200',
|
||||
'300',
|
||||
'400',
|
||||
'500',
|
||||
'600',
|
||||
'700',
|
||||
'800',
|
||||
'900',
|
||||
]);
|
||||
|
||||
const fontWeightKeywords = uniteSets(
|
||||
basicKeywords,
|
||||
fontWeightNonNumericKeywords,
|
||||
fontWeightNumericKeywords,
|
||||
);
|
||||
|
||||
const fontStyleKeywords = uniteSets(basicKeywords, ['normal', 'italic', 'oblique']);
|
||||
|
||||
const fontVariantCSS2Keywords = uniteSets(basicKeywords, ['normal', 'none', 'small-caps']);
|
||||
|
||||
const fontStretchKeywords = uniteSets(basicKeywords, [
|
||||
'semi-condensed',
|
||||
'condensed',
|
||||
'extra-condensed',
|
||||
'ultra-condensed',
|
||||
'semi-expanded',
|
||||
'expanded',
|
||||
'extra-expanded',
|
||||
'ultra-expanded',
|
||||
]);
|
||||
|
||||
const fontSizeKeywords = uniteSets(basicKeywords, [
|
||||
'xx-small',
|
||||
'x-small',
|
||||
'small',
|
||||
'medium',
|
||||
'large',
|
||||
'x-large',
|
||||
'xx-large',
|
||||
'xxx-large',
|
||||
'larger',
|
||||
'smaller',
|
||||
'math',
|
||||
]);
|
||||
|
||||
const lineHeightKeywords = uniteSets(basicKeywords, ['normal']);
|
||||
|
||||
const fontShorthandKeywords = uniteSets(
|
||||
basicKeywords,
|
||||
fontStyleKeywords,
|
||||
fontVariantCSS2Keywords,
|
||||
fontWeightKeywords,
|
||||
fontStretchKeywords,
|
||||
fontSizeKeywords,
|
||||
lineHeightKeywords,
|
||||
fontFamilyKeywords,
|
||||
);
|
||||
|
||||
const animationNameKeywords = uniteSets(basicKeywords, ['none']);
|
||||
|
||||
const animationTimingFunctionKeywords = uniteSets(basicKeywords, [
|
||||
'linear',
|
||||
'ease',
|
||||
'ease-in',
|
||||
'ease-in-out',
|
||||
'ease-out',
|
||||
'step-start',
|
||||
'step-end',
|
||||
'steps',
|
||||
'cubic-bezier',
|
||||
]);
|
||||
|
||||
const animationIterationCountKeywords = new Set(['infinite']);
|
||||
|
||||
const animationDirectionKeywords = uniteSets(basicKeywords, [
|
||||
'normal',
|
||||
'reverse',
|
||||
'alternate',
|
||||
'alternate-reverse',
|
||||
]);
|
||||
|
||||
const animationFillModeKeywords = new Set(['none', 'forwards', 'backwards', 'both']);
|
||||
|
||||
const animationPlayStateKeywords = uniteSets(basicKeywords, ['running', 'paused']);
|
||||
|
||||
// cf. https://developer.mozilla.org/en-US/docs/Web/CSS/animation
|
||||
const animationShorthandKeywords = uniteSets(
|
||||
basicKeywords,
|
||||
animationNameKeywords,
|
||||
animationTimingFunctionKeywords,
|
||||
animationIterationCountKeywords,
|
||||
animationDirectionKeywords,
|
||||
animationFillModeKeywords,
|
||||
animationPlayStateKeywords,
|
||||
);
|
||||
|
||||
const gridRowKeywords = uniteSets(basicKeywords, ['auto', 'span']);
|
||||
|
||||
const gridColumnKeywords = uniteSets(basicKeywords, ['auto', 'span']);
|
||||
|
||||
const gridAreaKeywords = uniteSets(basicKeywords, ['auto', 'span']);
|
||||
|
||||
// https://developer.mozilla.org/docs/Web/CSS/counter-increment
|
||||
const counterIncrementKeywords = uniteSets(basicKeywords, ['none']);
|
||||
|
||||
const counterResetKeywords = uniteSets(basicKeywords, ['none']);
|
||||
|
||||
// https://developer.mozilla.org/ru/docs/Web/CSS/list-style-type
|
||||
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',
|
||||
]);
|
||||
|
||||
const listStylePositionKeywords = uniteSets(basicKeywords, ['inside', 'outside']);
|
||||
|
||||
const listStyleImageKeywords = uniteSets(basicKeywords, ['none']);
|
||||
|
||||
const listStyleShorthandKeywords = uniteSets(
|
||||
basicKeywords,
|
||||
listStyleTypeKeywords,
|
||||
listStylePositionKeywords,
|
||||
listStyleImageKeywords,
|
||||
);
|
||||
|
||||
const camelCaseKeywords = new Set([
|
||||
'optimizeSpeed',
|
||||
'optimizeQuality',
|
||||
'optimizeLegibility',
|
||||
'geometricPrecision',
|
||||
'currentColor',
|
||||
'crispEdges',
|
||||
'visiblePainted',
|
||||
'visibleFill',
|
||||
'visibleStroke',
|
||||
'sRGB',
|
||||
'linearRGB',
|
||||
]);
|
||||
|
||||
const keyframeSelectorKeywords = new Set(['from', 'to']);
|
||||
|
||||
// https://drafts.csswg.org/scroll-animations-1/#view-progress-timelines
|
||||
const namedTimelineRangeKeywords = new Set([
|
||||
'contain',
|
||||
'cover',
|
||||
'entry',
|
||||
'entry-crossing',
|
||||
'exit',
|
||||
'exit-crossing',
|
||||
]);
|
||||
|
||||
// https://developer.mozilla.org/en-US/docs/Web/CSS/Mozilla_Extensions#color_keywords
|
||||
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',
|
||||
]);
|
||||
|
||||
const systemColorsKeywords = uniteSets(prefixedSystemColorKeywords, [
|
||||
// https://www.w3.org/TR/CSS22/ui.html#system-colors
|
||||
'activeborder',
|
||||
'activecaption',
|
||||
'appworkspace',
|
||||
'background',
|
||||
'buttonface',
|
||||
'buttonhighlight',
|
||||
'buttonshadow',
|
||||
'buttontext',
|
||||
'captiontext',
|
||||
'graytext',
|
||||
'highlight',
|
||||
'highlighttext',
|
||||
'inactiveborder',
|
||||
'inactivecaption',
|
||||
'inactivecaptiontext',
|
||||
'infobackground',
|
||||
'infotext',
|
||||
'menu',
|
||||
'menutext',
|
||||
'scrollbar',
|
||||
'threeddarkshadow',
|
||||
'threedface',
|
||||
'threedhighlight',
|
||||
'threedlightshadow',
|
||||
'threedshadow',
|
||||
'window',
|
||||
'windowframe',
|
||||
'windowtext',
|
||||
// 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',
|
||||
]);
|
||||
|
||||
const namedColorsKeywords = new Set([
|
||||
// https://www.w3.org/TR/css-color-4/#named-colors
|
||||
'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.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;
|
||||
577
node_modules/stylelint/lib/reference/keywords.mjs
generated
vendored
Normal file
577
node_modules/stylelint/lib/reference/keywords.mjs
generated
vendored
Normal file
@@ -0,0 +1,577 @@
|
||||
import uniteSets from '../utils/uniteSets.mjs';
|
||||
|
||||
export const basicKeywords = new Set(['initial', 'inherit', 'revert', 'revert-layer', 'unset']);
|
||||
|
||||
export const systemFontKeywords = uniteSets(basicKeywords, [
|
||||
'caption',
|
||||
'icon',
|
||||
'menu',
|
||||
'message-box',
|
||||
'small-caption',
|
||||
'status-bar',
|
||||
]);
|
||||
|
||||
export const fontFamilyKeywords = uniteSets(basicKeywords, [
|
||||
'serif',
|
||||
'sans-serif',
|
||||
'cursive',
|
||||
'fantasy',
|
||||
'monospace',
|
||||
'system-ui',
|
||||
'ui-serif',
|
||||
'ui-sans-serif',
|
||||
'ui-monospace',
|
||||
'ui-rounded',
|
||||
]);
|
||||
|
||||
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',
|
||||
]);
|
||||
|
||||
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',
|
||||
]);
|
||||
|
||||
const webkitSystemFonts = new Set([
|
||||
'-webkit-body',
|
||||
'-webkit-control',
|
||||
'-webkit-mini-control',
|
||||
'-webkit-pictograph',
|
||||
'-webkit-small-control',
|
||||
'-webkit-standard',
|
||||
]);
|
||||
|
||||
export const prefixedSystemFonts = uniteSets(
|
||||
appleSystemFonts,
|
||||
mozillaSystemFonts,
|
||||
webkitSystemFonts,
|
||||
);
|
||||
|
||||
export const fontWeightRelativeKeywords = new Set(['bolder', 'lighter']);
|
||||
|
||||
export const fontWeightAbsoluteKeywords = new Set(['normal', 'bold']);
|
||||
|
||||
export const fontWeightNonNumericKeywords = uniteSets(
|
||||
fontWeightRelativeKeywords,
|
||||
fontWeightAbsoluteKeywords,
|
||||
);
|
||||
|
||||
const fontWeightNumericKeywords = new Set([
|
||||
'100',
|
||||
'200',
|
||||
'300',
|
||||
'400',
|
||||
'500',
|
||||
'600',
|
||||
'700',
|
||||
'800',
|
||||
'900',
|
||||
]);
|
||||
|
||||
export const fontWeightKeywords = uniteSets(
|
||||
basicKeywords,
|
||||
fontWeightNonNumericKeywords,
|
||||
fontWeightNumericKeywords,
|
||||
);
|
||||
|
||||
const fontStyleKeywords = uniteSets(basicKeywords, ['normal', 'italic', 'oblique']);
|
||||
|
||||
const fontVariantCSS2Keywords = uniteSets(basicKeywords, ['normal', 'none', 'small-caps']);
|
||||
|
||||
const fontStretchKeywords = uniteSets(basicKeywords, [
|
||||
'semi-condensed',
|
||||
'condensed',
|
||||
'extra-condensed',
|
||||
'ultra-condensed',
|
||||
'semi-expanded',
|
||||
'expanded',
|
||||
'extra-expanded',
|
||||
'ultra-expanded',
|
||||
]);
|
||||
|
||||
export const fontSizeKeywords = uniteSets(basicKeywords, [
|
||||
'xx-small',
|
||||
'x-small',
|
||||
'small',
|
||||
'medium',
|
||||
'large',
|
||||
'x-large',
|
||||
'xx-large',
|
||||
'xxx-large',
|
||||
'larger',
|
||||
'smaller',
|
||||
'math',
|
||||
]);
|
||||
|
||||
const lineHeightKeywords = uniteSets(basicKeywords, ['normal']);
|
||||
|
||||
export const fontShorthandKeywords = uniteSets(
|
||||
basicKeywords,
|
||||
fontStyleKeywords,
|
||||
fontVariantCSS2Keywords,
|
||||
fontWeightKeywords,
|
||||
fontStretchKeywords,
|
||||
fontSizeKeywords,
|
||||
lineHeightKeywords,
|
||||
fontFamilyKeywords,
|
||||
);
|
||||
|
||||
export const animationNameKeywords = uniteSets(basicKeywords, ['none']);
|
||||
|
||||
const animationTimingFunctionKeywords = uniteSets(basicKeywords, [
|
||||
'linear',
|
||||
'ease',
|
||||
'ease-in',
|
||||
'ease-in-out',
|
||||
'ease-out',
|
||||
'step-start',
|
||||
'step-end',
|
||||
'steps',
|
||||
'cubic-bezier',
|
||||
]);
|
||||
|
||||
const animationIterationCountKeywords = new Set(['infinite']);
|
||||
|
||||
const animationDirectionKeywords = uniteSets(basicKeywords, [
|
||||
'normal',
|
||||
'reverse',
|
||||
'alternate',
|
||||
'alternate-reverse',
|
||||
]);
|
||||
|
||||
const animationFillModeKeywords = new Set(['none', 'forwards', 'backwards', 'both']);
|
||||
|
||||
const animationPlayStateKeywords = uniteSets(basicKeywords, ['running', 'paused']);
|
||||
|
||||
// cf. https://developer.mozilla.org/en-US/docs/Web/CSS/animation
|
||||
export const animationShorthandKeywords = uniteSets(
|
||||
basicKeywords,
|
||||
animationNameKeywords,
|
||||
animationTimingFunctionKeywords,
|
||||
animationIterationCountKeywords,
|
||||
animationDirectionKeywords,
|
||||
animationFillModeKeywords,
|
||||
animationPlayStateKeywords,
|
||||
);
|
||||
|
||||
export const gridRowKeywords = uniteSets(basicKeywords, ['auto', 'span']);
|
||||
|
||||
export const gridColumnKeywords = uniteSets(basicKeywords, ['auto', 'span']);
|
||||
|
||||
export const gridAreaKeywords = uniteSets(basicKeywords, ['auto', 'span']);
|
||||
|
||||
// https://developer.mozilla.org/docs/Web/CSS/counter-increment
|
||||
export const counterIncrementKeywords = uniteSets(basicKeywords, ['none']);
|
||||
|
||||
export const counterResetKeywords = uniteSets(basicKeywords, ['none']);
|
||||
|
||||
// https://developer.mozilla.org/ru/docs/Web/CSS/list-style-type
|
||||
export 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',
|
||||
]);
|
||||
|
||||
export const listStylePositionKeywords = uniteSets(basicKeywords, ['inside', 'outside']);
|
||||
|
||||
export const listStyleImageKeywords = uniteSets(basicKeywords, ['none']);
|
||||
|
||||
export const listStyleShorthandKeywords = uniteSets(
|
||||
basicKeywords,
|
||||
listStyleTypeKeywords,
|
||||
listStylePositionKeywords,
|
||||
listStyleImageKeywords,
|
||||
);
|
||||
|
||||
export const camelCaseKeywords = new Set([
|
||||
'optimizeSpeed',
|
||||
'optimizeQuality',
|
||||
'optimizeLegibility',
|
||||
'geometricPrecision',
|
||||
'currentColor',
|
||||
'crispEdges',
|
||||
'visiblePainted',
|
||||
'visibleFill',
|
||||
'visibleStroke',
|
||||
'sRGB',
|
||||
'linearRGB',
|
||||
]);
|
||||
|
||||
export const keyframeSelectorKeywords = new Set(['from', 'to']);
|
||||
|
||||
// https://drafts.csswg.org/scroll-animations-1/#view-progress-timelines
|
||||
export const namedTimelineRangeKeywords = new Set([
|
||||
'contain',
|
||||
'cover',
|
||||
'entry',
|
||||
'entry-crossing',
|
||||
'exit',
|
||||
'exit-crossing',
|
||||
]);
|
||||
|
||||
// https://developer.mozilla.org/en-US/docs/Web/CSS/Mozilla_Extensions#color_keywords
|
||||
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',
|
||||
]);
|
||||
|
||||
export const systemColorsKeywords = uniteSets(prefixedSystemColorKeywords, [
|
||||
// https://www.w3.org/TR/CSS22/ui.html#system-colors
|
||||
'activeborder',
|
||||
'activecaption',
|
||||
'appworkspace',
|
||||
'background',
|
||||
'buttonface',
|
||||
'buttonhighlight',
|
||||
'buttonshadow',
|
||||
'buttontext',
|
||||
'captiontext',
|
||||
'graytext',
|
||||
'highlight',
|
||||
'highlighttext',
|
||||
'inactiveborder',
|
||||
'inactivecaption',
|
||||
'inactivecaptiontext',
|
||||
'infobackground',
|
||||
'infotext',
|
||||
'menu',
|
||||
'menutext',
|
||||
'scrollbar',
|
||||
'threeddarkshadow',
|
||||
'threedface',
|
||||
'threedhighlight',
|
||||
'threedlightshadow',
|
||||
'threedshadow',
|
||||
'window',
|
||||
'windowframe',
|
||||
'windowtext',
|
||||
// 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',
|
||||
]);
|
||||
|
||||
export const namedColorsKeywords = new Set([
|
||||
// https://www.w3.org/TR/css-color-4/#named-colors
|
||||
'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',
|
||||
]);
|
||||
118
node_modules/stylelint/lib/reference/mediaFeatures.cjs
generated
vendored
Normal file
118
node_modules/stylelint/lib/reference/mediaFeatures.cjs
generated
vendored
Normal file
@@ -0,0 +1,118 @@
|
||||
// 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');
|
||||
|
||||
const deprecatedMediaFeatureNames = new Set([
|
||||
'device-aspect-ratio',
|
||||
'device-height',
|
||||
'device-width',
|
||||
]);
|
||||
|
||||
const rangeTypeMediaFeatureNames = uniteSets(deprecatedMediaFeatureNames, [
|
||||
'aspect-ratio',
|
||||
'color',
|
||||
'color-index',
|
||||
'height',
|
||||
'horizontal-viewport-segments',
|
||||
'monochrome',
|
||||
'resolution',
|
||||
'vertical-viewport-segments',
|
||||
'width',
|
||||
]);
|
||||
|
||||
const rangeTypeMediaFeatureNamesWithMinMaxPrefix = new Set(
|
||||
[...rangeTypeMediaFeatureNames].flatMap((name) => {
|
||||
return [`min-${name}`, `max-${name}`];
|
||||
}),
|
||||
);
|
||||
|
||||
const discreteTypeMediaFeatureNames = new Set([
|
||||
'any-hover',
|
||||
'any-pointer',
|
||||
'color-gamut',
|
||||
'display-mode',
|
||||
'dynamic-range',
|
||||
'environment-blending',
|
||||
'forced-colors',
|
||||
'grid',
|
||||
'hover',
|
||||
'inverted-colors',
|
||||
'light-level',
|
||||
'nav-controls',
|
||||
'orientation',
|
||||
'overflow-block',
|
||||
'overflow-inline',
|
||||
'pointer',
|
||||
'prefers-color-scheme',
|
||||
'prefers-contrast',
|
||||
'prefers-reduced-data',
|
||||
'prefers-reduced-motion',
|
||||
'prefers-reduced-transparency',
|
||||
'scan',
|
||||
'scripting',
|
||||
'update',
|
||||
'video-color-gamut',
|
||||
'video-dynamic-range',
|
||||
]);
|
||||
|
||||
const mediaFeatureNames = uniteSets(
|
||||
deprecatedMediaFeatureNames,
|
||||
rangeTypeMediaFeatureNames,
|
||||
rangeTypeMediaFeatureNamesWithMinMaxPrefix,
|
||||
discreteTypeMediaFeatureNames,
|
||||
);
|
||||
|
||||
const mediaFeatureNameAllowedValueKeywords = new Map([
|
||||
['any-hover', new Set(['none', 'hover'])],
|
||||
['any-pointer', new Set(['none', 'coarse', 'fine'])],
|
||||
['color-gamut', new Set(['srgb', 'p3', 'rec2020'])],
|
||||
[
|
||||
'display-mode',
|
||||
new Set(['fullscreen', 'standalone', 'minimal-ui', 'browser', 'picture-in-picture']),
|
||||
],
|
||||
['dynamic-range', new Set(['standard', 'high'])],
|
||||
['environment-blending', new Set(['opaque', 'additive', 'subtractive'])],
|
||||
['forced-colors', new Set(['none', 'active'])],
|
||||
['hover', new Set(['none', 'hover'])],
|
||||
['inverted-colors', new Set(['none', 'inverted'])],
|
||||
['nav-controls', new Set(['none', 'back'])],
|
||||
['orientation', new Set(['portrait', 'landscape'])],
|
||||
['overflow-block', new Set(['none', 'scroll', 'paged'])],
|
||||
['overflow-inline', new Set(['none', 'scroll'])],
|
||||
['pointer', new Set(['none', 'coarse', 'fine'])],
|
||||
['prefers-color-scheme', new Set(['light', 'dark'])],
|
||||
['prefers-contrast', new Set(['no-preference', 'less', 'more', 'custom'])],
|
||||
['prefers-reduced-data', new Set(['no-preference', 'reduce'])],
|
||||
['prefers-reduced-motion', new Set(['no-preference', 'reduce'])],
|
||||
['prefers-reduced-transparency', new Set(['no-preference', 'reduce'])],
|
||||
['resolution', new Set(['infinite'])],
|
||||
['scan', new Set(['interlace', 'progressive'])],
|
||||
['scripting', new Set(['none', 'initial-only', 'enabled'])],
|
||||
['update', new Set(['none', 'slow', 'fast'])],
|
||||
['video-color-gamut', new Set(['srgb', 'p3', 'rec2020'])],
|
||||
['video-dynamic-range', new Set(['standard', 'high'])],
|
||||
]);
|
||||
|
||||
const mediaFeatureNameAllowedValueTypes = new Map([
|
||||
['aspect-ratio', new Set(['ratio'])],
|
||||
['color', new Set(['integer'])],
|
||||
['color-index', new Set(['integer'])],
|
||||
['device-aspect-ratio', new Set(['ratio'])],
|
||||
['device-height', new Set(['length'])],
|
||||
['device-width', new Set(['length'])],
|
||||
['grid', new Set(['mq-boolean'])],
|
||||
['height', new Set(['length'])],
|
||||
['horizontal-viewport-segments', new Set(['integer'])],
|
||||
['monochrome', new Set(['integer'])],
|
||||
['resolution', new Set(['resolution'])],
|
||||
['vertical-viewport-segments', new Set(['integer'])],
|
||||
['width', new Set(['length'])],
|
||||
]);
|
||||
|
||||
exports.mediaFeatureNameAllowedValueKeywords = mediaFeatureNameAllowedValueKeywords;
|
||||
exports.mediaFeatureNameAllowedValueTypes = mediaFeatureNameAllowedValueTypes;
|
||||
exports.mediaFeatureNames = mediaFeatureNames;
|
||||
exports.rangeTypeMediaFeatureNames = rangeTypeMediaFeatureNames;
|
||||
exports.rangeTypeMediaFeatureNamesWithMinMaxPrefix = rangeTypeMediaFeatureNamesWithMinMaxPrefix;
|
||||
108
node_modules/stylelint/lib/reference/mediaFeatures.mjs
generated
vendored
Normal file
108
node_modules/stylelint/lib/reference/mediaFeatures.mjs
generated
vendored
Normal file
@@ -0,0 +1,108 @@
|
||||
import uniteSets from '../utils/uniteSets.mjs';
|
||||
|
||||
const deprecatedMediaFeatureNames = new Set([
|
||||
'device-aspect-ratio',
|
||||
'device-height',
|
||||
'device-width',
|
||||
]);
|
||||
|
||||
export const rangeTypeMediaFeatureNames = uniteSets(deprecatedMediaFeatureNames, [
|
||||
'aspect-ratio',
|
||||
'color',
|
||||
'color-index',
|
||||
'height',
|
||||
'horizontal-viewport-segments',
|
||||
'monochrome',
|
||||
'resolution',
|
||||
'vertical-viewport-segments',
|
||||
'width',
|
||||
]);
|
||||
|
||||
export const rangeTypeMediaFeatureNamesWithMinMaxPrefix = new Set(
|
||||
[...rangeTypeMediaFeatureNames].flatMap((name) => {
|
||||
return [`min-${name}`, `max-${name}`];
|
||||
}),
|
||||
);
|
||||
|
||||
const discreteTypeMediaFeatureNames = new Set([
|
||||
'any-hover',
|
||||
'any-pointer',
|
||||
'color-gamut',
|
||||
'display-mode',
|
||||
'dynamic-range',
|
||||
'environment-blending',
|
||||
'forced-colors',
|
||||
'grid',
|
||||
'hover',
|
||||
'inverted-colors',
|
||||
'light-level',
|
||||
'nav-controls',
|
||||
'orientation',
|
||||
'overflow-block',
|
||||
'overflow-inline',
|
||||
'pointer',
|
||||
'prefers-color-scheme',
|
||||
'prefers-contrast',
|
||||
'prefers-reduced-data',
|
||||
'prefers-reduced-motion',
|
||||
'prefers-reduced-transparency',
|
||||
'scan',
|
||||
'scripting',
|
||||
'update',
|
||||
'video-color-gamut',
|
||||
'video-dynamic-range',
|
||||
]);
|
||||
|
||||
export const mediaFeatureNames = uniteSets(
|
||||
deprecatedMediaFeatureNames,
|
||||
rangeTypeMediaFeatureNames,
|
||||
rangeTypeMediaFeatureNamesWithMinMaxPrefix,
|
||||
discreteTypeMediaFeatureNames,
|
||||
);
|
||||
|
||||
export const mediaFeatureNameAllowedValueKeywords = new Map([
|
||||
['any-hover', new Set(['none', 'hover'])],
|
||||
['any-pointer', new Set(['none', 'coarse', 'fine'])],
|
||||
['color-gamut', new Set(['srgb', 'p3', 'rec2020'])],
|
||||
[
|
||||
'display-mode',
|
||||
new Set(['fullscreen', 'standalone', 'minimal-ui', 'browser', 'picture-in-picture']),
|
||||
],
|
||||
['dynamic-range', new Set(['standard', 'high'])],
|
||||
['environment-blending', new Set(['opaque', 'additive', 'subtractive'])],
|
||||
['forced-colors', new Set(['none', 'active'])],
|
||||
['hover', new Set(['none', 'hover'])],
|
||||
['inverted-colors', new Set(['none', 'inverted'])],
|
||||
['nav-controls', new Set(['none', 'back'])],
|
||||
['orientation', new Set(['portrait', 'landscape'])],
|
||||
['overflow-block', new Set(['none', 'scroll', 'paged'])],
|
||||
['overflow-inline', new Set(['none', 'scroll'])],
|
||||
['pointer', new Set(['none', 'coarse', 'fine'])],
|
||||
['prefers-color-scheme', new Set(['light', 'dark'])],
|
||||
['prefers-contrast', new Set(['no-preference', 'less', 'more', 'custom'])],
|
||||
['prefers-reduced-data', new Set(['no-preference', 'reduce'])],
|
||||
['prefers-reduced-motion', new Set(['no-preference', 'reduce'])],
|
||||
['prefers-reduced-transparency', new Set(['no-preference', 'reduce'])],
|
||||
['resolution', new Set(['infinite'])],
|
||||
['scan', new Set(['interlace', 'progressive'])],
|
||||
['scripting', new Set(['none', 'initial-only', 'enabled'])],
|
||||
['update', new Set(['none', 'slow', 'fast'])],
|
||||
['video-color-gamut', new Set(['srgb', 'p3', 'rec2020'])],
|
||||
['video-dynamic-range', new Set(['standard', 'high'])],
|
||||
]);
|
||||
|
||||
export const mediaFeatureNameAllowedValueTypes = new Map([
|
||||
['aspect-ratio', new Set(['ratio'])],
|
||||
['color', new Set(['integer'])],
|
||||
['color-index', new Set(['integer'])],
|
||||
['device-aspect-ratio', new Set(['ratio'])],
|
||||
['device-height', new Set(['length'])],
|
||||
['device-width', new Set(['length'])],
|
||||
['grid', new Set(['mq-boolean'])],
|
||||
['height', new Set(['length'])],
|
||||
['horizontal-viewport-segments', new Set(['integer'])],
|
||||
['monochrome', new Set(['integer'])],
|
||||
['resolution', new Set(['resolution'])],
|
||||
['vertical-viewport-segments', new Set(['integer'])],
|
||||
['width', new Set(['length'])],
|
||||
]);
|
||||
19
node_modules/stylelint/lib/reference/prefixes.cjs
generated
vendored
Normal file
19
node_modules/stylelint/lib/reference/prefixes.cjs
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
// 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';
|
||||
|
||||
// used by value-no-vendor-prefix and selector-no-vendor-prefix
|
||||
// i.e. this list is deliberately not exhaustive
|
||||
// cf https://www.w3.org/TR/CSS22/syndata.html#vendor-keyword-history
|
||||
const prefixes = new Set([
|
||||
'-webkit-',
|
||||
'-moz-',
|
||||
'-ms-',
|
||||
'-o-',
|
||||
'-xv-',
|
||||
'-apple-',
|
||||
'-wap-',
|
||||
'-khtml-',
|
||||
]);
|
||||
|
||||
exports.prefixes = prefixes;
|
||||
13
node_modules/stylelint/lib/reference/prefixes.mjs
generated
vendored
Normal file
13
node_modules/stylelint/lib/reference/prefixes.mjs
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
// used by value-no-vendor-prefix and selector-no-vendor-prefix
|
||||
// i.e. this list is deliberately not exhaustive
|
||||
// cf https://www.w3.org/TR/CSS22/syndata.html#vendor-keyword-history
|
||||
export const prefixes = new Set([
|
||||
'-webkit-',
|
||||
'-moz-',
|
||||
'-ms-',
|
||||
'-o-',
|
||||
'-xv-',
|
||||
'-apple-',
|
||||
'-wap-',
|
||||
'-khtml-',
|
||||
]);
|
||||
630
node_modules/stylelint/lib/reference/properties.cjs
generated
vendored
Normal file
630
node_modules/stylelint/lib/reference/properties.cjs
generated
vendored
Normal file
@@ -0,0 +1,630 @@
|
||||
// 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 acceptCustomIdentsProperties = new Set([
|
||||
'animation',
|
||||
'animation-name',
|
||||
'font',
|
||||
'font-family',
|
||||
'counter-increment',
|
||||
'grid-row',
|
||||
'grid-column',
|
||||
'grid-area',
|
||||
'list-style',
|
||||
'list-style-type',
|
||||
]);
|
||||
|
||||
const shorthandToResetToInitialProperty = new Map([
|
||||
[
|
||||
'border',
|
||||
new Set([
|
||||
'border-image',
|
||||
'border-image-outset',
|
||||
'border-image-repeat',
|
||||
'border-image-slice',
|
||||
'border-image-source',
|
||||
'border-image-width',
|
||||
]),
|
||||
],
|
||||
[
|
||||
/** @see https://www.w3.org/TR/css-fonts-4/#font-prop */
|
||||
'font',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'font-feature-settings',
|
||||
'font-kerning',
|
||||
'font-language-override',
|
||||
'font-optical-sizing',
|
||||
'font-size-adjust',
|
||||
'font-variant-alternates',
|
||||
'font-variant-caps',
|
||||
'font-variant-east-asian',
|
||||
'font-variant-emoji',
|
||||
'font-variant-ligatures',
|
||||
'font-variant-numeric',
|
||||
'font-variant-position',
|
||||
'font-variation-settings',
|
||||
]),
|
||||
],
|
||||
]);
|
||||
|
||||
/** @type {import('stylelint').LonghandSubPropertiesOfShorthandProperties} */
|
||||
const longhandSubPropertiesOfShorthandProperties = new Map([
|
||||
// Sort alphabetically
|
||||
[
|
||||
'animation',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'animation-name',
|
||||
'animation-duration',
|
||||
'animation-timing-function',
|
||||
'animation-delay',
|
||||
'animation-iteration-count',
|
||||
'animation-direction',
|
||||
'animation-fill-mode',
|
||||
'animation-play-state',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'background',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'background-image',
|
||||
'background-size',
|
||||
'background-position',
|
||||
'background-repeat',
|
||||
'background-origin',
|
||||
'background-clip',
|
||||
'background-attachment',
|
||||
'background-color',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'border',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'border-top-width',
|
||||
'border-right-width',
|
||||
'border-bottom-width',
|
||||
'border-left-width',
|
||||
'border-top-style',
|
||||
'border-right-style',
|
||||
'border-bottom-style',
|
||||
'border-left-style',
|
||||
'border-top-color',
|
||||
'border-right-color',
|
||||
'border-bottom-color',
|
||||
'border-left-color',
|
||||
'border-width',
|
||||
'border-style',
|
||||
'border-color',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'border-block',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'border-block-width',
|
||||
'border-block-style',
|
||||
'border-block-color',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'border-block-end',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'border-block-end-width',
|
||||
'border-block-end-style',
|
||||
'border-block-end-color',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'border-block-start',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'border-block-start-width',
|
||||
'border-block-start-style',
|
||||
'border-block-start-color',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'border-bottom',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'border-bottom-width',
|
||||
'border-bottom-style',
|
||||
'border-bottom-color',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'border-color',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'border-top-color',
|
||||
'border-right-color',
|
||||
'border-bottom-color',
|
||||
'border-left-color',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'border-image',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'border-image-source',
|
||||
'border-image-slice',
|
||||
'border-image-width',
|
||||
'border-image-outset',
|
||||
'border-image-repeat',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'border-inline',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'border-inline-width',
|
||||
'border-inline-style',
|
||||
'border-inline-color',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'border-inline-end',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'border-inline-end-width',
|
||||
'border-inline-end-style',
|
||||
'border-inline-end-color',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'border-inline-start',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'border-inline-start-width',
|
||||
'border-inline-start-style',
|
||||
'border-inline-start-color',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'border-left',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'border-left-width',
|
||||
'border-left-style',
|
||||
'border-left-color',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'border-radius',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'border-top-left-radius',
|
||||
'border-top-right-radius',
|
||||
'border-bottom-right-radius',
|
||||
'border-bottom-left-radius',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'border-right',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'border-right-width',
|
||||
'border-right-style',
|
||||
'border-right-color',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'border-style',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'border-top-style',
|
||||
'border-right-style',
|
||||
'border-bottom-style',
|
||||
'border-left-style',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'border-top',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'border-top-width',
|
||||
'border-top-style',
|
||||
'border-top-color',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'border-width',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'border-top-width',
|
||||
'border-right-width',
|
||||
'border-bottom-width',
|
||||
'border-left-width',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'column-rule',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'column-rule-width',
|
||||
'column-rule-style',
|
||||
'column-rule-color',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'columns',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'column-width',
|
||||
'column-count',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'flex',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'flex-grow',
|
||||
'flex-shrink',
|
||||
'flex-basis',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'flex-flow',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'flex-direction',
|
||||
'flex-wrap',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'font',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'font-style',
|
||||
/**
|
||||
* reset explicitly: normal | small-caps
|
||||
* reset implicitly: all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps
|
||||
* i.e. either way it will be reset
|
||||
* {@link https://www.w3.org/TR/css-fonts-4/#font-variant-prop World Wide Web Consortium}
|
||||
*/
|
||||
'font-variant',
|
||||
'font-weight',
|
||||
'font-stretch',
|
||||
'font-size',
|
||||
'line-height',
|
||||
'font-family',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'font-synthesis',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'font-synthesis-weight',
|
||||
'font-synthesis-style',
|
||||
'font-synthesis-small-caps',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'font-variant',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'font-variant-ligatures',
|
||||
'font-variant-position',
|
||||
'font-variant-caps',
|
||||
'font-variant-numeric',
|
||||
'font-variant-alternates',
|
||||
'font-variant-east-asian',
|
||||
'font-variant-emoji',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'gap',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'row-gap',
|
||||
'column-gap',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'grid',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'grid-template-rows',
|
||||
'grid-template-columns',
|
||||
'grid-template-areas',
|
||||
'grid-auto-rows',
|
||||
'grid-auto-columns',
|
||||
'grid-auto-flow',
|
||||
'grid-column-gap',
|
||||
'grid-row-gap',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'grid-area',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'grid-row-start',
|
||||
'grid-column-start',
|
||||
'grid-row-end',
|
||||
'grid-column-end',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'grid-column',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'grid-column-start',
|
||||
'grid-column-end',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'grid-gap',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'grid-row-gap',
|
||||
'grid-column-gap',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'grid-row',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'grid-row-start',
|
||||
'grid-row-end',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'grid-template',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'grid-template-columns',
|
||||
'grid-template-rows',
|
||||
'grid-template-areas',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'inset',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'top',
|
||||
'right',
|
||||
'bottom',
|
||||
'left',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'inset-block',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'inset-block-start',
|
||||
'inset-block-end',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'inset-inline',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'inset-inline-start',
|
||||
'inset-inline-end',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'list-style',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'list-style-type',
|
||||
'list-style-position',
|
||||
'list-style-image',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'margin',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'margin-top',
|
||||
'margin-right',
|
||||
'margin-bottom',
|
||||
'margin-left',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'margin-block',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'margin-block-start',
|
||||
'margin-block-end',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'margin-inline',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'margin-inline-start',
|
||||
'margin-inline-end',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'mask',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'mask-image',
|
||||
'mask-mode',
|
||||
'mask-position',
|
||||
'mask-size',
|
||||
'mask-repeat',
|
||||
'mask-origin',
|
||||
'mask-clip',
|
||||
'mask-composite',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'outline',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'outline-color',
|
||||
'outline-style',
|
||||
'outline-width',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'overflow',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'overflow-x',
|
||||
'overflow-y',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'overscroll-behavior',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'overscroll-behavior-x',
|
||||
'overscroll-behavior-y',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'padding',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'padding-top',
|
||||
'padding-right',
|
||||
'padding-bottom',
|
||||
'padding-left',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'padding-block',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'padding-block-start',
|
||||
'padding-block-end',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'padding-inline',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'padding-inline-start',
|
||||
'padding-inline-end',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'place-content',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'align-content',
|
||||
'justify-content',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'place-items',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'align-items',
|
||||
'justify-items',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'place-self',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'align-self',
|
||||
'justify-self',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'scroll-margin',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'scroll-margin-top',
|
||||
'scroll-margin-right',
|
||||
'scroll-margin-bottom',
|
||||
'scroll-margin-left',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'scroll-margin-block',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'scroll-margin-block-start',
|
||||
'scroll-margin-block-end',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'scroll-margin-inline',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'scroll-margin-inline-start',
|
||||
'scroll-margin-inline-end',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'scroll-padding',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'scroll-padding-top',
|
||||
'scroll-padding-right',
|
||||
'scroll-padding-bottom',
|
||||
'scroll-padding-left',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'scroll-padding-block',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'scroll-padding-block-start',
|
||||
'scroll-padding-block-end',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'scroll-padding-inline',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'scroll-padding-inline-start',
|
||||
'scroll-padding-inline-end',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'text-decoration',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'text-decoration-line',
|
||||
'text-decoration-style',
|
||||
'text-decoration-color',
|
||||
'text-decoration-thickness',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'text-emphasis',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'text-emphasis-style',
|
||||
'text-emphasis-color',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'transition',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'transition-property',
|
||||
'transition-duration',
|
||||
'transition-timing-function',
|
||||
'transition-delay',
|
||||
]),
|
||||
],
|
||||
]);
|
||||
|
||||
const longhandTimeProperties = new Set([
|
||||
'transition-duration',
|
||||
'transition-delay',
|
||||
'animation-duration',
|
||||
'animation-delay',
|
||||
]);
|
||||
|
||||
const shorthandTimeProperties = new Set(['transition', 'animation']);
|
||||
|
||||
exports.acceptCustomIdentsProperties = acceptCustomIdentsProperties;
|
||||
exports.longhandSubPropertiesOfShorthandProperties = longhandSubPropertiesOfShorthandProperties;
|
||||
exports.longhandTimeProperties = longhandTimeProperties;
|
||||
exports.shorthandTimeProperties = shorthandTimeProperties;
|
||||
exports.shorthandToResetToInitialProperty = shorthandToResetToInitialProperty;
|
||||
620
node_modules/stylelint/lib/reference/properties.mjs
generated
vendored
Normal file
620
node_modules/stylelint/lib/reference/properties.mjs
generated
vendored
Normal file
@@ -0,0 +1,620 @@
|
||||
export const acceptCustomIdentsProperties = new Set([
|
||||
'animation',
|
||||
'animation-name',
|
||||
'font',
|
||||
'font-family',
|
||||
'counter-increment',
|
||||
'grid-row',
|
||||
'grid-column',
|
||||
'grid-area',
|
||||
'list-style',
|
||||
'list-style-type',
|
||||
]);
|
||||
|
||||
export const shorthandToResetToInitialProperty = new Map([
|
||||
[
|
||||
'border',
|
||||
new Set([
|
||||
'border-image',
|
||||
'border-image-outset',
|
||||
'border-image-repeat',
|
||||
'border-image-slice',
|
||||
'border-image-source',
|
||||
'border-image-width',
|
||||
]),
|
||||
],
|
||||
[
|
||||
/** @see https://www.w3.org/TR/css-fonts-4/#font-prop */
|
||||
'font',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'font-feature-settings',
|
||||
'font-kerning',
|
||||
'font-language-override',
|
||||
'font-optical-sizing',
|
||||
'font-size-adjust',
|
||||
'font-variant-alternates',
|
||||
'font-variant-caps',
|
||||
'font-variant-east-asian',
|
||||
'font-variant-emoji',
|
||||
'font-variant-ligatures',
|
||||
'font-variant-numeric',
|
||||
'font-variant-position',
|
||||
'font-variation-settings',
|
||||
]),
|
||||
],
|
||||
]);
|
||||
|
||||
/** @type {import('stylelint').LonghandSubPropertiesOfShorthandProperties} */
|
||||
export const longhandSubPropertiesOfShorthandProperties = new Map([
|
||||
// Sort alphabetically
|
||||
[
|
||||
'animation',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'animation-name',
|
||||
'animation-duration',
|
||||
'animation-timing-function',
|
||||
'animation-delay',
|
||||
'animation-iteration-count',
|
||||
'animation-direction',
|
||||
'animation-fill-mode',
|
||||
'animation-play-state',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'background',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'background-image',
|
||||
'background-size',
|
||||
'background-position',
|
||||
'background-repeat',
|
||||
'background-origin',
|
||||
'background-clip',
|
||||
'background-attachment',
|
||||
'background-color',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'border',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'border-top-width',
|
||||
'border-right-width',
|
||||
'border-bottom-width',
|
||||
'border-left-width',
|
||||
'border-top-style',
|
||||
'border-right-style',
|
||||
'border-bottom-style',
|
||||
'border-left-style',
|
||||
'border-top-color',
|
||||
'border-right-color',
|
||||
'border-bottom-color',
|
||||
'border-left-color',
|
||||
'border-width',
|
||||
'border-style',
|
||||
'border-color',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'border-block',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'border-block-width',
|
||||
'border-block-style',
|
||||
'border-block-color',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'border-block-end',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'border-block-end-width',
|
||||
'border-block-end-style',
|
||||
'border-block-end-color',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'border-block-start',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'border-block-start-width',
|
||||
'border-block-start-style',
|
||||
'border-block-start-color',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'border-bottom',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'border-bottom-width',
|
||||
'border-bottom-style',
|
||||
'border-bottom-color',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'border-color',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'border-top-color',
|
||||
'border-right-color',
|
||||
'border-bottom-color',
|
||||
'border-left-color',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'border-image',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'border-image-source',
|
||||
'border-image-slice',
|
||||
'border-image-width',
|
||||
'border-image-outset',
|
||||
'border-image-repeat',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'border-inline',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'border-inline-width',
|
||||
'border-inline-style',
|
||||
'border-inline-color',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'border-inline-end',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'border-inline-end-width',
|
||||
'border-inline-end-style',
|
||||
'border-inline-end-color',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'border-inline-start',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'border-inline-start-width',
|
||||
'border-inline-start-style',
|
||||
'border-inline-start-color',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'border-left',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'border-left-width',
|
||||
'border-left-style',
|
||||
'border-left-color',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'border-radius',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'border-top-left-radius',
|
||||
'border-top-right-radius',
|
||||
'border-bottom-right-radius',
|
||||
'border-bottom-left-radius',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'border-right',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'border-right-width',
|
||||
'border-right-style',
|
||||
'border-right-color',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'border-style',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'border-top-style',
|
||||
'border-right-style',
|
||||
'border-bottom-style',
|
||||
'border-left-style',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'border-top',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'border-top-width',
|
||||
'border-top-style',
|
||||
'border-top-color',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'border-width',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'border-top-width',
|
||||
'border-right-width',
|
||||
'border-bottom-width',
|
||||
'border-left-width',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'column-rule',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'column-rule-width',
|
||||
'column-rule-style',
|
||||
'column-rule-color',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'columns',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'column-width',
|
||||
'column-count',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'flex',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'flex-grow',
|
||||
'flex-shrink',
|
||||
'flex-basis',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'flex-flow',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'flex-direction',
|
||||
'flex-wrap',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'font',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'font-style',
|
||||
/**
|
||||
* reset explicitly: normal | small-caps
|
||||
* reset implicitly: all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps
|
||||
* i.e. either way it will be reset
|
||||
* {@link https://www.w3.org/TR/css-fonts-4/#font-variant-prop World Wide Web Consortium}
|
||||
*/
|
||||
'font-variant',
|
||||
'font-weight',
|
||||
'font-stretch',
|
||||
'font-size',
|
||||
'line-height',
|
||||
'font-family',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'font-synthesis',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'font-synthesis-weight',
|
||||
'font-synthesis-style',
|
||||
'font-synthesis-small-caps',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'font-variant',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'font-variant-ligatures',
|
||||
'font-variant-position',
|
||||
'font-variant-caps',
|
||||
'font-variant-numeric',
|
||||
'font-variant-alternates',
|
||||
'font-variant-east-asian',
|
||||
'font-variant-emoji',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'gap',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'row-gap',
|
||||
'column-gap',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'grid',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'grid-template-rows',
|
||||
'grid-template-columns',
|
||||
'grid-template-areas',
|
||||
'grid-auto-rows',
|
||||
'grid-auto-columns',
|
||||
'grid-auto-flow',
|
||||
'grid-column-gap',
|
||||
'grid-row-gap',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'grid-area',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'grid-row-start',
|
||||
'grid-column-start',
|
||||
'grid-row-end',
|
||||
'grid-column-end',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'grid-column',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'grid-column-start',
|
||||
'grid-column-end',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'grid-gap',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'grid-row-gap',
|
||||
'grid-column-gap',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'grid-row',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'grid-row-start',
|
||||
'grid-row-end',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'grid-template',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'grid-template-columns',
|
||||
'grid-template-rows',
|
||||
'grid-template-areas',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'inset',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'top',
|
||||
'right',
|
||||
'bottom',
|
||||
'left',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'inset-block',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'inset-block-start',
|
||||
'inset-block-end',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'inset-inline',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'inset-inline-start',
|
||||
'inset-inline-end',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'list-style',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'list-style-type',
|
||||
'list-style-position',
|
||||
'list-style-image',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'margin',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'margin-top',
|
||||
'margin-right',
|
||||
'margin-bottom',
|
||||
'margin-left',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'margin-block',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'margin-block-start',
|
||||
'margin-block-end',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'margin-inline',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'margin-inline-start',
|
||||
'margin-inline-end',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'mask',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'mask-image',
|
||||
'mask-mode',
|
||||
'mask-position',
|
||||
'mask-size',
|
||||
'mask-repeat',
|
||||
'mask-origin',
|
||||
'mask-clip',
|
||||
'mask-composite',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'outline',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'outline-color',
|
||||
'outline-style',
|
||||
'outline-width',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'overflow',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'overflow-x',
|
||||
'overflow-y',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'overscroll-behavior',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'overscroll-behavior-x',
|
||||
'overscroll-behavior-y',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'padding',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'padding-top',
|
||||
'padding-right',
|
||||
'padding-bottom',
|
||||
'padding-left',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'padding-block',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'padding-block-start',
|
||||
'padding-block-end',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'padding-inline',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'padding-inline-start',
|
||||
'padding-inline-end',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'place-content',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'align-content',
|
||||
'justify-content',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'place-items',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'align-items',
|
||||
'justify-items',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'place-self',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'align-self',
|
||||
'justify-self',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'scroll-margin',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'scroll-margin-top',
|
||||
'scroll-margin-right',
|
||||
'scroll-margin-bottom',
|
||||
'scroll-margin-left',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'scroll-margin-block',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'scroll-margin-block-start',
|
||||
'scroll-margin-block-end',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'scroll-margin-inline',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'scroll-margin-inline-start',
|
||||
'scroll-margin-inline-end',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'scroll-padding',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'scroll-padding-top',
|
||||
'scroll-padding-right',
|
||||
'scroll-padding-bottom',
|
||||
'scroll-padding-left',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'scroll-padding-block',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'scroll-padding-block-start',
|
||||
'scroll-padding-block-end',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'scroll-padding-inline',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'scroll-padding-inline-start',
|
||||
'scroll-padding-inline-end',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'text-decoration',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'text-decoration-line',
|
||||
'text-decoration-style',
|
||||
'text-decoration-color',
|
||||
'text-decoration-thickness',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'text-emphasis',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'text-emphasis-style',
|
||||
'text-emphasis-color',
|
||||
]),
|
||||
],
|
||||
[
|
||||
'transition',
|
||||
new Set([
|
||||
// prettier-ignore
|
||||
'transition-property',
|
||||
'transition-duration',
|
||||
'transition-timing-function',
|
||||
'transition-delay',
|
||||
]),
|
||||
],
|
||||
]);
|
||||
|
||||
export const longhandTimeProperties = new Set([
|
||||
'transition-duration',
|
||||
'transition-delay',
|
||||
'animation-duration',
|
||||
'animation-delay',
|
||||
]);
|
||||
|
||||
export const shorthandTimeProperties = new Set(['transition', 'animation']);
|
||||
383
node_modules/stylelint/lib/reference/selectors.cjs
generated
vendored
Normal file
383
node_modules/stylelint/lib/reference/selectors.cjs
generated
vendored
Normal file
@@ -0,0 +1,383 @@
|
||||
// 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 htmlTags = require('html-tags');
|
||||
const uniteSets = require('../utils/uniteSets.cjs');
|
||||
|
||||
const deprecatedHtmlTypeSelectors = new Set([
|
||||
'acronym',
|
||||
'applet',
|
||||
'basefont',
|
||||
'big',
|
||||
'bgsound',
|
||||
'blink',
|
||||
'center',
|
||||
'content',
|
||||
'dir',
|
||||
'font',
|
||||
'frame',
|
||||
'frameset',
|
||||
'isindex',
|
||||
'keygen',
|
||||
'listing',
|
||||
'marquee',
|
||||
'multicol',
|
||||
'nextid',
|
||||
'nobr',
|
||||
'noembed',
|
||||
'noframes',
|
||||
'plaintext',
|
||||
'param',
|
||||
'spacer',
|
||||
'strike',
|
||||
'tt',
|
||||
'xmp',
|
||||
]);
|
||||
|
||||
// typecasting htmlTags to be more generic; see https://github.com/stylelint/stylelint/pull/6013 for discussion
|
||||
/** @type {Set<string>} */
|
||||
const standardHtmlTypeSelectors = new Set(htmlTags);
|
||||
|
||||
const experimentalHtmlTypeSelectors = new Set([
|
||||
'fencedframe',
|
||||
'listbox',
|
||||
'model',
|
||||
'portal',
|
||||
'selectlist',
|
||||
]);
|
||||
|
||||
const htmlTypeSelectors = uniteSets(
|
||||
deprecatedHtmlTypeSelectors,
|
||||
standardHtmlTypeSelectors,
|
||||
experimentalHtmlTypeSelectors,
|
||||
);
|
||||
|
||||
const mixedCaseSvgTypeSelectors = new Set([
|
||||
'altGlyph',
|
||||
'altGlyphDef',
|
||||
'altGlyphItem',
|
||||
'animateColor',
|
||||
'animateMotion',
|
||||
'animateTransform',
|
||||
'clipPath',
|
||||
'feBlend',
|
||||
'feColorMatrix',
|
||||
'feComponentTransfer',
|
||||
'feComposite',
|
||||
'feConvolveMatrix',
|
||||
'feDiffuseLighting',
|
||||
'feDisplacementMap',
|
||||
'feDistantLight',
|
||||
'feDropShadow',
|
||||
'feFlood',
|
||||
'feFuncA',
|
||||
'feFuncB',
|
||||
'feFuncG',
|
||||
'feFuncR',
|
||||
'feGaussianBlur',
|
||||
'feImage',
|
||||
'feMerge',
|
||||
'feMergeNode',
|
||||
'feMorphology',
|
||||
'feOffset',
|
||||
'fePointLight',
|
||||
'feSpecularLighting',
|
||||
'feSpotLight',
|
||||
'feTile',
|
||||
'feTurbulence',
|
||||
'foreignObject',
|
||||
'glyphRef',
|
||||
'linearGradient',
|
||||
'radialGradient',
|
||||
'textPath',
|
||||
]);
|
||||
|
||||
// These are the ones that can have single-colon notation
|
||||
const levelOneAndTwoPseudoElements = new Set([
|
||||
'before',
|
||||
'after',
|
||||
'first-line',
|
||||
'first-letter',
|
||||
]);
|
||||
|
||||
const shadowTreePseudoElements = new Set(['part']);
|
||||
|
||||
const webkitScrollbarPseudoElements = new Set([
|
||||
'-webkit-resizer',
|
||||
'-webkit-scrollbar',
|
||||
'-webkit-scrollbar-button',
|
||||
'-webkit-scrollbar-corner',
|
||||
'-webkit-scrollbar-thumb',
|
||||
'-webkit-scrollbar-track',
|
||||
'-webkit-scrollbar-track-piece',
|
||||
]);
|
||||
|
||||
const vendorSpecificPseudoElements = uniteSets(webkitScrollbarPseudoElements, [
|
||||
'-moz-focus-inner',
|
||||
'-moz-focus-outer',
|
||||
'-moz-list-bullet',
|
||||
'-moz-meter-bar',
|
||||
'-moz-placeholder',
|
||||
'-moz-progress-bar',
|
||||
'-moz-range-progress',
|
||||
'-moz-range-thumb',
|
||||
'-moz-range-track',
|
||||
'-ms-browse',
|
||||
'-ms-check',
|
||||
'-ms-clear',
|
||||
'-ms-expand',
|
||||
'-ms-fill',
|
||||
'-ms-fill-lower',
|
||||
'-ms-fill-upper',
|
||||
'-ms-reveal',
|
||||
'-ms-thumb',
|
||||
'-ms-ticks-after',
|
||||
'-ms-ticks-before',
|
||||
'-ms-tooltip',
|
||||
'-ms-track',
|
||||
'-ms-value',
|
||||
'-webkit-color-swatch',
|
||||
'-webkit-color-swatch-wrapper',
|
||||
'-webkit-calendar-picker-indicator',
|
||||
'-webkit-clear-button',
|
||||
'-webkit-date-and-time-value',
|
||||
'-webkit-datetime-edit',
|
||||
'-webkit-datetime-edit-ampm-field',
|
||||
'-webkit-datetime-edit-day-field',
|
||||
'-webkit-datetime-edit-fields-wrapper',
|
||||
'-webkit-datetime-edit-hour-field',
|
||||
'-webkit-datetime-edit-millisecond-field',
|
||||
'-webkit-datetime-edit-minute-field',
|
||||
'-webkit-datetime-edit-month-field',
|
||||
'-webkit-datetime-edit-second-field',
|
||||
'-webkit-datetime-edit-text',
|
||||
'-webkit-datetime-edit-week-field',
|
||||
'-webkit-datetime-edit-year-field',
|
||||
'-webkit-details-marker',
|
||||
'-webkit-distributed',
|
||||
'-webkit-file-upload-button',
|
||||
'-webkit-input-placeholder',
|
||||
'-webkit-keygen-select',
|
||||
'-webkit-meter-bar',
|
||||
'-webkit-meter-even-less-good-value',
|
||||
'-webkit-meter-inner-element',
|
||||
'-webkit-meter-optimum-value',
|
||||
'-webkit-meter-suboptimum-value',
|
||||
'-webkit-progress-bar',
|
||||
'-webkit-progress-inner-element',
|
||||
'-webkit-progress-value',
|
||||
'-webkit-search-cancel-button',
|
||||
'-webkit-search-decoration',
|
||||
'-webkit-search-results-button',
|
||||
'-webkit-search-results-decoration',
|
||||
'-webkit-slider-runnable-track',
|
||||
'-webkit-slider-thumb',
|
||||
'-webkit-textfield-decoration-container',
|
||||
'-webkit-validation-bubble',
|
||||
'-webkit-validation-bubble-arrow',
|
||||
'-webkit-validation-bubble-arrow-clipper',
|
||||
'-webkit-validation-bubble-heading',
|
||||
'-webkit-validation-bubble-message',
|
||||
'-webkit-validation-bubble-text-block',
|
||||
]);
|
||||
|
||||
const pseudoElements = uniteSets(
|
||||
levelOneAndTwoPseudoElements,
|
||||
vendorSpecificPseudoElements,
|
||||
shadowTreePseudoElements,
|
||||
[
|
||||
'backdrop',
|
||||
'content',
|
||||
'cue',
|
||||
'details-content',
|
||||
'file-selector-button',
|
||||
'grammar-error',
|
||||
'highlight',
|
||||
'marker',
|
||||
'placeholder',
|
||||
'scroll-marker',
|
||||
'scroll-marker-group',
|
||||
'selection',
|
||||
'shadow',
|
||||
'slotted',
|
||||
'spelling-error',
|
||||
'target-text',
|
||||
'view-transition',
|
||||
'view-transition-group',
|
||||
'view-transition-image-pair',
|
||||
'view-transition-new',
|
||||
'view-transition-old',
|
||||
],
|
||||
);
|
||||
|
||||
const aNPlusBNotationPseudoClasses = new Set([
|
||||
'nth-column',
|
||||
'nth-last-column',
|
||||
'nth-last-of-type',
|
||||
'nth-of-type',
|
||||
]);
|
||||
|
||||
const aNPlusBOfSNotationPseudoClasses = new Set(['nth-child', 'nth-last-child']);
|
||||
|
||||
const atRulePagePseudoClasses = new Set([
|
||||
'first',
|
||||
'right',
|
||||
'left',
|
||||
'blank',
|
||||
'recto',
|
||||
'verso',
|
||||
'nth',
|
||||
]);
|
||||
|
||||
const linguisticPseudoClasses = new Set(['dir', 'lang']);
|
||||
|
||||
const logicalCombinationsPseudoClasses = new Set(['has', 'is', 'matches', 'not', 'where']);
|
||||
|
||||
const vendorSpecificPseudoClasses = new Set([
|
||||
'-khtml-drag',
|
||||
'-moz-any',
|
||||
'-moz-any-link',
|
||||
'-moz-bound-element',
|
||||
'-moz-broken',
|
||||
'-moz-dir',
|
||||
'-moz-drag-over',
|
||||
'-moz-empty-except-children-with-localname',
|
||||
'-moz-first-node',
|
||||
'-moz-focusring',
|
||||
'-moz-full-screen',
|
||||
'-moz-full-screen-ancestor',
|
||||
'-moz-is-html',
|
||||
'-moz-last-node',
|
||||
'-moz-loading',
|
||||
'-moz-meter-optimum',
|
||||
'-moz-meter-sub-optimum',
|
||||
'-moz-meter-sub-sub-optimum',
|
||||
'-moz-only-whitespace',
|
||||
'-moz-placeholder',
|
||||
'-moz-read-only',
|
||||
'-moz-read-write',
|
||||
'-moz-submit-invalid',
|
||||
'-moz-suppressed',
|
||||
'-moz-table-border-nonzero',
|
||||
'-moz-ui-invalid',
|
||||
'-moz-ui-valid',
|
||||
'-moz-user-disabled',
|
||||
'-moz-window-inactive',
|
||||
'-ms-fullscreen',
|
||||
'-ms-input-placeholder',
|
||||
'-webkit-drag',
|
||||
'-webkit-any',
|
||||
'-webkit-any-link',
|
||||
'-webkit-autofill',
|
||||
'-webkit-full-screen',
|
||||
'-webkit-full-screen-ancestor',
|
||||
]);
|
||||
|
||||
// https://webkit.org/blog/363/styling-scrollbars/
|
||||
const webkitScrollbarPseudoClasses = new Set([
|
||||
'horizontal',
|
||||
'vertical',
|
||||
'decrement',
|
||||
'increment',
|
||||
'start',
|
||||
'end',
|
||||
'double-button',
|
||||
'single-button',
|
||||
'no-button',
|
||||
'corner-present',
|
||||
'window-inactive',
|
||||
]);
|
||||
|
||||
// https://www.w3.org/TR/selectors-4/#resource-pseudos
|
||||
const resourceStatePseudoClasses = new Set([
|
||||
'buffering',
|
||||
'muted',
|
||||
'paused',
|
||||
'playing',
|
||||
'seeking',
|
||||
'stalled',
|
||||
'volume-locked',
|
||||
]);
|
||||
|
||||
const pseudoClasses = uniteSets(
|
||||
aNPlusBNotationPseudoClasses,
|
||||
linguisticPseudoClasses,
|
||||
logicalCombinationsPseudoClasses,
|
||||
aNPlusBOfSNotationPseudoClasses,
|
||||
resourceStatePseudoClasses,
|
||||
vendorSpecificPseudoClasses,
|
||||
[
|
||||
'active',
|
||||
'active-view-transition',
|
||||
'active-view-transition-type',
|
||||
'any-link',
|
||||
'autofill',
|
||||
/*
|
||||
introduced the 10/05/2016 by 8c808d0
|
||||
as of 2024 it is still not supported by any browser
|
||||
*/
|
||||
'blank',
|
||||
'checked',
|
||||
'current',
|
||||
'default',
|
||||
'defined',
|
||||
'disabled',
|
||||
'empty',
|
||||
'enabled',
|
||||
'first-child',
|
||||
'first-of-type',
|
||||
'focus',
|
||||
'focus-visible',
|
||||
'focus-within',
|
||||
'fullscreen',
|
||||
'fullscreen-ancestor',
|
||||
'future',
|
||||
'host',
|
||||
'host-context',
|
||||
'hover',
|
||||
'indeterminate',
|
||||
'in-range',
|
||||
'invalid',
|
||||
'last-child',
|
||||
'last-of-type',
|
||||
'link',
|
||||
'modal',
|
||||
'only-child',
|
||||
'only-of-type',
|
||||
'open',
|
||||
'optional',
|
||||
'out-of-range',
|
||||
'past',
|
||||
'placeholder-shown',
|
||||
'picture-in-picture',
|
||||
'popover-open',
|
||||
'read-only',
|
||||
'read-write',
|
||||
'required',
|
||||
'root',
|
||||
'scope',
|
||||
'state',
|
||||
'target',
|
||||
'unresolved',
|
||||
'user-invalid',
|
||||
'user-valid',
|
||||
'valid',
|
||||
'visited',
|
||||
'window-inactive', // for ::selection (chrome)
|
||||
],
|
||||
);
|
||||
|
||||
exports.aNPlusBNotationPseudoClasses = aNPlusBNotationPseudoClasses;
|
||||
exports.aNPlusBOfSNotationPseudoClasses = aNPlusBOfSNotationPseudoClasses;
|
||||
exports.atRulePagePseudoClasses = atRulePagePseudoClasses;
|
||||
exports.htmlTypeSelectors = htmlTypeSelectors;
|
||||
exports.levelOneAndTwoPseudoElements = levelOneAndTwoPseudoElements;
|
||||
exports.linguisticPseudoClasses = linguisticPseudoClasses;
|
||||
exports.logicalCombinationsPseudoClasses = logicalCombinationsPseudoClasses;
|
||||
exports.mixedCaseSvgTypeSelectors = mixedCaseSvgTypeSelectors;
|
||||
exports.pseudoClasses = pseudoClasses;
|
||||
exports.pseudoElements = pseudoElements;
|
||||
exports.shadowTreePseudoElements = shadowTreePseudoElements;
|
||||
exports.webkitScrollbarPseudoClasses = webkitScrollbarPseudoClasses;
|
||||
exports.webkitScrollbarPseudoElements = webkitScrollbarPseudoElements;
|
||||
366
node_modules/stylelint/lib/reference/selectors.mjs
generated
vendored
Normal file
366
node_modules/stylelint/lib/reference/selectors.mjs
generated
vendored
Normal file
@@ -0,0 +1,366 @@
|
||||
import htmlTags from 'html-tags';
|
||||
|
||||
import uniteSets from '../utils/uniteSets.mjs';
|
||||
|
||||
const deprecatedHtmlTypeSelectors = new Set([
|
||||
'acronym',
|
||||
'applet',
|
||||
'basefont',
|
||||
'big',
|
||||
'bgsound',
|
||||
'blink',
|
||||
'center',
|
||||
'content',
|
||||
'dir',
|
||||
'font',
|
||||
'frame',
|
||||
'frameset',
|
||||
'isindex',
|
||||
'keygen',
|
||||
'listing',
|
||||
'marquee',
|
||||
'multicol',
|
||||
'nextid',
|
||||
'nobr',
|
||||
'noembed',
|
||||
'noframes',
|
||||
'plaintext',
|
||||
'param',
|
||||
'spacer',
|
||||
'strike',
|
||||
'tt',
|
||||
'xmp',
|
||||
]);
|
||||
|
||||
// typecasting htmlTags to be more generic; see https://github.com/stylelint/stylelint/pull/6013 for discussion
|
||||
/** @type {Set<string>} */
|
||||
const standardHtmlTypeSelectors = new Set(htmlTags);
|
||||
|
||||
const experimentalHtmlTypeSelectors = new Set([
|
||||
'fencedframe',
|
||||
'listbox',
|
||||
'model',
|
||||
'portal',
|
||||
'selectlist',
|
||||
]);
|
||||
|
||||
export const htmlTypeSelectors = uniteSets(
|
||||
deprecatedHtmlTypeSelectors,
|
||||
standardHtmlTypeSelectors,
|
||||
experimentalHtmlTypeSelectors,
|
||||
);
|
||||
|
||||
export const mixedCaseSvgTypeSelectors = new Set([
|
||||
'altGlyph',
|
||||
'altGlyphDef',
|
||||
'altGlyphItem',
|
||||
'animateColor',
|
||||
'animateMotion',
|
||||
'animateTransform',
|
||||
'clipPath',
|
||||
'feBlend',
|
||||
'feColorMatrix',
|
||||
'feComponentTransfer',
|
||||
'feComposite',
|
||||
'feConvolveMatrix',
|
||||
'feDiffuseLighting',
|
||||
'feDisplacementMap',
|
||||
'feDistantLight',
|
||||
'feDropShadow',
|
||||
'feFlood',
|
||||
'feFuncA',
|
||||
'feFuncB',
|
||||
'feFuncG',
|
||||
'feFuncR',
|
||||
'feGaussianBlur',
|
||||
'feImage',
|
||||
'feMerge',
|
||||
'feMergeNode',
|
||||
'feMorphology',
|
||||
'feOffset',
|
||||
'fePointLight',
|
||||
'feSpecularLighting',
|
||||
'feSpotLight',
|
||||
'feTile',
|
||||
'feTurbulence',
|
||||
'foreignObject',
|
||||
'glyphRef',
|
||||
'linearGradient',
|
||||
'radialGradient',
|
||||
'textPath',
|
||||
]);
|
||||
|
||||
// These are the ones that can have single-colon notation
|
||||
export const levelOneAndTwoPseudoElements = new Set([
|
||||
'before',
|
||||
'after',
|
||||
'first-line',
|
||||
'first-letter',
|
||||
]);
|
||||
|
||||
export const shadowTreePseudoElements = new Set(['part']);
|
||||
|
||||
export const webkitScrollbarPseudoElements = new Set([
|
||||
'-webkit-resizer',
|
||||
'-webkit-scrollbar',
|
||||
'-webkit-scrollbar-button',
|
||||
'-webkit-scrollbar-corner',
|
||||
'-webkit-scrollbar-thumb',
|
||||
'-webkit-scrollbar-track',
|
||||
'-webkit-scrollbar-track-piece',
|
||||
]);
|
||||
|
||||
const vendorSpecificPseudoElements = uniteSets(webkitScrollbarPseudoElements, [
|
||||
'-moz-focus-inner',
|
||||
'-moz-focus-outer',
|
||||
'-moz-list-bullet',
|
||||
'-moz-meter-bar',
|
||||
'-moz-placeholder',
|
||||
'-moz-progress-bar',
|
||||
'-moz-range-progress',
|
||||
'-moz-range-thumb',
|
||||
'-moz-range-track',
|
||||
'-ms-browse',
|
||||
'-ms-check',
|
||||
'-ms-clear',
|
||||
'-ms-expand',
|
||||
'-ms-fill',
|
||||
'-ms-fill-lower',
|
||||
'-ms-fill-upper',
|
||||
'-ms-reveal',
|
||||
'-ms-thumb',
|
||||
'-ms-ticks-after',
|
||||
'-ms-ticks-before',
|
||||
'-ms-tooltip',
|
||||
'-ms-track',
|
||||
'-ms-value',
|
||||
'-webkit-color-swatch',
|
||||
'-webkit-color-swatch-wrapper',
|
||||
'-webkit-calendar-picker-indicator',
|
||||
'-webkit-clear-button',
|
||||
'-webkit-date-and-time-value',
|
||||
'-webkit-datetime-edit',
|
||||
'-webkit-datetime-edit-ampm-field',
|
||||
'-webkit-datetime-edit-day-field',
|
||||
'-webkit-datetime-edit-fields-wrapper',
|
||||
'-webkit-datetime-edit-hour-field',
|
||||
'-webkit-datetime-edit-millisecond-field',
|
||||
'-webkit-datetime-edit-minute-field',
|
||||
'-webkit-datetime-edit-month-field',
|
||||
'-webkit-datetime-edit-second-field',
|
||||
'-webkit-datetime-edit-text',
|
||||
'-webkit-datetime-edit-week-field',
|
||||
'-webkit-datetime-edit-year-field',
|
||||
'-webkit-details-marker',
|
||||
'-webkit-distributed',
|
||||
'-webkit-file-upload-button',
|
||||
'-webkit-input-placeholder',
|
||||
'-webkit-keygen-select',
|
||||
'-webkit-meter-bar',
|
||||
'-webkit-meter-even-less-good-value',
|
||||
'-webkit-meter-inner-element',
|
||||
'-webkit-meter-optimum-value',
|
||||
'-webkit-meter-suboptimum-value',
|
||||
'-webkit-progress-bar',
|
||||
'-webkit-progress-inner-element',
|
||||
'-webkit-progress-value',
|
||||
'-webkit-search-cancel-button',
|
||||
'-webkit-search-decoration',
|
||||
'-webkit-search-results-button',
|
||||
'-webkit-search-results-decoration',
|
||||
'-webkit-slider-runnable-track',
|
||||
'-webkit-slider-thumb',
|
||||
'-webkit-textfield-decoration-container',
|
||||
'-webkit-validation-bubble',
|
||||
'-webkit-validation-bubble-arrow',
|
||||
'-webkit-validation-bubble-arrow-clipper',
|
||||
'-webkit-validation-bubble-heading',
|
||||
'-webkit-validation-bubble-message',
|
||||
'-webkit-validation-bubble-text-block',
|
||||
]);
|
||||
|
||||
export const pseudoElements = uniteSets(
|
||||
levelOneAndTwoPseudoElements,
|
||||
vendorSpecificPseudoElements,
|
||||
shadowTreePseudoElements,
|
||||
[
|
||||
'backdrop',
|
||||
'content',
|
||||
'cue',
|
||||
'details-content',
|
||||
'file-selector-button',
|
||||
'grammar-error',
|
||||
'highlight',
|
||||
'marker',
|
||||
'placeholder',
|
||||
'scroll-marker',
|
||||
'scroll-marker-group',
|
||||
'selection',
|
||||
'shadow',
|
||||
'slotted',
|
||||
'spelling-error',
|
||||
'target-text',
|
||||
'view-transition',
|
||||
'view-transition-group',
|
||||
'view-transition-image-pair',
|
||||
'view-transition-new',
|
||||
'view-transition-old',
|
||||
],
|
||||
);
|
||||
|
||||
export const aNPlusBNotationPseudoClasses = new Set([
|
||||
'nth-column',
|
||||
'nth-last-column',
|
||||
'nth-last-of-type',
|
||||
'nth-of-type',
|
||||
]);
|
||||
|
||||
export const aNPlusBOfSNotationPseudoClasses = new Set(['nth-child', 'nth-last-child']);
|
||||
|
||||
export const atRulePagePseudoClasses = new Set([
|
||||
'first',
|
||||
'right',
|
||||
'left',
|
||||
'blank',
|
||||
'recto',
|
||||
'verso',
|
||||
'nth',
|
||||
]);
|
||||
|
||||
export const linguisticPseudoClasses = new Set(['dir', 'lang']);
|
||||
|
||||
export const logicalCombinationsPseudoClasses = new Set(['has', 'is', 'matches', 'not', 'where']);
|
||||
|
||||
const vendorSpecificPseudoClasses = new Set([
|
||||
'-khtml-drag',
|
||||
'-moz-any',
|
||||
'-moz-any-link',
|
||||
'-moz-bound-element',
|
||||
'-moz-broken',
|
||||
'-moz-dir',
|
||||
'-moz-drag-over',
|
||||
'-moz-empty-except-children-with-localname',
|
||||
'-moz-first-node',
|
||||
'-moz-focusring',
|
||||
'-moz-full-screen',
|
||||
'-moz-full-screen-ancestor',
|
||||
'-moz-is-html',
|
||||
'-moz-last-node',
|
||||
'-moz-loading',
|
||||
'-moz-meter-optimum',
|
||||
'-moz-meter-sub-optimum',
|
||||
'-moz-meter-sub-sub-optimum',
|
||||
'-moz-only-whitespace',
|
||||
'-moz-placeholder',
|
||||
'-moz-read-only',
|
||||
'-moz-read-write',
|
||||
'-moz-submit-invalid',
|
||||
'-moz-suppressed',
|
||||
'-moz-table-border-nonzero',
|
||||
'-moz-ui-invalid',
|
||||
'-moz-ui-valid',
|
||||
'-moz-user-disabled',
|
||||
'-moz-window-inactive',
|
||||
'-ms-fullscreen',
|
||||
'-ms-input-placeholder',
|
||||
'-webkit-drag',
|
||||
'-webkit-any',
|
||||
'-webkit-any-link',
|
||||
'-webkit-autofill',
|
||||
'-webkit-full-screen',
|
||||
'-webkit-full-screen-ancestor',
|
||||
]);
|
||||
|
||||
// https://webkit.org/blog/363/styling-scrollbars/
|
||||
export const webkitScrollbarPseudoClasses = new Set([
|
||||
'horizontal',
|
||||
'vertical',
|
||||
'decrement',
|
||||
'increment',
|
||||
'start',
|
||||
'end',
|
||||
'double-button',
|
||||
'single-button',
|
||||
'no-button',
|
||||
'corner-present',
|
||||
'window-inactive',
|
||||
]);
|
||||
|
||||
// https://www.w3.org/TR/selectors-4/#resource-pseudos
|
||||
const resourceStatePseudoClasses = new Set([
|
||||
'buffering',
|
||||
'muted',
|
||||
'paused',
|
||||
'playing',
|
||||
'seeking',
|
||||
'stalled',
|
||||
'volume-locked',
|
||||
]);
|
||||
|
||||
export const pseudoClasses = uniteSets(
|
||||
aNPlusBNotationPseudoClasses,
|
||||
linguisticPseudoClasses,
|
||||
logicalCombinationsPseudoClasses,
|
||||
aNPlusBOfSNotationPseudoClasses,
|
||||
resourceStatePseudoClasses,
|
||||
vendorSpecificPseudoClasses,
|
||||
[
|
||||
'active',
|
||||
'active-view-transition',
|
||||
'active-view-transition-type',
|
||||
'any-link',
|
||||
'autofill',
|
||||
/*
|
||||
introduced the 10/05/2016 by 8c808d0
|
||||
as of 2024 it is still not supported by any browser
|
||||
*/
|
||||
'blank',
|
||||
'checked',
|
||||
'current',
|
||||
'default',
|
||||
'defined',
|
||||
'disabled',
|
||||
'empty',
|
||||
'enabled',
|
||||
'first-child',
|
||||
'first-of-type',
|
||||
'focus',
|
||||
'focus-visible',
|
||||
'focus-within',
|
||||
'fullscreen',
|
||||
'fullscreen-ancestor',
|
||||
'future',
|
||||
'host',
|
||||
'host-context',
|
||||
'hover',
|
||||
'indeterminate',
|
||||
'in-range',
|
||||
'invalid',
|
||||
'last-child',
|
||||
'last-of-type',
|
||||
'link',
|
||||
'modal',
|
||||
'only-child',
|
||||
'only-of-type',
|
||||
'open',
|
||||
'optional',
|
||||
'out-of-range',
|
||||
'past',
|
||||
'placeholder-shown',
|
||||
'picture-in-picture',
|
||||
'popover-open',
|
||||
'read-only',
|
||||
'read-write',
|
||||
'required',
|
||||
'root',
|
||||
'scope',
|
||||
'state',
|
||||
'target',
|
||||
'unresolved',
|
||||
'user-invalid',
|
||||
'user-valid',
|
||||
'valid',
|
||||
'visited',
|
||||
'window-inactive', // for ::selection (chrome)
|
||||
],
|
||||
);
|
||||
87
node_modules/stylelint/lib/reference/units.cjs
generated
vendored
Normal file
87
node_modules/stylelint/lib/reference/units.cjs
generated
vendored
Normal file
@@ -0,0 +1,87 @@
|
||||
// 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');
|
||||
|
||||
const lengthUnits = new Set([
|
||||
// Font-relative length units
|
||||
'cap',
|
||||
'ch',
|
||||
'em',
|
||||
'ex',
|
||||
'ic',
|
||||
'lh',
|
||||
'rcap',
|
||||
'rch',
|
||||
'rem',
|
||||
'rex',
|
||||
'ric',
|
||||
'rlh',
|
||||
// Viewport-percentage lengths
|
||||
'dvb',
|
||||
'dvh',
|
||||
'dvi',
|
||||
'dvmax',
|
||||
'dvmin',
|
||||
'dvw',
|
||||
'lvb',
|
||||
'lvh',
|
||||
'lvi',
|
||||
'lvmax',
|
||||
'lvmin',
|
||||
'lvw',
|
||||
'svb',
|
||||
'svh',
|
||||
'svi',
|
||||
'svmax',
|
||||
'svmin',
|
||||
'svw',
|
||||
'vb',
|
||||
'vh',
|
||||
'vi',
|
||||
'vw',
|
||||
'vmin',
|
||||
'vmax',
|
||||
'vm',
|
||||
// Absolute length units
|
||||
'px',
|
||||
'mm',
|
||||
'cm',
|
||||
'in',
|
||||
'pt',
|
||||
'pc',
|
||||
'q',
|
||||
'mozmm',
|
||||
// Flexible length units
|
||||
'fr',
|
||||
// Container query units
|
||||
'cqw',
|
||||
'cqh',
|
||||
'cqi',
|
||||
'cqb',
|
||||
'cqmin',
|
||||
'cqmax',
|
||||
]);
|
||||
|
||||
const resolutionUnits = new Set(['dpi', 'dpcm', 'dppx', 'x']);
|
||||
|
||||
const units = uniteSets(lengthUnits, resolutionUnits, [
|
||||
// Relative length units
|
||||
'%',
|
||||
// Time length units
|
||||
's',
|
||||
'ms',
|
||||
// Angle
|
||||
'deg',
|
||||
'grad',
|
||||
'turn',
|
||||
'rad',
|
||||
// Frequency
|
||||
'Hz',
|
||||
'kHz',
|
||||
]);
|
||||
|
||||
exports.lengthUnits = lengthUnits;
|
||||
exports.resolutionUnits = resolutionUnits;
|
||||
exports.units = units;
|
||||
79
node_modules/stylelint/lib/reference/units.mjs
generated
vendored
Normal file
79
node_modules/stylelint/lib/reference/units.mjs
generated
vendored
Normal file
@@ -0,0 +1,79 @@
|
||||
import uniteSets from '../utils/uniteSets.mjs';
|
||||
|
||||
export const lengthUnits = new Set([
|
||||
// Font-relative length units
|
||||
'cap',
|
||||
'ch',
|
||||
'em',
|
||||
'ex',
|
||||
'ic',
|
||||
'lh',
|
||||
'rcap',
|
||||
'rch',
|
||||
'rem',
|
||||
'rex',
|
||||
'ric',
|
||||
'rlh',
|
||||
// Viewport-percentage lengths
|
||||
'dvb',
|
||||
'dvh',
|
||||
'dvi',
|
||||
'dvmax',
|
||||
'dvmin',
|
||||
'dvw',
|
||||
'lvb',
|
||||
'lvh',
|
||||
'lvi',
|
||||
'lvmax',
|
||||
'lvmin',
|
||||
'lvw',
|
||||
'svb',
|
||||
'svh',
|
||||
'svi',
|
||||
'svmax',
|
||||
'svmin',
|
||||
'svw',
|
||||
'vb',
|
||||
'vh',
|
||||
'vi',
|
||||
'vw',
|
||||
'vmin',
|
||||
'vmax',
|
||||
'vm',
|
||||
// Absolute length units
|
||||
'px',
|
||||
'mm',
|
||||
'cm',
|
||||
'in',
|
||||
'pt',
|
||||
'pc',
|
||||
'q',
|
||||
'mozmm',
|
||||
// Flexible length units
|
||||
'fr',
|
||||
// Container query units
|
||||
'cqw',
|
||||
'cqh',
|
||||
'cqi',
|
||||
'cqb',
|
||||
'cqmin',
|
||||
'cqmax',
|
||||
]);
|
||||
|
||||
export const resolutionUnits = new Set(['dpi', 'dpcm', 'dppx', 'x']);
|
||||
|
||||
export const units = uniteSets(lengthUnits, resolutionUnits, [
|
||||
// Relative length units
|
||||
'%',
|
||||
// Time length units
|
||||
's',
|
||||
'ms',
|
||||
// Angle
|
||||
'deg',
|
||||
'grad',
|
||||
'turn',
|
||||
'rad',
|
||||
// Frequency
|
||||
'Hz',
|
||||
'kHz',
|
||||
]);
|
||||
Reference in New Issue
Block a user