From 3a3104b30af32f9104eab3610d1f2e812bed6e64 Mon Sep 17 00:00:00 2001 From: tophf Date: Mon, 1 Feb 2021 18:51:24 +0300 Subject: [PATCH] update parserlib * add aspect-ratio, color-adjust, forced-color-adjust * remove ar units --- js/csslint/parserlib.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/js/csslint/parserlib.js b/js/csslint/parserlib.js index 517a6dc7..e48b08fa 100644 --- a/js/csslint/parserlib.js +++ b/js/csslint/parserlib.js @@ -101,6 +101,7 @@ self.parserlib = (() => { 'push-button | hyperlink | radio | radio-button | checkbox | menu-item | tab | menu | ' + 'menubar | pull-down-menu | pop-up-menu | list-menu | radio-group | checkbox-group | ' + 'outline-tree | range | field | combo-box | signature | password | normal', + 'aspect-ratio': 'auto || [ / ]', 'azimuth': '', 'backdrop-filter': ' | none', @@ -182,6 +183,7 @@ self.parserlib = (() => { 'clip-path': ' | | none', 'clip-rule': 'nonzero | evenodd', 'color': '', + 'color-adjust': 'economy | exact', 'color-interpolation': 'auto | sRGB | linearRGB', 'color-interpolation-filters': 'auto | sRGB | linearRGB', 'color-profile': 1, @@ -284,6 +286,7 @@ self.parserlib = (() => { 'font-variant-position': 'normal | sub | super', 'font-variation-settings': 'normal | [ ]#', 'font-weight': '', + 'forced-color-adjust': 'auto | none', '-ms-flex-align': 1, '-ms-flex-order': 1, '-ms-flex-pack': 1, @@ -681,7 +684,6 @@ self.parserlib = (() => { dpcm: 'resolution', dppx: 'resolution', x: 'resolution', - ar: 'dimension', }; // Sticky `y` flag must be used in expressions used with peekTest and readMatch const rxIdentStart = /[-\\_a-zA-Z\u00A0-\uFFFF]/u; @@ -703,7 +705,6 @@ self.parserlib = (() => { !/^(unset|initial|inherit|will-change|auto|scroll-position|contents)$/i.test(p), '': p => p.type === 'angle' || p.isCalc, '': p => p.text === '0' || p.type === 'angle' || p.isCalc, - '': p => p.units && lowerCmp(p.units, 'ar'), '': vtIsAttr, '': 'scroll | fixed | local', '': ' | none', @@ -806,7 +807,7 @@ self.parserlib = (() => { const VTComplex = { '': 'normal | | | ' + - ' ? | ? ', + '? ', '': 'auto | normal | stretch | | ? ', '': @@ -917,7 +918,7 @@ self.parserlib = (() => { '': '', '': '[ | ] {2} [ / ]? | ' + '[ | ] , #{2} [ , ]?', - '': 'normal | | ? | ' + + '': 'normal | | ' + '? [ | left | right ]', '': 'auto | normal | stretch | | ? ' + '[ | left | right ]',