Commit ec6eb38c authored by Jason Merino's avatar Jason Merino Committed by Michał Gołębiowski

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

parent d139732a
...@@ -173,6 +173,7 @@ jQuery.extend({ ...@@ -173,6 +173,7 @@ jQuery.extend({
"fontWeight": true, "fontWeight": true,
"lineHeight": true, "lineHeight": true,
"opacity": true, "opacity": true,
"order": true,
"orphans": true, "orphans": true,
"widows": true, "widows": true,
"zIndex": true, "zIndex": true,
......
...@@ -111,7 +111,7 @@ test("css(String|Hash)", function() { ...@@ -111,7 +111,7 @@ test("css(String|Hash)", function() {
}); });
test("css() explicit and relative values", function() { test("css() explicit and relative values", function() {
expect(29); expect( 30 );
var $elem = jQuery("#nothiddendiv"); var $elem = jQuery("#nothiddendiv");
$elem.css({ "width": 1, "height": 1, "paddingLeft": "1px", "opacity": 1 }); $elem.css({ "width": 1, "height": 1, "paddingLeft": "1px", "opacity": 1 });
...@@ -196,6 +196,9 @@ test("css() explicit and relative values", function() { ...@@ -196,6 +196,9 @@ test("css() explicit and relative values", function() {
$elem.css( "opacity", "+=0.5" ); $elem.css( "opacity", "+=0.5" );
equal( $elem.css("opacity"), "1", "'+=0.5' on opacity (params)" ); 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() { test("css(String, Object)", function() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment