]> source.dussan.org Git - jquery.git/commitdiff
Fixes #14049: don't append px to CSS order value. Close gh-1300.
authorJason Merino <jasonmerino@gmail.com>
Fri, 28 Jun 2013 23:08:16 +0000 (16:08 -0700)
committerMichał Gołębiowski <m.goleb@gmail.com>
Mon, 1 Jul 2013 17:58:39 +0000 (19:58 +0200)
src/css.js
test/unit/css.js

index 106d13ecb329c33bbb10875df1128827b9c8718f..34b4d12031b22ee9d0220e6a8463c75b52cc3a26 100644 (file)
@@ -173,6 +173,7 @@ jQuery.extend({
                "fontWeight": true,
                "lineHeight": true,
                "opacity": true,
+               "order": true,
                "orphans": true,
                "widows": true,
                "zIndex": true,
index b48b52982a05d63e0a5a2ee33d13902c75199803..297fbeca04029cebdc8e1a5a200c3b41b763a165 100644 (file)
@@ -111,7 +111,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 });
@@ -196,6 +196,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() {