From 95a4514f15512d8a401fe756bf5a50f631c2f49d Mon Sep 17 00:00:00 2001 From: tophf Date: Fri, 24 Jun 2022 08:25:33 +0300 Subject: [PATCH] parserlib: object-overflow, object-view-box --- js/csslint/parserlib.js | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/js/csslint/parserlib.js b/js/csslint/parserlib.js index 708291be..41c43bba 100644 --- a/js/csslint/parserlib.js +++ b/js/csslint/parserlib.js @@ -186,7 +186,7 @@ self.parserlib = (() => { 'caret-color': 'auto | ', 'caption-side': 'top | bottom | inline-start | inline-end', 'clear': 'none | right | left | both | inline-start | inline-end', - 'clip': 'rect( [ | auto ]#{4} ) | auto', + 'clip': ' | auto', 'clip-path': ' | | none', 'clip-rule': 'nonzero | evenodd', 'color': '', @@ -415,7 +415,9 @@ self.parserlib = (() => { 'nav-up': 1, 'object-fit': 'fill | contain | cover | none | scale-down', + 'object-overflow': 'clip | visible', 'object-position': '', + 'object-view-box': 'none | | | ', 'opacity': ' | ', 'order': '', 'orphans': '', @@ -427,7 +429,7 @@ self.parserlib = (() => { 'overflow': '{1,2}', 'overflow-anchor': 'auto | none', 'overflow-block': '', - 'overflow-clip-margin': '', + 'overflow-clip-margin': 'visual-box | ', 'overflow-inline': '', 'overflow-style': 1, 'overflow-wrap': 'normal | break-word | anywhere', @@ -730,6 +732,7 @@ self.parserlib = (() => { 'hidden | dotted | dashed | solid | double | groove | ridge | inset | outset', '': ' | thin | medium | thick', '': 'padding-box | border-box | content-box', + '': ' | closest-side | farthest-side', '': '', '': 'normal | ', '': 'space-between | space-around | space-evenly | stretch', @@ -773,6 +776,7 @@ self.parserlib = (() => { '': p => p.tokenType === Tokens.IE_FUNCTION, //eslint-disable-line no-use-before-define '': ' | | cross-fade()', '': ' | min-content | max-content | auto', + '': 'inset( {1,4} ? )', '': p => p.isInt || p.isCalc, '': p => p.isInt && p.value >= 0 || p.isCalc, '': p => p.isInt && p.value > 0 || p.isCalc, @@ -806,6 +810,7 @@ self.parserlib = (() => { '': vtIsPct, '': p => p.value >= 0 && p.type === 'percentage' || p.isCalc, + '': 'rect( [ | auto ]#{4} ? )', '': 'smaller | larger', '': '', '': 'center | start | end | self-start | self-end | flex-start | flex-end', @@ -823,6 +828,7 @@ self.parserlib = (() => { '': p => p.text === '%' || p in UNITS || lower(p) in UNITS, '': p => p.type === 'uri', '': p => vtIsLength(p) || vtIsPct(p) || lowerCmp(p.text, 'auto'), + '': 'xywh( {2} {2} ? )', }; const VTComplex = { @@ -840,9 +846,9 @@ self.parserlib = (() => { 'right | far-right | right-side ] || behind ] | leftwards | rightwards', '': '[ first | last ]? baseline', '': - 'inset( {1,4} [ round ]? ) | ' + - 'circle( [ | closest-side | farthest-side ]? [ at ]? ) | ' + - 'ellipse( [ [ | closest-side | farthest-side ]{2} ]? [ at ]? ) | ' + + ' | ' + + 'circle( ? [ at ]? ) | ' + + 'ellipse( [ {2} ]? [ at ]? ) | ' + 'path( [ [ nonzero | evenodd ] , ]? ) | ' + 'polygon( [ [ nonzero | evenodd | inherit ] , ]? [ ]# )', '': @@ -866,6 +872,7 @@ self.parserlib = (() => { 'fill'), '': '[ | | auto ]{1,4}', '': '{1,4} [ / {1,4} ]?', + '': 'round ', '': ' || || ', '': 'none | #', '': ' || ',