postcss-reduce-transforms
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -0,1 +1,6 @@ | ||
# 1.0.3 | ||
* The `translate(tx, 0)` compression was changed from `translateX(tx)` | ||
to `translate(tx)`. | ||
# 1.0.2 | ||
@@ -2,0 +7,0 @@ |
@@ -82,5 +82,5 @@ 'use strict'; | ||
if (node.value === 'translate' && node.nodes[2]) { | ||
// translate(tx, 0) => translateX(tx) | ||
// translate(tx, 0) => translate(tx) | ||
if (parseFloat(node.nodes[2].value) === 0) { | ||
node.value = 'translateX', node.nodes = [node.nodes[0]]; | ||
node.value = 'translate', node.nodes = [node.nodes[0]]; | ||
return false; | ||
@@ -87,0 +87,0 @@ } |
{ | ||
"name": "postcss-reduce-transforms", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Reduce transform functions with PostCSS.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
8927