CSS: Don't warn against .css( "z-index", numberValue )
in jQuery >=4
#439
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When used against jQuery Git (future jQuery 4), there were warnings when
.css()
was used againstz-index
with a number value. This didn't make senseas
z-index
never hadpx
auto-appended. Commitd25ecd6 was supposed to solve a similar problem
but it only worked fine for
3.x
.To make the warning not show up when used with jQuery >=4 we need to fill in
jQuery.cssNumber
with the latest version from jQuery 3.x so that the sameproperties are allowed to have number values used with
.css()
.With this PR, jQuery UI with jQuery git & jQuery Migrate shows no Migrate
warnings, similarly to what's already the case when jQuery 3.x-git is used.
Fixes gh-438