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
Request: support for CSS custom properties #3144
Comments
Adding support shouldn't be that hard. The core issue, from what I see, is that while the regular properties can be accessed & written to via the The bigger issues is if it won't decrease performance for other properties. If it does we could apply special logic that would use the methods only if the name starts with I'd love to have this supported but we need to be careful. Thanks for the report! |
But that's what jQuery is already doing for normal properties anyways, because |
Yes, I meant |
Seems pretty doable to me as well. I like it! |
@Getfree Would you like to try to prepare a pull request? |
Honestly, I wouldn't feel comfortable doing that. |
Let's try this out, but it won't be treated as a blocker. |
Fixes jquerygh-3144 Closes jquerygh-3199
Fixes jquerygh-3144 Closes jquerygh-3199 Closes jquerygh-3557
Fixes jquerygh-3144 Closes jquerygh-3199 Closes jquerygh-3557
Fixes jquerygh-3144 Closes jquerygh-3199 Closes jquerygh-3557
Now that CSS custom properties are supported by most browsers (except for IE), please consider adding support for them in the .css() method.
Example:
JsFiddle here
The text was updated successfully, but these errors were encountered: