Skip to content
New issue

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

Non-prefixed CSS value starts with "undefinedlinear-gradient" #5

Open
wnayes opened this issue Jun 14, 2015 · 0 comments
Open

Non-prefixed CSS value starts with "undefinedlinear-gradient" #5

wnayes opened this issue Jun 14, 2015 · 0 comments

Comments

@wnayes
Copy link

wnayes commented Jun 14, 2015

In createCSS, the s array is populated with the different possible browser-prefixed CSS values for background. The unprefixed value in s[0] is actually being prefixed with undefined, which probably causes it to never use the unprefixed version.

0: "undefinedlinear-gradient(...)"
1: "-webkit-linear-gradient(...)"
2: "-moz-linear-gradient(...)"
3: "-o-linear-gradient(...)"
4: "-ms-linear-gradient(...)"

The prefix array's first value is "", so this must be some tricky casting issue during the string concat. Maybe try using the join instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant