cssstyle 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/implementedProperties.js +1 -1
- package/lib/named_colors.json +3 -1
- package/lib/properties.js +1 -1
- package/package.json +2 -2
- package/tests/tests.js +5 -1
- package/.npmignore +0 -1
- package/package-lock.json +0 -3767
package/lib/named_colors.json
CHANGED
package/lib/properties.js
CHANGED
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"CSSStyleDeclaration",
|
|
7
7
|
"StyleSheet"
|
|
8
8
|
],
|
|
9
|
-
"version": "1.2.
|
|
9
|
+
"version": "1.2.2",
|
|
10
10
|
"homepage": "https://github.com/jsakas/CSSStyleDeclaration",
|
|
11
11
|
"maintainers": [
|
|
12
12
|
{
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"generate:properties": "node ./scripts/generate_properties.js",
|
|
68
68
|
"lint": "npm run generate && eslint . --max-warnings 0",
|
|
69
69
|
"lint:fix": "eslint . --fix --max-warnings 0",
|
|
70
|
-
"prepublishOnly": "test-ci",
|
|
70
|
+
"prepublishOnly": "npm run test-ci",
|
|
71
71
|
"test": "npm run generate && nodeunit tests",
|
|
72
72
|
"test-ci": "npm run lint && npm run test"
|
|
73
73
|
},
|
package/tests/tests.js
CHANGED
|
@@ -215,7 +215,7 @@ module.exports = {
|
|
|
215
215
|
},
|
|
216
216
|
'Test colors': function(test) {
|
|
217
217
|
var style = new cssstyle.CSSStyleDeclaration();
|
|
218
|
-
test.expect(
|
|
218
|
+
test.expect(9);
|
|
219
219
|
style.color = 'rgba(0,0,0,0)';
|
|
220
220
|
test.ok('rgba(0, 0, 0, 0)' === style.color, 'color is not rgba(0, 0, 0, 0)');
|
|
221
221
|
style.color = 'rgba(5%, 10%, 20%, 0.4)';
|
|
@@ -233,6 +233,10 @@ module.exports = {
|
|
|
233
233
|
test.ok('hsl(0, 1%, 2%)' === style.color, 'color is not hsl(0, 1%, 2%) ' + style.color);
|
|
234
234
|
style.color = 'rebeccapurple';
|
|
235
235
|
test.ok('rebeccapurple' === style.color, 'color is not rebeccapurple ' + style.color);
|
|
236
|
+
style.color = 'transparent';
|
|
237
|
+
test.ok('transparent' === style.color, 'color is not transparent ' + style.color);
|
|
238
|
+
style.color = 'currentcolor';
|
|
239
|
+
test.ok('currentcolor' === style.color, 'color is not currentcolor ' + style.color);
|
|
236
240
|
test.done();
|
|
237
241
|
},
|
|
238
242
|
'Test short hand properties with embedded spaces': function(test) {
|
package/.npmignore
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
node_module
|