This repository has been archived by the owner on Dec 5, 2018. It is now read-only.
forked from robinweser/inline-style-prefixer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make prefixAll not put camelCased properties in the strings it genera…
…tes. Summary: Sometimes, `.prefixAll` generated styles that looked like `{marginLeft: "-webkit-calc(50% - (608px / 2));marginLeft:-moz-calc(50% - (608px / 2));marginLeft:calc(50% - (608px / 2))" }`. (I observed this locally on a bibliotron page). This is pretty clearly wrong, where the styles inside the string haven't been dash-cased, so only the `-webkit-calc()` version would end up being parsed correctly. This fixes that by dash-casing properties before putting them in strings. Test Plan: - `npm run test` Auditors: jlfwong
- Loading branch information
Showing
14 changed files
with
158 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
f41f304
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xymostech Great work you did there! Would you mind sending a pull request so I can add that to the original package too?
f41f304
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rofrischmann Yes, I will :) Planning on it, just too busy at the moment.
f41f304
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xymostech Cool, thank you!