From e1ed3bf222ee75f68dd2c7ae76a9de5137a1dd2f Mon Sep 17 00:00:00 2001 From: tophf Date: Wed, 17 Jun 2020 16:13:28 +0300 Subject: [PATCH] update CSSLint (#967) * refactor Tokens to enable goto-symbol and find-usages * refactor * CSS Text Module L3 (ED 2020-06-08) * CSS Fonts Module L4 parts (ED 2020-06-11) * CSS Scrollbars Module L1 (ED 2020-02-24) * skip all successfully parsed parts after var() --- vendor-overwrites/csslint/parserlib.js | 277 +++++++++++++------------ 1 file changed, 140 insertions(+), 137 deletions(-) diff --git a/vendor-overwrites/csslint/parserlib.js b/vendor-overwrites/csslint/parserlib.js index 306dbaae..7d2586c4 100644 --- a/vendor-overwrites/csslint/parserlib.js +++ b/vendor-overwrites/csslint/parserlib.js @@ -319,7 +319,7 @@ self.parserlib = (() => { 'drop-initial-before-align': 'caps-height | baseline | use-script | before-edge | text-before-edge | ' + 'after-edge | text-after-edge | central | middle | ideographic | alphabetic | ' + 'hanging | mathematical', - 'drop-initial-size': 'auto | line | | ', + 'drop-initial-size': 'auto | line | ', 'drop-initial-value': '', // E @@ -347,19 +347,28 @@ self.parserlib = (() => { 'flood-opacity': '', 'font': ' | caption | icon | menu | message-box | small-caption | status-bar', 'font-family': '', - 'font-feature-settings': ' | normal', + 'font-feature-settings': '# | normal', 'font-kerning': 'auto | normal | none', + 'font-language-override': 'normal | ', + 'font-optical-sizing': 'auto | none', + 'font-palette': 'none | normal | light | dark | ', 'font-size': '', 'font-size-adjust': ' | none', 'font-stretch': '', 'font-style': '', + 'font-synthesis': 'none | [ weight || style ]', + 'font-synthesis-style': 'auto | none', + 'font-synthesis-weight': 'auto | none', + 'font-synthesis-small-caps': 'auto | none', 'font-variant': ' | normal | none', 'font-variant-alternates': ' | normal', 'font-variant-caps': ' | normal', 'font-variant-east-asian': ' | normal', + 'font-variant-emoji': 'auto | text | emoji | unicode', 'font-variant-ligatures': ' | normal | none', 'font-variant-numeric': ' | normal', 'font-variant-position': 'normal | sub | super', + 'font-variation-settings': 'normal | [ ]#', 'font-weight': '', '-ms-flex-align': 'start | end | center | stretch | baseline', '-ms-flex-order': '', @@ -392,7 +401,7 @@ self.parserlib = (() => { 'grid-gap': ' ?', // H - 'hanging-punctuation': 1, + 'hanging-punctuation': 'none | [ first || [ force-end | allow-end ] || last ]', 'height': 'auto | ', 'hyphenate-after': ' | auto', 'hyphenate-before': ' | auto', @@ -431,7 +440,7 @@ self.parserlib = (() => { 'left': '', 'letter-spacing': ' | normal', 'line-height': '', - 'line-break': 'auto | loose | normal | strict', + 'line-break': 'auto | loose | normal | strict | anywhere', 'line-stacking': 1, 'line-stacking-ruby': 'exclude-ruby | include-ruby', 'line-stacking-shift': 'consider-shifts | disregard-shifts', @@ -502,7 +511,7 @@ self.parserlib = (() => { 'overflow-block': '', 'overflow-inline': '', 'overflow-style': 1, - 'overflow-wrap': 'normal | break-word', + 'overflow-wrap': 'normal | break-word | anywhere', 'overflow-x': '', 'overflow-y': '', @@ -564,6 +573,8 @@ self.parserlib = (() => { // S 'scale': 'none | {1,3}', + 'scrollbar-color': 'auto | dark | light | {2}', + 'scrollbar-width': 'auto | thin | none', 'shape-inside': 'auto | outside-shape | [ || shape-box ] | | display', 'shape-rendering': 'auto | optimizeSpeed | crispEdges | geometricPrecision', 'size': 1, @@ -588,14 +599,14 @@ self.parserlib = (() => { // T 'table-layout': 'auto | fixed', - 'tab-size': ' | ', + 'tab-size': ' | ', 'target': 1, 'target-name': 1, 'target-new': 1, 'target-position': 1, - 'text-align': 'start | end | left | right | center | justify | match-parent | justify-all', - 'text-align-all': 'start | end | left | right | center | justify | match-parent', - 'text-align-last': 'auto | start | end | left | right | center | justify', + 'text-align': ' | justify-all', + 'text-align-all': '', + 'text-align-last': ' | auto', 'text-anchor': 'start | middle | end', 'text-decoration': ' || || ', 'text-decoration-color': '', @@ -607,13 +618,13 @@ self.parserlib = (() => { 'text-emphasis-style': '', 'text-emphasis-position': '[ over | under ] && [ right | left ]?', 'text-height': 1, - 'text-indent': ' | ', - 'text-justify': 'auto | none | inter-word | inter-ideograph | inter-cluster | distribute | kashida', + 'text-indent': ' && hanging? && each-line?', + 'text-justify': 'auto | none | inter-word | inter-character', 'text-outline': 1, 'text-overflow': 'clip | ellipsis', 'text-rendering': 'auto | optimizeSpeed | optimizeLegibility | geometricPrecision', 'text-shadow': 'none | [ ? && {2,3} ]#', - 'text-transform': 'capitalize | uppercase | lowercase | none', + 'text-transform': 'none | [ capitalize | uppercase | lowercase ] || full-width || full-size-kana', 'text-underline-position': 'auto | [ under || [ left | right ] ]', 'text-wrap': 'normal | none | avoid', 'top': '', @@ -650,15 +661,14 @@ self.parserlib = (() => { 'volume': 1, // W - 'white-space': 'normal | pre | nowrap | pre-wrap | pre-line | -pre-wrap |' + - ' -o-pre-wrap | -moz-pre-wrap | -hp-pre-wrap', + 'white-space': 'normal | pre | nowrap | pre-wrap | break-spaces | pre-line', 'white-space-collapse': 1, 'widows': '', 'width': 'auto | ', 'will-change': '', - 'word-break': 'normal | keep-all | break-all', + 'word-break': 'normal | keep-all | break-all | break-word', 'word-spacing': ' | normal', - 'word-wrap': 'normal | break-word', + 'word-wrap': 'normal | break-word | anywhere', 'writing-mode': 'horizontal-tb | vertical-rl | vertical-lr | lr-tb | rl-tb | tb-rl | ' + 'bt-rl | tb-lr | bt-lr | lr-bt | rl-bt | lr | rl | tb', @@ -711,7 +721,7 @@ self.parserlib = (() => { '': '', - '': 'normal | | ', + '': 'normal | ', '': 'space-between | space-around | space-evenly | stretch', '': 'center | start | end | flex-start | flex-end', @@ -747,17 +757,17 @@ self.parserlib = (() => { '': '', '': 'nowrap | wrap | wrap-reverse', - '': ' | | | ', - '': 'normal | ultra-condensed | extra-condensed | condensed | semi-condensed | ' + + '': ' | | ', + '': 'normal | | ultra-condensed | extra-condensed | condensed | semi-condensed | ' + 'semi-expanded | expanded | extra-expanded | ultra-expanded', - '': 'normal | italic | oblique', + '': 'normal | italic | oblique ?', '': 'small-caps | all-small-caps | petite-caps | all-petite-caps | ' + 'unicase | titling-caps', '': 'normal | small-caps', - '': 'normal | bold | bolder | lighter | ' + - '100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900', + '': 'normal | bold | bolder | lighter | ', - '': 'serif | sans-serif | cursive | fantasy | monospace', + '': 'serif | sans-serif | cursive | fantasy | monospace | system-ui | emoji | ' + + 'math | fangsong | ui-serif | ui-sans-serif | ui-monospace | ui-rounded', '': ' | fill-box | stroke-box | view-box', @@ -798,7 +808,7 @@ self.parserlib = (() => { '': part => part.type === 'integer', - '': ' | | | normal', + '': ' | | normal', '': function (part) { // eslint-disable-next-line no-use-before-define @@ -868,6 +878,8 @@ self.parserlib = (() => { '': part => part.type === 'string', + '': 'start | end | left | right | center | justify | match-parent', + '': 'solid | double | dotted | dashed | wavy', '