We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It seems there's a problem with the webkit prefixes (leading "-"). I think it should be -webkit-transform, not webkit-transform.
-webkit-transform
webkit-transform
The following code shows the issue:
const cssstyle = require('cssstyle'), style = new cssstyle.CSSStyleDeclaration(); style.cssText = 'background-color: red; -webkit-transform: scale(2);' // Be aware: Using "-webkit-transform" with leading "-" console.log('background-color: ' + style.backgroundColor) // working => "red" console.log('-webkit-transform: ' + style.webkitTransform) // not working => "" <---------- !!!! // Be aware: Using "webkit-transform" now, without leading "-" style.cssText = 'background-color: green; webkit-transform: scale(3);' console.log('background-color: ' + style.backgroundColor) // working => "green" console.log('webkit-transform: ' + style.webkitTransform) // working => "scale(3)"
The text was updated successfully, but these errors were encountered:
CSSStyleDeclaration
This issue should be fixed with #112
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
It seems there's a problem with the webkit prefixes (leading "-").
I think it should be
-webkit-transform
, notwebkit-transform
.The following code shows the issue:
The text was updated successfully, but these errors were encountered: