Skip to content
Permalink
Browse files

Fixes #14049: don't append px to CSS order value. Close gh-1300.

  • Loading branch information
jasonmerino authored and mgol committed Jul 1, 2013
1 parent d139732 commit ec6eb38c64aadd6860c402cc0894c77b82b1a65d
Showing with 5 additions and 1 deletion.
  1. +1 −0 src/css.js
  2. +4 −1 test/unit/css.js
@@ -173,6 +173,7 @@ jQuery.extend({
"fontWeight": true,
"lineHeight": true,
"opacity": true,
"order": true,
"orphans": true,
"widows": true,
"zIndex": true,
@@ -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() {

0 comments on commit ec6eb38

Please sign in to comment.
You can’t perform that action at this time.