jQuery.fn.css = function( name, value ) {
return access( this, name, value, true, function( elem, name, value ) {
- if (value === undefined) {
- return jQuery.css( elem, name );
+ if ( value === undefined ) {
+ return jQuery.curCSS( elem, name );
}
if ( typeof value === "number" && !rexclude.test(name) ) {
module("css");
test("css(String|Hash)", function() {
- expect(27);
+ expect(28);
equals( jQuery('#main').css("display"), 'none', 'Check for css property "display"');
}
equals( prctval, checkval, "Verify fontSize % set." );
+
+ equals( typeof child.css("width"), "string", "Make sure that a string width is returned from css('width')." );
});
test("css(String, Object)", function() {