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

CSS: Don't auto-append "px" to CSS variables #4064

Merged
merged 1 commit into from
Jun 4, 2018

Conversation

mgol
Copy link
Member

@mgol mgol commented Apr 30, 2018

Fixes gh-4063

Summary

Fixes gh-4063

Checklist

@mgol mgol added the CSS label Apr 30, 2018
@mgol mgol added this to the 3.4.0 milestone Apr 30, 2018
@@ -246,7 +246,9 @@ jQuery.extend( {
}

// If a number was passed in, add the unit (except for certain CSS properties)
if ( type === "number" ) {
// The isCustomProp check can be removed in jQuery 4.0 when we only auto-append
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a url we can reference for this statement/plan?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once this PR lands I'll rebase #4055 and add a removal of this part there so I just need to remember about it until that moment. :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I landed this PR & rebased PR #4055, reverting this fix there.

Copy link
Member

@timmywil timmywil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mgol mgol merged commit 75b77b4 into jquery:master Jun 4, 2018
@mgol mgol deleted the no-px-css-vars branch June 4, 2018 16:08
@lock lock bot locked as resolved and limited conversation to collaborators Dec 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging this pull request may close these issues.

jQuery shouldn't auto-append "px" to CSS variables.
4 participants