From 57f0afbc9c324b194b3238df13f27db06b3567c0 Mon Sep 17 00:00:00 2001 From: tophf Date: Sat, 6 Jan 2018 15:47:09 +0300 Subject: [PATCH] CSS Intrinsic & Extrinsic Sizing L3 for *width/*height https://drafts.csswg.org/css-sizing-3/#sizing-properties --- vendor-overwrites/csslint/parserlib.js | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/vendor-overwrites/csslint/parserlib.js b/vendor-overwrites/csslint/parserlib.js index 9fe9e789..fd701ff1 100644 --- a/vendor-overwrites/csslint/parserlib.js +++ b/vendor-overwrites/csslint/parserlib.js @@ -361,7 +361,7 @@ self.parserlib = (() => { // H 'hanging-punctuation': 1, - 'height': ' | ', + 'height': 'auto | ', 'hyphenate-after': ' | auto', 'hyphenate-before': ' | auto', 'hyphenate-character': ' | auto', @@ -422,12 +422,10 @@ self.parserlib = (() => { 'marquee-speed': 1, 'marquee-style': 1, 'mask': 1, - 'max-height': ' | | | none', - 'max-width': ' | | | none', - 'min-height': ' | | | contain-floats | ' + - '-moz-contain-floats | -webkit-contain-floats', - 'min-width': ' | | | contain-floats | ' + - '-moz-contain-floats | -webkit-contain-floats', + 'max-height': 'none | ', + 'max-width': 'none | ', + 'min-height': 'auto | ', + 'min-width': 'auto | ', 'mix-blend-mode': '', 'move-to': 1, @@ -592,7 +590,7 @@ self.parserlib = (() => { ' -o-pre-wrap | -moz-pre-wrap | -hp-pre-wrap', 'white-space-collapse': 1, 'widows': '', - 'width': ' | | | auto', + 'width': 'auto | ', 'will-change': '', 'word-break': 'normal | keep-all | break-all', 'word-spacing': ' | normal', @@ -645,10 +643,8 @@ self.parserlib = (() => { '': 'space-between | space-around | space-evenly | stretch', '': 'center | start | end | flex-start | flex-end', - // https://www.w3.org/TR/css3-sizing/#width-height-keywords - '': 'fill-available | -moz-available | -webkit-fill-available | max-content | ' + - '-moz-max-content | -webkit-max-content | min-content | -moz-min-content | ' + - '-webkit-min-content | fit-content | -moz-fit-content | -webkit-fit-content', + '': ' | min-content | max-content | fit-content() | ' + + '-moz-available | -webkit-fill-available', '': 'ease | ease-in | ease-out | ease-in-out | cubic-bezier()', @@ -1005,6 +1001,8 @@ self.parserlib = (() => { 'attr': ' [ string | color | url | integer | number | length | angle | time | frequency | ]? ' + '[ , ]?', + 'fit-content': '', + 'rgb': '', 'rgba': '', 'hsl': '',