postcss-lab-function
Advanced tools
Comparing version 1.0.0 to 1.0.1
# Changes to PostCSS Lab Function | ||
### 1.0.1 (May 11, 2018) | ||
- Fixed: Values beyond the acceptable 0-255 RGB range | ||
### 1.0.0 (May 11, 2018) | ||
- Initial version |
@@ -58,3 +58,3 @@ 'use strict'; | ||
}))).map(function (sourceValue) { | ||
return parseInt(sourceValue * 2.55); | ||
return Math.max(Math.min(parseInt(sourceValue * 2.55), 255), 0); | ||
}); | ||
@@ -61,0 +61,0 @@ |
@@ -54,3 +54,3 @@ import { lab2rgb, lch2rgb } from '@csstools/convert-colors'; | ||
}))).map(function (sourceValue) { | ||
return parseInt(sourceValue * 2.55); | ||
return Math.max(Math.min(parseInt(sourceValue * 2.55), 255), 0); | ||
}); | ||
@@ -57,0 +57,0 @@ |
{ | ||
"name": "postcss-lab-function", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Use lab() and lch() color functions in CSS", | ||
@@ -5,0 +5,0 @@ "author": "Jonathan Neal <jonathantneal@hotmail.com>", |
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
20943