Index: wp-includes/post-template.php
===================================================================
--- wp-includes/post-template.php	(revision 18680)
+++ wp-includes/post-template.php	(working copy)
@@ -434,7 +434,7 @@
 		// Post Format
 		if ( post_type_supports( $post->post_type, 'post-formats' ) ) {
 			$post_format = get_post_format( $post->ID );
-	
+
 			if ( $post_format && !is_wp_error($post_format) )
 				$classes[] = 'single-format-' . sanitize_html_class( $post_format );
 			else
@@ -507,6 +507,9 @@
 	if ( is_admin_bar_showing() )
 		$classes[] = 'admin-bar';
 
+	if ( get_background_image() || get_background_color() )
+		$classes[] = 'custom-background';
+
 	$page = $wp_query->get( 'page' );
 
 	if ( !$page || $page < 2)
Index: wp-includes/theme.php
===================================================================
--- wp-includes/theme.php	(revision 18680)
+++ wp-includes/theme.php	(working copy)
@@ -1794,7 +1794,7 @@
 	}
 ?>
 <style type="text/css">
-body { <?php echo trim( $style ); ?> }
+body.custom-background { <?php echo trim( $style ); ?> }
 </style>
 <?php
 }
