mirror of
https://github.com/S2-/minifyfromhtml.git
synced 2025-08-03 20:30:04 +02:00
update packages to latest version
This commit is contained in:
11
node_modules/clean-css/lib/optimizer/level-2/properties/merge-into-shorthands.js
generated
vendored
11
node_modules/clean-css/lib/optimizer/level-2/properties/merge-into-shorthands.js
generated
vendored
@@ -336,9 +336,8 @@ function inferComponentValue(components, propertyName) {
|
||||
|
||||
if ('oppositeTo' in descriptor) {
|
||||
return components[descriptor.oppositeTo].value;
|
||||
} else {
|
||||
return [[Token.PROPERTY_VALUE, descriptor.defaultValue]];
|
||||
}
|
||||
return [[Token.PROPERTY_VALUE, descriptor.defaultValue]];
|
||||
}
|
||||
|
||||
function joinMetadata(components, at) {
|
||||
@@ -367,11 +366,10 @@ function metadataSorter(metadata1, metadata2) {
|
||||
|
||||
if (line1 < line2) {
|
||||
return -1;
|
||||
} else if (line1 === line2) {
|
||||
} if (line1 === line2) {
|
||||
return column1 < column2 ? -1 : 1;
|
||||
} else {
|
||||
return 1;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
function buildSequenceWithInheritShorthand(components, shorthandName, validator) {
|
||||
@@ -481,9 +479,8 @@ function inferInsertAtFrom(properties, candidateComponents, shorthandName) {
|
||||
|
||||
if (shorthandName == 'border' && traversesVia(properties.slice(firstCandidatePosition, lastCandidatePosition), 'border-image')) {
|
||||
return firstCandidatePosition;
|
||||
} else {
|
||||
return lastCandidatePosition;
|
||||
}
|
||||
return lastCandidatePosition;
|
||||
}
|
||||
|
||||
function traversesVia(properties, propertyName) {
|
||||
|
Reference in New Issue
Block a user