Landing pull request 409. Adds fillOpacity to internal cssNumber. Fixes #9548.
More Details: - https://github.com/jquery/jquery/pull/409 - http://bugs.jquery.com/ticket/9548
This commit is contained in:
parent
13ceb0f56b
commit
5eef5917fd
2 changed files with 15 additions and 4 deletions
|
@ -50,13 +50,14 @@ jQuery.extend({
|
||||||
|
|
||||||
// Exclude the following css properties to add px
|
// Exclude the following css properties to add px
|
||||||
cssNumber: {
|
cssNumber: {
|
||||||
"zIndex": true,
|
"fillOpacity": true,
|
||||||
"fontWeight": true,
|
"fontWeight": true,
|
||||||
"opacity": true,
|
|
||||||
"zoom": true,
|
|
||||||
"lineHeight": true,
|
"lineHeight": true,
|
||||||
|
"opacity": true,
|
||||||
|
"orphans": true,
|
||||||
"widows": true,
|
"widows": true,
|
||||||
"orphans": true
|
"zIndex": true,
|
||||||
|
"zoom": true
|
||||||
},
|
},
|
||||||
|
|
||||||
// Add in properties whose names you wish to fix before
|
// Add in properties whose names you wish to fix before
|
||||||
|
|
|
@ -475,3 +475,13 @@ test("widows & orphans #8936", function () {
|
||||||
|
|
||||||
$p.remove();
|
$p.remove();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test("Do not append px to 'fill-opacity' #9548", 1, function() {
|
||||||
|
|
||||||
|
var $div = jQuery("<div>").appendTo("#qunit-fixture");
|
||||||
|
|
||||||
|
$div.css("fill-opacity", 0).animate({ "fill-opacity": 1.0 }, 0, function () {
|
||||||
|
equal( jQuery(this).css("fill-opacity"), 1, "Do not append px to 'fill-opacity'");
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
Loading…
Reference in a new issue