clean-css
Advanced tools
Comparing version 4.1.1 to 4.1.2
@@ -68,10 +68,10 @@ var InvalidPropertyError = require('./invalid-property-error'); | ||
function animation(property, compactable, validator) { | ||
var duration = _wrapDefault('animation-duration', property, compactable); | ||
var timing = _wrapDefault('animation-timing-function', property, compactable); | ||
var delay = _wrapDefault('animation-delay', property, compactable); | ||
var iteration = _wrapDefault('animation-iteration-count', property, compactable); | ||
var direction = _wrapDefault('animation-direction', property, compactable); | ||
var fill = _wrapDefault('animation-fill-mode', property, compactable); | ||
var play = _wrapDefault('animation-play-state', property, compactable); | ||
var name = _wrapDefault('animation-name', property, compactable); | ||
var duration = _wrapDefault(property.name + '-duration', property, compactable); | ||
var timing = _wrapDefault(property.name + '-timing-function', property, compactable); | ||
var delay = _wrapDefault(property.name + '-delay', property, compactable); | ||
var iteration = _wrapDefault(property.name + '-iteration-count', property, compactable); | ||
var direction = _wrapDefault(property.name + '-direction', property, compactable); | ||
var fill = _wrapDefault(property.name + '-fill-mode', property, compactable); | ||
var play = _wrapDefault(property.name + '-play-state', property, compactable); | ||
var name = _wrapDefault(property.name + '-name', property, compactable); | ||
var components = [duration, timing, delay, iteration, direction, fill, play, name]; | ||
@@ -292,4 +292,3 @@ var values = property.value; | ||
if (values.length == 1 && (validator.isFontKeyword(values[0][1]) || validator.isPrefixed(values[0][1]))) { | ||
values[0][1] = Marker.INTERNAL + values[0][1]; | ||
if (values.length == 1 && values[0][1] == 'inherit') { | ||
style.value = variant.value = weight.value = stretch.value = size.value = height.value = family.value = values; | ||
@@ -299,3 +298,4 @@ return components; | ||
if (values.length == 1 && values[0][1] == 'inherit') { | ||
if (values.length == 1 && (validator.isFontKeyword(values[0][1]) || validator.isGlobal(values[0][1]) || validator.isPrefixed(values[0][1]))) { | ||
values[0][1] = Marker.INTERNAL + values[0][1]; | ||
style.value = variant.value = weight.value = stretch.value = size.value = height.value = family.value = values; | ||
@@ -302,0 +302,0 @@ return components; |
@@ -183,3 +183,4 @@ var functionNoVendorRegexStr = '[A-Z]+(\\-|[A-Z]|[0-9])+\\(.*?\\)'; | ||
'small-caption', | ||
'status-bar' | ||
'status-bar', | ||
'unset' | ||
], | ||
@@ -186,0 +187,0 @@ 'font-size': [ |
@@ -88,3 +88,3 @@ var lineBreak = require('os').EOL; | ||
store(context, token); | ||
store(context, position < lastPropertyAt ? semicolon(context, Breaks.AfterProperty, false) : emptyCharacter); | ||
store(context, semicolon(context, Breaks.AfterProperty, false)); | ||
break; | ||
@@ -91,0 +91,0 @@ case Token.COMMENT: |
{ | ||
"name": "clean-css", | ||
"version": "4.1.1", | ||
"version": "4.1.2", | ||
"author": "Jakub Pawlowicz <contact@jakubpawlowicz.com> (http://twitter.com/jakubpawlowicz)", | ||
@@ -5,0 +5,0 @@ "description": "A well-tested CSS minifier", |
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
414796
8793