Comparing version 0.6.0 to 0.7.0
@@ -185,3 +185,3 @@ function main(configuration) { | ||
item = util.swapLeftRight(item); | ||
if (item.match(/deg|g?rad|turn/i)) | ||
if (item.match(/\d+(deg|g?rad|turn)/i)) | ||
item = util.negate(item); | ||
@@ -188,0 +188,0 @@ } |
{ | ||
"author": "Mohammad Younes", | ||
"name": "rtlcss", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"description": "Framework for transforming cascading style sheets (CSS) from left-to-right (LTR) to right-to-left (RTL)", | ||
@@ -6,0 +6,0 @@ "bugs": "https://github.com/MohammadYounes/rtlcss/issues?state=open", |
@@ -224,2 +224,5 @@ [![GitHub version](https://badge.fury.io/gh/MohammadYounes%2Frtlcss.svg)](http://badge.fury.io/gh/MohammadYounes%2Frtlcss) | ||
## Release Notes | ||
* **v0.7.0** [4 Jul. 2014] | ||
* Fix flipping linear-gradient. | ||
* **v0.6.0** [4 Jul. 2014] | ||
@@ -226,0 +229,0 @@ * Allow additional comments inside `ignore`/`rename` rule level directives. |
@@ -73,3 +73,15 @@ var assert = require("assert"); | ||
'reversable': true | ||
}, | ||
}, | ||
{ | ||
'should' : 'Should not negate color value for linear gradient', | ||
'expected' : 'div { background-image: linear-gradient(rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.3) 100%);}', | ||
'input' : 'div { background-image: linear-gradient(rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.3) 100%);}', | ||
'reversable': true | ||
}, | ||
{ | ||
'should' : 'Should negate angle value for linear gradient', | ||
'expected' : 'div { background-image: linear-gradient(135deg, rgba(255, 255, 255, .15) 25%, transparent 25%);}', | ||
'input' : 'div { background-image: linear-gradient(-135deg, rgba(255, 255, 255, .15) 25%, transparent 25%);}', | ||
'reversable': true | ||
} | ||
], | ||
@@ -76,0 +88,0 @@ 'Background Position:': [ |
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
69424
1394
264