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

git-svn-id: https://develop.svn.wordpress.org/trunk@13190 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-02-18 04:46:40 +00:00
parent f1eb009074
commit 13584938e1
1 changed files with 3 additions and 3 deletions

View File

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