Comparing version 0.2.2 to 0.2.3
@@ -31,3 +31,3 @@ //.CommonJS | ||
} | ||
return "@-webkit-keyframes " + this.name + " { \n" + cssTexts.join("\n") + "\n}"; | ||
return "@" + (this._vendorPrefix || '') + "keyframes " + this.name + " { \n" + cssTexts.join("\n") + "\n}"; | ||
}); | ||
@@ -34,0 +34,0 @@ |
@@ -55,2 +55,4 @@ //.CommonJS | ||
var atKeyframesRegExp = /@(-(?:\w+-)+)?keyframes/g; | ||
for (var character; character = token.charAt(i); i++) { | ||
@@ -138,11 +140,16 @@ | ||
break; | ||
} else if (token.indexOf("@-webkit-keyframes", i) === i) { | ||
state = "keyframesRule-begin"; | ||
keyframesRule = new CSSOM.CSSKeyframesRule; | ||
keyframesRule.__starts = i; | ||
i += "-webkit-keyframes".length; | ||
buffer = ""; | ||
break; | ||
} else if (state === "selector") { | ||
state = "atRule"; | ||
} else { | ||
atKeyframesRegExp.lastIndex = i; | ||
var matchKeyframes = atKeyframesRegExp.exec(token); | ||
if (matchKeyframes && matchKeyframes.index === i) { | ||
state = "keyframesRule-begin"; | ||
keyframesRule = new CSSOM.CSSKeyframesRule; | ||
keyframesRule.__starts = i; | ||
keyframesRule._vendorPrefix = matchKeyframes[1]; // Will come out as undefined if no prefix was found | ||
i += matchKeyframes[0].length - 1; | ||
buffer = ""; | ||
break; | ||
} else if (state == "selector") { | ||
state = "atRule"; | ||
} | ||
} | ||
@@ -149,0 +156,0 @@ buffer += character; |
@@ -5,3 +5,3 @@ { | ||
"keywords": ["CSS", "CSSOM", "parser", "styleSheet"], | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"homepage": "https://github.com/NV/CSSOM", | ||
@@ -31,3 +31,6 @@ "author": "Nikita Vasilyev <me@elv1s.ru>", | ||
} | ||
] | ||
], | ||
"scripts": { | ||
"prepublish": "jake lib/index.js" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
0
0
28632
1023