csslint fixup 88885403: 'simple' doesn't support conditional grammar

This commit is contained in:
tophf 2017-12-02 05:13:55 +03:00
parent f05debf686
commit 536064ae9a

View File

@ -6099,12 +6099,6 @@ copy(ValidationTypes, {
"<absolute-size>": "<absolute-size>":
"xx-small | x-small | small | medium | large | x-large | xx-large", "xx-small | x-small | small | medium | large | x-large | xx-large",
"<align-content>":
"normal | <baseline-position> | <content-distribution> | <overflow-position>? <content-position>",
"<align-self>":
"auto | normal | stretch | <baseline-position> | <overflow-position>? <self-position>",
"<animateable-feature>": "<animateable-feature>":
"scroll-position | contents | <animateable-feature-name>", "scroll-position | contents | <animateable-feature-name>",
@ -6121,8 +6115,6 @@ copy(ValidationTypes, {
"<attr>": "attr()", "<attr>": "attr()",
"<baseline-position>": "[ first | last ]? baseline",
// inset() = inset( <shape-arg>{1,4} [round <border-radius>]? ) // inset() = inset( <shape-arg>{1,4} [round <border-radius>]? )
// circle() = circle( [<shape-radius>]? [at <position>]? ) // circle() = circle( [<shape-radius>]? [at <position>]? )
// ellipse() = ellipse( [<shape-radius>{2}]? [at <position>]? ) // ellipse() = ellipse( [<shape-radius>{2}]? [at <position>]? )
@ -6236,12 +6228,6 @@ copy(ValidationTypes, {
return part.type === "integer"; return part.type === "integer";
}, },
"<justify-content>":
"normal | <content-distribution> | <overflow-position>? [ <content-position> | left | right ]",
"<justify-self>":
"auto | normal | stretch | <baseline-position> | <overflow-position>? [ <self-position> | left | right ]",
"<length>": function(part) { "<length>": function(part) {
if (part.type === "function" && /^(?:\-(?:ms|moz|o|webkit)\-)?calc/i.test(part)) { if (part.type === "function" && /^(?:\-(?:ms|moz|o|webkit)\-)?calc/i.test(part)) {
return true; return true;
@ -6329,6 +6315,12 @@ copy(ValidationTypes, {
complex: { complex: {
__proto__: null, __proto__: null,
"<align-content>":
"normal | <baseline-position> | <content-distribution> | <overflow-position>? <content-position>",
"<align-self>":
"auto | normal | stretch | <baseline-position> | <overflow-position>? <self-position>",
"<azimuth>": "<azimuth>":
"<angle>" + "<angle>" +
" | " + " | " +
@ -6337,6 +6329,8 @@ copy(ValidationTypes, {
" | "+ " | "+
"leftwards | rightwards", "leftwards | rightwards",
"<baseline-position>": "[ first | last ]? baseline",
"<bg-position>": "<position>#", "<bg-position>": "<position>#",
"<bg-size>": "<bg-size>":
@ -6424,6 +6418,12 @@ copy(ValidationTypes, {
"[ full-width | proportional-width ] || " + "[ full-width | proportional-width ] || " +
"ruby", "ruby",
"<justify-content>":
"normal | <content-distribution> | <overflow-position>? [ <content-position> | left | right ]",
"<justify-self>":
"auto | normal | stretch | <baseline-position> | <overflow-position>? [ <self-position> | left | right ]",
// Note that <color> here is "as defined in the SVG spec", which // Note that <color> here is "as defined in the SVG spec", which
// is more restrictive that the <color> defined in the CSS spec. // is more restrictive that the <color> defined in the CSS spec.
// none | currentColor | <color> [<icccolor>]? | // none | currentColor | <color> [<icccolor>]? |