Use background-position, as background-position-x has incomplete browser support (Webkit and IE6+ only, no Firefox or Opera). See #12186

git-svn-id: http://svn.automattic.com/wordpress/trunk@13190 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-02-18 04:46:40 +00:00
parent f35b2128ae
commit 63af26e0cd
1 changed files with 3 additions and 3 deletions

View File

@ -1407,11 +1407,11 @@ function _custom_background_cb() {
$repeat = 'background-repeat: repeat;';
$position = get_theme_mod('background_position', 'left');
if ( 'center' == $position )
$position = 'background-position-x: center;';
$position = 'background-position: top center;';
elseif ( 'right' == $position )
$position = 'background-position-x: right;';
$position = 'background-position: top right;';
else
$position = 'background-position-x: left;';
$position = 'background-position: top left;';
$attachment = get_theme_mod('background_attachment', 'fixed');
if ( 'scroll' == $attachment )
$attachment = 'background-attachment: scroll;';