Use background-position-x. Props iammattthomas. see #12186

git-svn-id: https://develop.svn.wordpress.org/trunk@13188 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2010-02-18 03:01:45 +00:00
parent f3a3e63a5b
commit 1cd2f4c113
1 changed files with 3 additions and 3 deletions

View File

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