Comparing version 2.0.1 to 2.0.2
@@ -0,1 +1,4 @@ | ||
### 2.0.2 - 05 Mar. 2016 | ||
* Fixes a bug in flipping background with a hex color value (Fixes [#60](https://github.com/MohammadYounes/rtlcss/issues/60)). | ||
### 2.0.1 - 23 Feb. 2016 | ||
@@ -42,6 +45,6 @@ * Fixes a bug when having `decl` nodes inside `atrule`s and `autoRename` enabled. | ||
### v1.7.4 [23 Feb. 2016] | ||
### v1.7.4 - 23 Feb. 2016 | ||
* Fixes a bug in flipping multiple transforms. | ||
### v1.7.3 [30 Jan. 2016] | ||
### v1.7.3 - 30 Jan. 2016 | ||
* Fixes a bug in flipping N-Values containing comments. | ||
@@ -48,0 +51,0 @@ |
@@ -419,4 +419,5 @@ 'use strict' | ||
} | ||
var state = context.util.saveFunctions(value) | ||
var parts = state.value.split(',') | ||
var colorSafe = context.util.saveHexColors(value) | ||
var funcSafe = context.util.saveFunctions(colorSafe.value) | ||
var parts = funcSafe.value.split(',') | ||
if (prop.toLowerCase() !== 'background-image') { | ||
@@ -427,6 +428,7 @@ for (var x = 0; x < parts.length; x++) { | ||
} | ||
state.value = parts.join(',') | ||
funcSafe.value = parts.join(',') | ||
colorSafe.value = context.util.restoreFunctions(funcSafe, this.update.bind(this, context)) | ||
return { | ||
'prop': prop, | ||
'value': context.util.restoreFunctions(state, this.update.bind(this, context)) | ||
'value': context.util.restoreHexColors(colorSafe) | ||
} | ||
@@ -433,0 +435,0 @@ } |
{ | ||
"author": "Mohammad Younes", | ||
"name": "rtlcss", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"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", |
@@ -17,4 +17,4 @@ # RTLCSS | ||
--- | ||
| [Why RTLCSS](#why-rtlcss) | [Install](#install) | [Basic Usage](#basic-usage) | [CLI](#cli) | [Advanced Usage](#advanced-usage) | [Options](#options-object) | | ||
|---------------------------|---------------------|-----------------------------|-------------|-----------------------------------|----------------------------| | ||
| [Why RTLCSS](#why-rtlcss) | [Install](#install) | [Basic Usage](#basic-usage) | [CLI](#cli) | [Advanced Usage](#advanced-usage) | [Options](#options-object) | [:coffee::satisfied:](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YC28CZLKL4LMC)| | ||
|---------------------------|---------------------|-----------------------------|-------------|-----------------------------------|----------------------------|-----------------------------------------------------------------------------------------------------------------------| | ||
--- | ||
@@ -21,0 +21,0 @@ |
@@ -65,3 +65,9 @@ module.exports = [ | ||
'options': { 'processUrls': true, 'greedy': true } | ||
}, | ||
{ | ||
'should': 'Should not flip hex colors ', | ||
'expected': '.banner { background: #ff0; }', | ||
'input': '.banner { background: #ff0; }', | ||
'reversable': true | ||
} | ||
] |
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
154992
2953