From 1619803a644d41a0b08f0608d74c87489e74d902 Mon Sep 17 00:00:00 2001 From: tophf Date: Wed, 6 Jun 2018 11:41:17 +0300 Subject: [PATCH] CSS Logical Properties and Values L1 (WD 2018-05-29) https://drafts.csswg.org/css-logical/ --- vendor-overwrites/csslint/parserlib.js | 105 ++++++++++++++++++------- 1 file changed, 76 insertions(+), 29 deletions(-) diff --git a/vendor-overwrites/csslint/parserlib.js b/vendor-overwrites/csslint/parserlib.js index dee5a93c..e4c19d53 100644 --- a/vendor-overwrites/csslint/parserlib.js +++ b/vendor-overwrites/csslint/parserlib.js @@ -168,17 +168,40 @@ self.parserlib = (() => { 'behavior': 1, 'binding': 1, 'bleed': '', + 'block-size': '', 'bookmark-label': '', 'bookmark-level': 'none | ', 'bookmark-state': 'open | closed', 'bookmark-target': 'none | | attr()', - 'border': ' || || ', - 'border-bottom': ' || || ', - 'border-bottom-color': '', + 'border': '', + 'border-block-color': '{1,2}', + 'border-block-end': '', + 'border-block-end-color': '', + 'border-block-end-style': '', + 'border-block-end-width': '', + 'border-block-start': '', + 'border-block-start-color': '', + 'border-block-start-style': '', + 'border-block-start-width': '', + 'border-block-style': '{1,2}', + 'border-block-width': '{1,2}', + 'border-bottom': '', + 'border-bottom-color': '', 'border-bottom-left-radius': '', 'border-bottom-right-radius': '', - 'border-bottom-style': '', - 'border-bottom-width': '', + 'border-bottom-style': '', + 'border-bottom-width': '', + 'border-inline-color': '{1,2}', + 'border-inline-end': '', + 'border-inline-end-color': '', + 'border-inline-end-style': '', + 'border-inline-end-width': '', + 'border-inline-start': '', + 'border-inline-start-color': '', + 'border-inline-start-style': '', + 'border-inline-start-width': '', + 'border-inline-style': '{1,2}', + 'border-inline-width': '{1,2}', 'border-collapse': 'collapse | separate', 'border-color': '{1,4}', 'border-image': '[ none | ] || ' + @@ -189,25 +212,25 @@ self.parserlib = (() => { 'border-image-slice': '', 'border-image-source': ' | none', 'border-image-width': '', - 'border-left': ' || || ', + 'border-left': '', 'border-left-color': '', 'border-left-style': '', 'border-left-width': '', 'border-radius': '', - 'border-right': ' || || ', + 'border-right': '', 'border-right-color': '', 'border-right-style': '', 'border-right-width': '', 'border-spacing': '{1,2}', 'border-style': '{1,4}', - 'border-top': ' || || ', + 'border-top': '', 'border-top-color': '', 'border-top-left-radius': '', 'border-top-right-radius': '', 'border-top-style': '', 'border-top-width': '', 'border-width': '{1,4}', - 'bottom': '', + 'bottom': '', 'box-decoration-break': 'slice | clone', 'box-shadow': '', 'box-sizing': 'content-box | border-box', @@ -237,8 +260,8 @@ self.parserlib = (() => { // C 'caret-color': 'auto | ', - 'caption-side': 'top | bottom', - 'clear': 'none | right | left | both', + 'caption-side': 'top | bottom | inline-start | inline-end', + 'clear': 'none | right | left | both | inline-start | inline-end', 'clip': 'rect() | inset-rect() | auto', 'clip-path': ' | | none', 'clip-rule': 'nonzero | evenodd', @@ -250,7 +273,7 @@ self.parserlib = (() => { 'column-count': ' | auto', 'column-fill': 'auto | balance', 'column-gap': '', - 'column-rule': ' || || ', + 'column-rule': '', 'column-rule-color': '', 'column-rule-style': '', 'column-rule-width': '', @@ -314,7 +337,7 @@ self.parserlib = (() => { 'flex-grow': '', 'flex-shrink': '', 'flex-wrap': 'nowrap | wrap | wrap-reverse', - 'float': 'left | right | none', + 'float': 'left | right | none | inline-start | inline-end', 'float-offset': 1, 'flood-color': 1, 'flood-opacity': '', @@ -381,6 +404,14 @@ self.parserlib = (() => { 'image-resolution': 1, 'ime-mode': 'auto | normal | active | inactive | disabled', 'inline-box-align': 'last | ', + 'inline-size': '', + 'inset': '{1,4}', + 'inset-block': '{1,2}', + 'inset-block-end': '', + 'inset-block-start': '', + 'inset-inline': '{1,2}', + 'inset-inline-end': '', + 'inset-inline-start': '', 'isolation': 'auto | isolate', // J @@ -393,7 +424,7 @@ self.parserlib = (() => { 'kerning': 'auto | ', // L - 'left': '', + 'left': '', 'letter-spacing': ' | normal', 'line-height': '', 'line-break': 'auto | loose | normal | strict', @@ -409,11 +440,17 @@ self.parserlib = (() => { 'georgian | lower-alpha | upper-alpha | none', // M - 'margin': '{1,4}', - 'margin-bottom': '', - 'margin-left': '', - 'margin-right': '', - 'margin-top': '', + 'margin': '{1,4}', + 'margin-bottom': '', + 'margin-left': '', + 'margin-right': '', + 'margin-top': '', + 'margin-block': '{1,2}', + 'margin-block-end': '', + 'margin-block-start': '', + 'margin-inline': '{1,2}', + 'margin-inline-end': '', + 'margin-inline-start': '', 'mark': 1, 'mark-after': 1, 'mark-before': 1, @@ -431,6 +468,10 @@ self.parserlib = (() => { 'max-width': 'none | ', 'min-height': 'auto | ', 'min-width': 'auto | ', + 'max-block-size': ' | none', + 'max-inline-size': ' | none', + 'min-block-size': '', + 'min-inline-size': '', 'mix-blend-mode': '', 'move-to': 1, @@ -460,13 +501,19 @@ self.parserlib = (() => { // P 'padding': '{1,4}', + 'padding-block': '{1,2}', + 'padding-block-end': '', + 'padding-block-start': '', 'padding-bottom': '', + 'padding-inline': '{1,2}', + 'padding-inline-end': '', + 'padding-inline-start': '', 'padding-left': '', 'padding-right': '', 'padding-top': '', 'page': 1, - 'page-break-after': 'auto | always | avoid | left | right', - 'page-break-before': 'auto | always | avoid | left | right', + 'page-break-after': 'auto | always | avoid | left | right | recto | verso', + 'page-break-before': 'auto | always | avoid | left | right | recto | verso', 'page-break-inside': 'auto | avoid', 'page-policy': 1, 'pause': 1, @@ -493,12 +540,12 @@ self.parserlib = (() => { // R 'rendering-intent': 1, - 'resize': 1, + 'resize': 'none | both | horizontal | vertical | block | inline', 'rest': 1, 'rest-after': 1, 'rest-before': 1, 'richness': 1, - 'right': '', + 'right': '', 'rotate': 'none | {3}? ', 'rotation': 1, 'rotation-point': 1, @@ -538,8 +585,9 @@ self.parserlib = (() => { 'target-name': 1, 'target-new': 1, 'target-position': 1, - 'text-align': 'left | right | center | justify | match-parent | start | end', - 'text-align-last': 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-anchor': 'start | middle | end', 'text-decoration': ' || || ', 'text-decoration-color': '', @@ -557,7 +605,7 @@ self.parserlib = (() => { 'text-shadow': 'none | [ [ && {2,3} ] | {2,3} ]#', 'text-transform': 'capitalize | uppercase | lowercase | none', 'text-wrap': 'normal | none | avoid', - 'top': '', + 'top': '', 'touch-action': 'auto | none | pan-x | pan-y | pan-left | pan-right | pan-up | pan-down | manipulation', 'transform': 'none | +', 'transform-box': 'border-box | fill-box | view-box', @@ -751,8 +799,6 @@ self.parserlib = (() => { ); }, - '': ' | | auto', - '': function (part) { return this[''](part) && part.value >= 1; }, @@ -843,7 +889,7 @@ self.parserlib = (() => { ); }, - '': '', + '': ' | | auto', }, complex: { @@ -887,6 +933,7 @@ self.parserlib = (() => { 'fill'), '': '[ | | | auto ]{1,4}', '': '{1,4} [ / {1,4} ]?', + '': ' || || ', '': 'none | #',