Next-Gen App & Browser
Testing Cloud

Trusted by 2 Mn+ QAs & Devs to accelerate their release cycles

Next-Gen App & Browser Testing Cloud

background-position-x & background-position-y

The background-position-x-y CSS longhand properties help you to define the x or y positions of the background image separately.

Last updated on : 2023-03-20

Browser Versions

IEIE

EdgeEdge

FirefoxFirefox

ChromeChrome

SafariSafari

OperaOpera

5.5 - 11
Test on IE 5.5 - 11 ...
12 - 111
Test on Edge 12 - 111 ...
2 - 48
Test on Firefox 2 - 48 ...
49 - 113
Test on Firefox 49 - 113 ...
4 - 114
Test on Chrome 4 - 114 ...
3.2 - 16.4
Test on Safari 3.2 - 16.4 ...
9.5 - 12.1
Test on Opera 9.5 - 12.1 ...
15 - 95
Test on Opera 15 - 95 ...

...Fully Supported

...Partially

...No Support

Formal Definition

Inherited

no

Applies to

all elements

Percentages

refer to height of background positioning area minus height of background image

Initial value

0%

Animation type

discrete

Computed value

A list, each item consisting of: an offset given as a combination of an absolute length and a percentage, plus an origin keyword

Specifications

CSS Backgrounds and Borders Module Level 4 # background-position-longhands

Syntax

/* Keyword values */
 background-position-y: top;
 background-position-y: center;
 background-position-y: bottom;
 /* <percentage> values */
 background-position-y: 25%;
 /* <length> values */
 background-position-y: 0px;
 background-position-y: 1cm;
 background-position-y: 8em;
 /* Side-relative values */
 background-position-y: bottom 3px;
 background-position-y: bottom 10%;
 /* Multiple values */
 background-position-y: 0px, center;
 /* Global values */
 background-position-y: inherit;
 background-position-y: initial;
 background-position-y: revert;
 background-position-y: unset;

Browser Compatibility

background-position-x & background-position-y on IE is fully supported on all IE versions.

background-position-x & background-position-y on Edge is fully supported on all Edge versions.

background-position-x & background-position-y on Firefox is fully supported on 49-113, and not supported on 2-48 Firefox versions.

background-position-x & background-position-y on Chrome is fully supported on all Chrome versions.

background-position-x & background-position-y on Safari is fully supported on all Safari versions.

background-position-x & background-position-y on Opera is fully supported on 15-95, and not supported on 9.5-12.1 Opera versions.

background-position-x & background-position-y on Safari on iOS is fully supported on all Safari on iOS versions.

background-position-x & background-position-y on Android Browser is fully supported on all Android Browser versions.

background-position-x & background-position-y on Opera Mobile is fully supported on 64-73, and not supported on 10-12 Opera Mobile versions.

background-position-x & background-position-y on Chrome for Android is fully supported on all Chrome for Android versions.

background-position-x & background-position-y on Firefox for Android is fully supported on all Firefox for Android versions.

background-position-x & background-position-y on Samsung Internet is fully supported on all Samsung Internet versions.

100
Hightooltip

Overall Browser Compatibility Score

Note:background-position-x & background-position-y shows a browser compatibility score of 100. This is a collective score out of 100 to represent browser support of a web technology. The higher this score is, the greater is the browser compatibility. The browser compatibility score is not a 100% reflection for every browser and the web technology support. However, it does give you an estimate on how much you should rely on a particular web technology in terms of browser compatibility.


Test on 3000+ browsers for background-position-x & background-position-y & more

Test your website for background-position-x & background-position-y and other web technologies. Get 100 FREE automation test minutes!

Test Now...

KaneAI - Testing Assistant

World’s first AI-Powered E2E testing agent.

...
ShadowLT Logo

Start your journey with LambdaTest

Get 100 minutes of automation test minutes FREE!!

Signup for free

Did you find this page helpful?

Helpful

NotHelpful