mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Fixes #14049: don't append px to CSS order value. Close gh-1300. (cherry picked from ec6eb38c64)
This commit is contained in:
committed by
Michał Gołębiowski
parent
2933c30b67
commit
1c6641f0c8
@@ -114,7 +114,7 @@ test("css(String|Hash)", function() {
|
||||
});
|
||||
|
||||
test("css() explicit and relative values", function() {
|
||||
expect(29);
|
||||
expect( 30 );
|
||||
var $elem = jQuery("#nothiddendiv");
|
||||
|
||||
$elem.css({ "width": 1, "height": 1, "paddingLeft": "1px", "opacity": 1 });
|
||||
@@ -199,6 +199,9 @@ test("css() explicit and relative values", function() {
|
||||
|
||||
$elem.css( "opacity", "+=0.5" );
|
||||
equal( $elem.css("opacity"), "1", "'+=0.5' on opacity (params)" );
|
||||
|
||||
$elem.css( "order", 2 );
|
||||
equal( $elem.css("order"), "2", "2 on order" );
|
||||
});
|
||||
|
||||
test("css(String, Object)", function() {
|
||||
|
||||
Reference in New Issue
Block a user