From 88885403adffc9396bd478c645bfb521745cd10b Mon Sep 17 00:00:00 2001 From: tophf Date: Fri, 1 Dec 2017 05:52:23 +0300 Subject: [PATCH] csslint: CSS Box Alignment Module Level 3 (ED Nov 14) https://drafts.csswg.org/css-align/ --- vendor-overwrites/csslint/csslint-worker.js | 38 ++++++++++++++++++--- 1 file changed, 33 insertions(+), 5 deletions(-) diff --git a/vendor-overwrites/csslint/csslint-worker.js b/vendor-overwrites/csslint/csslint-worker.js index eeb44d98..6e1f9f33 100644 --- a/vendor-overwrites/csslint/csslint-worker.js +++ b/vendor-overwrites/csslint/csslint-worker.js @@ -3343,9 +3343,9 @@ var Properties = module.exports = { __proto__: null, //A - "align-items" : "flex-start | flex-end | center | baseline | stretch", - "align-content" : "flex-start | flex-end | center | space-between | space-around | stretch", - "align-self" : "auto | flex-start | flex-end | center | baseline | stretch", + "align-items" : "normal | stretch | | [ ? ]", + "align-content" : "", + "align-self" : "", "all" : "initial | inherit | unset", "-webkit-align-items" : "flex-start | flex-end | center | baseline | stretch", "-webkit-align-content" : "flex-start | flex-end | center | space-between | space-around | stretch", @@ -3494,7 +3494,7 @@ var Properties = module.exports = { "color-rendering" : "auto | optimizeSpeed | optimizeQuality", "column-count" : " | auto", //https://www.w3.org/TR/css3-multicol/ "column-fill" : "auto | balance", - "column-gap" : " | normal", + "column-gap" : "normal | | ", "column-rule" : " || || ", "column-rule-color" : "", "column-rule-style" : "", @@ -3576,6 +3576,7 @@ var Properties = module.exports = { "font-weight" : "", //G + "gap" : "[ | normal ]{1,2}", "glyph-orientation-horizontal" : "", "glyph-orientation-vertical" : "auto | ", "grid" : 1, @@ -3626,7 +3627,9 @@ var Properties = module.exports = { "isolation" : "auto | isolate", //J - "justify-content" : "flex-start | flex-end | center | space-between | space-around", + "justify-content" : "", + "justify-items" : "normal | stretch | | [ ? ] | [ legacy || [ left | right | center ] ]", + "justify-self" : "", "-webkit-justify-content" : "flex-start | flex-end | center | space-between | space-around", //K @@ -3716,6 +3719,9 @@ var Properties = module.exports = { "phonemes" : 1, "pitch" : 1, "pitch-range" : 1, + "place-content" : " ?", + "place-items" : "[ normal | stretch | | ] [ normal | stretch | | ]?", + "place-self" : " ?", "play-during" : 1, "pointer-events" : "auto | none | visiblePainted | visibleFill | visibleStroke | visible | painted | fill | stroke | all", "position" : "static | relative | absolute | fixed | sticky | -webkit-sticky", @@ -3735,6 +3741,7 @@ var Properties = module.exports = { "right" : "", "rotation" : 1, "rotation-point" : 1, + "row-gap" : "normal | | ", "ruby-align" : 1, "ruby-overhang" : 1, "ruby-position" : 1, @@ -6085,6 +6092,12 @@ copy(ValidationTypes, { "": "xx-small | x-small | small | medium | large | x-large | xx-large", + "": + "normal | | | ? ", + + "": + "auto | normal | stretch | | ? ", + "": "scroll-position | contents | ", @@ -6101,6 +6114,8 @@ copy(ValidationTypes, { "": "attr()", + "": "[ first | last ]? baseline", + // inset() = inset( {1,4} [round ]? ) // circle() = circle( []? [at ]? ) // ellipse() = ellipse( [{2}]? [at ]? ) @@ -6132,6 +6147,9 @@ copy(ValidationTypes, { "": "content()", + "": "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 | " + @@ -6211,6 +6229,12 @@ copy(ValidationTypes, { return part.type === "integer"; }, + "": + "normal | | ? [ | left | right ]", + + "": + "auto | normal | stretch | | ? [ | left | right ]", + "": function(part) { if (part.type === "function" && /^(?:\-(?:ms|moz|o|webkit)\-)?calc/i.test(part)) { return true; @@ -6249,6 +6273,8 @@ copy(ValidationTypes, { return this[""](part) && part.value >= 0 && part.value <= 1; }, + "": "unsafe | safe", + "": "", "": function(part) { @@ -6257,6 +6283,8 @@ copy(ValidationTypes, { "": "smaller | larger", + "": "center | start | end | self-start | self-end | flex-start | flex-end", + "": "rect() | inset-rect()", "": " | margin-box",