Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cssstyle

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cssstyle - npm Package Compare versions

Comparing version 0.2.21 to 0.2.22

5

lib/CSSStyleDeclaration.js

@@ -33,3 +33,6 @@ /*********************************************************************

getPropertyValue: function (name) {
return this._values[name] || "";
if (!this._values.hasOwnProperty(name)) {
return "";
}
return this._values[name].toString();
},

@@ -36,0 +39,0 @@

2

package.json

@@ -5,3 +5,3 @@ {

"keywords": ["CSS", "CSSStyleDeclaration", "StyleSheet"],
"version": "0.2.21",
"version": "0.2.22",
"homepage": "https://github.com/chad3814/CSSStyleDeclaration",

@@ -8,0 +8,0 @@ "maintainers": [{

@@ -280,3 +280,10 @@ "use strict";

test.done();
},
'Setting a value to 0 should return the string value': function (test) {
var style = new cssstyle.CSSStyleDeclaration();
test.expect(1);
style.setProperty('fill-opacity', 0);
test.ok('0' === style.fillOpacity, 'fillOpacity is not "0": ' + style.fillOpacity);
test.done();
}
};
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc