Comparing version 1.3.7 to 1.3.8
@@ -28,3 +28,3 @@ CSSO (CSS Optimizer) является минимизатором CSS, выполняющим как минимизацию без изменения структуры, так и структурную минимизацию с целью получить как можно меньший текст. | ||
Подробнее смотри в [детальном описании](https://github.com/css/csso/blob/master/MANUAL.ru.md) минимизации. | ||
Подробнее смотри в [детальном описании](/tools/csso/description/) минимизации. | ||
@@ -31,0 +31,0 @@ # Авторы |
@@ -524,2 +524,3 @@ function TRBL(name, imp) { | ||
info.pseudoID = this.composePseudoID(selector); | ||
info.pseudoSignature = this.pseudoSelectorSignature(selector, this.allowedPClasses, true); | ||
this.markSimplePseudo(selector); | ||
@@ -579,3 +580,3 @@ | ||
CSSOCompressor.prototype.pseudoSelectorSignature = function(selector, exclude) { | ||
CSSOCompressor.prototype.pseudoSelectorSignature = function(selector, exclude, dontAppendExcludeMark) { | ||
var a = [], b = {}, ss, wasExclude = false; | ||
@@ -602,3 +603,3 @@ exclude = exclude || {}; | ||
return a.join(',') + wasExclude; | ||
return a.join(',') + (dontAppendExcludeMark? '' : wasExclude); | ||
}; | ||
@@ -1070,3 +1071,2 @@ | ||
ppre; | ||
for (var i = token.length - 1; i > -1; i--) { | ||
@@ -1091,3 +1091,3 @@ x = token[i]; | ||
} | ||
} | ||
} | ||
} else if (this.needless(p, props, pre, imp, v, x, freeze)) { | ||
@@ -1252,3 +1252,3 @@ token.splice(i, 1); | ||
if (ps.length && pb.length) { | ||
if (ps.length && pb.length && token[0].pseudoSignature == p[0].pseudoSignature) { | ||
if (token[1] !== p[1]) return; | ||
@@ -1320,3 +1320,3 @@ // try to join by selectors | ||
if (ps.length && pb.length) { | ||
if (ps.length && pb.length && token[0].pseudoSignature == p[0].pseudoSignature) { | ||
if (token[1] !== p[1]) return; | ||
@@ -1323,0 +1323,0 @@ // try to join by properties |
{ | ||
"name": "csso", | ||
"description": "CSSO — CSS optimizer", | ||
"version": "1.3.7", | ||
"version": "1.3.8", | ||
"homepage": "http://github.com/css/csso", | ||
@@ -6,0 +6,0 @@ "author": "Sergey Kryzhanovsky <skryzhanovsky@ya.ru> (http://github.com/afelix)", |
@@ -358,2 +358,3 @@ | ||
info.pseudoID = this.composePseudoID(selector); | ||
info.pseudoSignature = this.pseudoSelectorSignature(selector, this.allowedPClasses, true); | ||
this.markSimplePseudo(selector); | ||
@@ -413,3 +414,3 @@ | ||
CSSOCompressor.prototype.pseudoSelectorSignature = function(selector, exclude) { | ||
CSSOCompressor.prototype.pseudoSelectorSignature = function(selector, exclude, dontAppendExcludeMark) { | ||
var a = [], b = {}, ss, wasExclude = false; | ||
@@ -436,3 +437,3 @@ exclude = exclude || {}; | ||
return a.join(',') + wasExclude; | ||
return a.join(',') + (dontAppendExcludeMark? '' : wasExclude); | ||
}; | ||
@@ -904,3 +905,2 @@ | ||
ppre; | ||
for (var i = token.length - 1; i > -1; i--) { | ||
@@ -925,3 +925,3 @@ x = token[i]; | ||
} | ||
} | ||
} | ||
} else if (this.needless(p, props, pre, imp, v, x, freeze)) { | ||
@@ -1086,3 +1086,3 @@ token.splice(i, 1); | ||
if (ps.length && pb.length) { | ||
if (ps.length && pb.length && token[0].pseudoSignature == p[0].pseudoSignature) { | ||
if (token[1] !== p[1]) return; | ||
@@ -1154,3 +1154,3 @@ // try to join by selectors | ||
if (ps.length && pb.length) { | ||
if (ps.length && pb.length && token[0].pseudoSignature == p[0].pseudoSignature) { | ||
if (token[1] !== p[1]) return; | ||
@@ -1157,0 +1157,0 @@ // try to join by properties |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
515392
1341
11107